/*
 * Rejs na zamówienie wg Figmy (ekran startowy, kroki 01–06). Wymiary z ramek 1440 px: konfigurator 1080 px,
 * dolny pasek z przyciskami przyklejony do dołu okna. Uwagi Wojtka 22.10.2026: na komputerze każdy krok mieści się
 * na jednym ekranie bez przewijania strony, a „Powrót / Dalej” są zawsze w tym samym miejscu (sekcja „Jeden ekran”).
 */

/* Ekran startowy: tekst w siatce strony, mozaika do prawej krawędzi okna (24 px marginesu) */
.iq-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 672px); gap: 48px; align-items: start;
    padding: 32px max(24px, calc((100vw - 1440px) / 2 + 24px)) 24px max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.iq-start[hidden] { display: none; }
.iq-start__text { display: flex; flex-direction: column; align-items: flex-start; padding-top: 57px; }
.iq-start__text h1 { margin: 24px 0 32px; font-size: var(--fs-h2); font-weight: 500; line-height: 1.05; }
.iq-start__lead { max-width: 550px; margin: 0 0 56px; font-size: var(--fs-body-2); line-height: 1.4; }
.iq-start__steps { display: flex; flex-direction: column; gap: 16px; margin: 0 0 56px; padding: 0; list-style: none; font-size: var(--fs-body-3); }
.iq-start__steps li { display: flex; align-items: center; gap: 16px; }
.iq-start__steps p { margin: 0; }
.iq-start__steps strong { font-weight: 700; }
.iq-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--primary-100); }
.iq-ico img { width: 20px; height: 20px; }
.iq-btn { min-width: 195px; font-size: var(--fs-body-3); }
.iq-btn--wide { min-width: 195px; padding: 0 var(--space-5); }
.iq-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 757px; }
.iq-mosaic__col { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.iq-mosaic img { flex-basis: 0; min-height: 0; width: 100%; object-fit: cover; border-radius: var(--radius-lg); }

/* Konfigurator: bez JS widać od razu pod ekranem startowym; z JS osobny ekran po „Rozpocznij” */
.js .iq:not(.is-open) { display: none; }
.iq { outline: none; }
/* Jak w Figmie: pasek „Powrót / Dalej” zawsze na dole okna, także gdy krok jest krótki */
.iq.is-open { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h, 80px)); }
.iq.is-open .iq__inner { flex: 1 0 auto; width: 100%; }
.iq__inner { max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 64px; }
.iq__title { margin: 0 0 44px; font-size: var(--fs-h4); font-weight: 500; line-height: 1.2; }
.iq .stepper { margin-bottom: 80px; }
.iq .stepper li { gap: 12px; font-size: 10px; }
.iq .stepper__dot { border-radius: var(--radius-full); background: #f3f4f7; }
.iq .stepper .stepper__trail::before { top: 15px; height: 2px; background: var(--gray-50); }
.iq .stepper .is-done .stepper__dot { box-shadow: none; }
.iq .stepper .is-current .stepper__dot { box-shadow: 0 0 0 4px #cfeef6; }
.iq-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.js .iq-step:not(.is-active) { display: none; }
.iq-step + .iq-step { margin-top: 64px; }
.js .iq-step + .iq-step { margin-top: 0; }
.iq-step__error { margin: 0 0 16px; }
.iq-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.iq .field { gap: 8px; margin-bottom: 24px; }
.iq .field label, .iq .label { font-size: var(--fs-body-2); font-weight: 700; color: var(--navy-600); }
.iq .input { min-height: 48px; padding: 12px 16px; border-color: #e1e2e9; border-radius: var(--radius-full); font-size: var(--fs-body-2); color: var(--gray-500); }
.iq .input:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 4px #cfecf3; color: var(--navy-600); }
.iq .textarea { border-color: #e1e2e9; border-radius: var(--radius-md); padding: 12px 16px; font-size: var(--fs-body-3); }
.iq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.iq-check { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-body-2); font-weight: 500; color: var(--navy-600); cursor: pointer; }
.iq-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--primary-500); }
.iq-note { display: block; margin: 12px 0 0; font-size: var(--fs-body-3); color: var(--navy-600); }
.iq-password .iq-note { margin: 0; color: var(--gray-500); }

/* 01: pola 376 px po lewej, kalendarz 623 px po prawej */
.iq-s1 { display: grid; grid-template-columns: minmax(0, 376px) minmax(0, 623px); justify-content: space-between; gap: 40px; align-items: start; }
.iq-row--people { grid-template-columns: 171px 171px; }
.iq-dates { margin-bottom: 20px !important; }
.iq-dates__note { display: block; width: 100%; min-height: 96px; resize: vertical; font-family: inherit; line-height: 1.45; color: var(--navy-600); }
/* Na komputerze kalendarz jest stale obok, więc przycisk otwierający pokazujemy tylko na telefonie. */
.iq-dates__trigger { display: none; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px; cursor: pointer; }
.iq-dates__trigger img { width: 20px; height: 20px; }
.js .iq-dates__fallback { display: none; }
.iq-s1__calendar { position: relative; min-width: 0; }
/* Kalendarz stale otwarty (data-dr-inline): karta z cieniem, bez pól, stopki i przycisków */
.drp.drp--inline { position: static; width: 100%; max-width: none; padding: 24px 24px 28px; border-radius: var(--radius-lg); box-shadow: 0 4px 24px rgba(31, 41, 103, .08); }
.drp--inline .drp__fields, .drp--inline .drp__foot { display: none; }
.drp--inline .drp__nav { top: 22px; left: 22px; right: 22px; }
.drp--inline .drp__arrow { width: 28px; height: 28px; background: none; }
.drp--inline .drp__arrow:hover { background: var(--primary-100); }
.drp--inline .drp__arrow img { width: 18px; height: 18px; opacity: .6; }
.drp--inline .drp__months { gap: 40px; }
.drp--inline .drp__title { margin: 0 0 20px; font-size: var(--fs-body-2); font-weight: 500; color: var(--navy-600); }
.drp--inline .drp__grid th { padding-bottom: 14px; font-size: 10px; font-weight: 500; color: var(--gray-500); }
.drp--inline .drp__grid td { height: 36px; padding: 0; }
.drp--inline .drp__grid td::before { top: 1px; bottom: 1px; }
.drp--inline .drp__day { width: 32px; height: 32px; font-size: var(--fs-body-3); }
.drp--inline .drp__grid td.is-start .drp__day, .drp--inline .drp__grid td.is-end .drp__day { background: var(--primary-600); }

/* 02 i 03: lista kart 300 px po lewej, opis 699 px po prawej */
.iq-split { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 699px); justify-content: space-between; gap: 40px; align-items: start; }
.iq-group + .iq-group { margin-top: 40px; }
.iq-group__label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--navy-600); }
.iq-group__label img { width: 20px; height: 14px; object-fit: cover; }
.iq-cards { display: flex; flex-direction: column; gap: 10px; }
.iq-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 12px 20px 12px 17px; border: 1px solid #eff0f5; border-radius: 8px; background: var(--white); cursor: pointer; transition: border-color .15s; }
.iq-card:hover { border-color: var(--primary-200); }
.iq-card:has(input:checked) { border-color: var(--primary-500); }
.iq-card:has(input:focus-visible) { outline: 3px solid var(--primary-700); outline-offset: 2px; }
.iq-card input, .iq-option input { position: absolute; opacity: 0; pointer-events: none; }
.iq-card__text { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-body-2); line-height: 1.3; color: var(--navy-600); }
.iq-card__text strong { font-weight: 700; }
.iq-card--tall { min-height: 80px; align-items: flex-start; padding: 16px 20px 16px 20px; }
.iq-card--tall .iq-card__text { gap: 4px; font-size: var(--fs-body-2); }
.iq-card--tall .iq-card__text span { font-weight: 400; }
.iq-radio { flex: none; width: 16px; height: 16px; border: 1px solid #c9cad3; border-radius: var(--radius-full); background: var(--white); }
.iq-card:has(input:checked) .iq-radio, .iq-option:has(input:checked) .iq-radio { border: 4px solid var(--primary-500); }

.js .iq-route:not([data-active]), .js .iq-yacht:not([data-active]) { display: none; }
.iq-route + .iq-route, .iq-yacht + .iq-yacht { margin-top: 64px; }
.js .iq-route + .iq-route, .js .iq-yacht + .iq-yacht { margin-top: 0; }
.iq-detail__title { margin: 0 0 48px; font-size: 32px; font-weight: 500; line-height: 1.2; color: var(--navy-600); }
.iq-route__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 24px; }
.iq-route__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; }
.iq-route__photo { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg); }
.iq-route__body { margin-top: 24px; }
.iq-route__more { display: none; align-self: flex-start; margin-top: 12px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-body-3); font-weight: 700; color: var(--primary-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.iq-route__more.is-visible { display: inline-flex; }
.iq-modal { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 64px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white); color: var(--navy-600); box-shadow: 0 24px 64px rgba(31, 41, 103, .18); }
.iq-modal::backdrop { background: rgba(229, 233, 245, .55); backdrop-filter: blur(6px); }
.iq-modal__box { position: relative; padding: 40px 48px 48px; }
.iq-modal__close { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; border: 0; border-radius: var(--radius-full); background: var(--gray-50); color: var(--gray-500); font-size: 18px; cursor: pointer; }
.iq-modal__title { margin: 0 40px 24px 0; font-size: 28px; font-weight: 500; line-height: 1.2; }
.iq-route__lead { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--navy-600); }
.iq-route__text { margin: 0 0 16px; font-size: var(--fs-body-2); font-weight: 400; line-height: 1.4; color: var(--navy-600); }
.iq-route__text strong { font-weight: 700; }
.iq-route__ports { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; margin-top: 20px; }
.iq-route__ports-label { font-size: 13px; line-height: 24px; color: var(--navy-600); }
.iq-ports { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: var(--fs-body-2); font-weight: 700; line-height: 1.5; }
.iq-ports li { display: inline-flex; align-items: center; }
.iq-ports__arrow { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0 9px; border-radius: var(--radius-full); background: var(--primary-100); }
.iq-ports__arrow img { width: 12px; height: 12px; }
.iq-route__map { min-width: 0; }
.iq-route__map .ev-map { margin: 0; }
.iq-route__map .ev-map__canvas { height: 200px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--primary-100), #d9f3fa); }
.iq-route__map .ev-map__canvas--live { background: var(--primary-100); }
.iq-route__map .ev-map__sketch { display: block; width: 100%; height: 100%; }

.iq-yacht__title { font-size: 32px; font-weight: 400; }
.iq-yacht__title strong { font-weight: 500; }
.iq-yacht__plan { display: block; margin: 0 0 32px; }
.iq-yacht__plan img { display: block; width: 100%; height: auto; }
.iq-yacht__text { margin: 0 0 24px; font-size: var(--fs-body-2); font-weight: 400; line-height: 1.45; color: var(--navy-600); }
/* Zakwaterowanie: zawsze dwa warianty, obok siebie jak karty (uwaga Wojtka 22.10.2026) */
.iq-options__label { margin: 0 0 12px; font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--navy-600); }
.iq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iq-option { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border: 1px solid #e1e2e9; border-radius: 8px; background: var(--white); font-size: var(--fs-body-3); font-weight: 500; line-height: 1.4; color: var(--navy-600); cursor: pointer; transition: border-color .15s, background-color .15s; }
.iq-option:hover { border-color: var(--primary-200); }
.iq-option .iq-radio { margin-top: 2px; }
.iq-option__text { display: flex; flex-direction: column; gap: 4px; }
.iq-option__text strong { font-size: var(--fs-body-2); font-weight: 700; line-height: 1.3; }
.iq-option__skipper { margin-top: 4px; color: var(--gray-500); }
/* Znaczki wariantów jak wstążka „Polecamy” w ofercie czarterowej (uwaga Wojtka 22.10.2026) */
.iq-options { padding-top: 10px; }
.iq-option { padding-top: 22px; }
.iq-option__ribbon { position: absolute; top: -11px; left: -1px; z-index: 1; padding: 3px 12px; border-radius: 0 999px 999px 0; background: var(--orange-600); color: var(--white); font-size: var(--fs-small); font-weight: 800; letter-spacing: .03em; line-height: 1.4; text-transform: uppercase; }
.iq-option__ribbon--price { background: var(--primary-600); }
.iq-yacht__subtitle { margin: 0 0 8px; font-size: var(--fs-small); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--navy-600); }
.iq-yacht__layout { margin: -40px 0 32px; font-size: var(--fs-body-2); color: var(--navy-600); }
.iq-option:has(input:checked) { border-color: var(--primary-500); background: var(--primary-100); }
.iq-option:has(input:focus-visible) { outline: 3px solid var(--primary-700); outline-offset: 2px; }

/* 04: dodatki w dwóch kolumnach (nazwa, pod nią opis); 05: dane i zgody obok siebie */
.iq-step--extras .iq-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iq-step--extras .iq-extra { grid-template-columns: 18px minmax(0, 1fr); grid-template-areas: "check name" ". text"; align-items: center; gap: 8px 16px; padding: 16px 20px 18px 16px; }
.iq-step--extras .iq-extra input { grid-area: check; }
.iq-step--extras .iq-extra__body { display: contents; }
.iq-step--extras .iq-extra__body strong { grid-area: name; }
.iq-step--extras .iq-extra__body span { grid-area: text; align-self: start; }
.iq-step--extras .iq-message { margin-top: 24px !important; }
.iq-you { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 64px; align-items: start; }
.iq-you__col > .iq-sub:first-child { margin-top: 70px; }

/* wąska kolumna 840 px */
.iq-narrow { max-width: 840px; margin-left: auto !important; margin-right: auto !important; }
.iq-h { float: none; display: block; width: 100%; margin: 0 0 24px; padding: 0; font-size: var(--fs-h3); font-weight: 500; line-height: 1.15; color: var(--navy-600); }
.iq-extras { display: flex; flex-direction: column; gap: 10px; }
.iq-extra { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 0 30px; padding: 20px 20px 20px 16px; border: 1px solid #e8e9ee; border-radius: var(--radius-md); background: var(--white); cursor: pointer; }
.iq-extra:hover { border-color: var(--primary-200); }
.iq-extra:has(input:checked) { border-color: var(--primary-500); }
.iq-extra:has(input:focus-visible) { outline: 3px solid var(--primary-700); outline-offset: 2px; }
.iq-extra input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary-500); }
.iq-extra__body { display: flex; flex-direction: column; gap: 10px; padding-right: 20px; }
.iq-extra__body strong { font-size: var(--fs-body-2); font-weight: 600; line-height: 1.3; color: var(--navy-600); }
.iq-extra__body span { font-size: 13px; font-weight: 500; line-height: 1.3; color: #5b5c6b; }
.iq-message { margin: 32px 0 0 !important; }

.iq-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.iq-head .iq-h { margin: 0; }
.iq-head__login { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-body-2); font-weight: 700; white-space: nowrap; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 12px; font-weight: 600; }
.iq-sub { margin: 0 0 16px; font-size: var(--fs-body-3); font-weight: 700; color: var(--navy-600); }
.iq-privacy { margin: 18px 0 0; font-size: 12px; line-height: 1.45; color: var(--gray-500); }
.iq-privacy a { color: inherit; text-decoration: none; }
.iq-account { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--gray-50); }
.iq-password { max-width: 388px; margin: 20px 0 0 !important; }

/* Dolny pasek przycisków (Figma: biały pasek z cieniem u dołu ekranu) */
.iq-bar { position: sticky; bottom: 0; z-index: 30; background: var(--white); box-shadow: 0 -8px 24px rgba(31, 41, 103, .04); }
.iq-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: calc(1080px + 2 * var(--gutter)); min-height: 96px; margin: 0 auto; padding: 24px var(--gutter); }
.iq-bar [hidden] { display: none; }

/* 06 Wycena: zdjęcie 672 px po lewej (24 px od krawędzi), podsumowanie na miętowym tle */
.iq-done { display: grid; grid-template-columns: minmax(0, 672px) minmax(0, 1fr); gap: 104px; align-items: start; padding: 24px 24px 24px 24px;
    background: radial-gradient(70% 60% at 100% 0%, #e6f8f0 0%, rgba(230, 248, 240, 0) 100%); }
.iq-done__photo { width: 100%; height: auto; aspect-ratio: 672 / 662; object-fit: cover; border-radius: var(--radius-lg); }
.iq-done__body { padding-top: 56px; max-width: 560px; }
.iq-done__ok { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 32px; border-radius: var(--radius-full); background: var(--success-100); }
.iq-done__label { margin: 0 0 12px; font-size: var(--fs-body-3); font-weight: 700; color: var(--navy-600); }
.iq-done__title { margin: 0 0 16px; font-size: var(--fs-h2); font-weight: 500; line-height: 1.15; }
.iq-done__info { margin: 0 0 48px; font-size: var(--fs-body-3); color: var(--navy-600); }
.iq-summary { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.iq-summary div { display: flex; align-items: flex-start; gap: 16px; font-size: var(--fs-body-3); }
.iq-summary dt { display: flex; flex: none; align-items: center; gap: 16px; font-weight: 700; color: var(--navy-600); }
.iq-summary dd { margin: 0; padding-top: 11px; font-weight: 500; color: var(--navy-600); }

@media (max-width: 1100px) {
    .iq-start { grid-template-columns: minmax(0, 1fr) minmax(0, 46%); }
    .iq-mosaic { height: 640px; }
    .iq-s1 { grid-template-columns: minmax(0, 1fr); }
    .iq-s1__calendar { max-width: 623px; }
    .iq-split { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
    .iq-done { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 767px) {
    /* Bez ramek mobile w Figmie: ekran startowy jak Blog mobile (24 px od krawędzi, tytuł 32 px, opis 16 px, przycisk 48 px);
       kroki jak „Czartery Zarezerwuj wstępnie mobile” (8738:43526): 16 px od krawędzi, napisy min. 12 px, pola dotyku min. 44 px. */
    .iq-start { grid-template-columns: 1fr; gap: 40px; padding: 40px 24px 80px; }
    .iq-start__text { padding-top: 0; }
    .iq-start__text h1 { margin: 16px 0 24px; font-size: 32px; line-height: 1.15; }
    .iq-start__lead { margin-bottom: 32px; font-size: var(--fs-body-2); line-height: 1.5; }
    .iq-start__steps { gap: 16px; margin-bottom: 40px; }
    .iq-start__text .btn { width: 100%; height: 48px; }
    .iq-mosaic { height: 420px; }
    .iq.is-open { min-height: 0; }
    .js .iq-dates__trigger { display: flex; }
    .iq-route, .iq-yacht { scroll-margin-top: 88px; }
    .iq__inner { padding-top: 24px; padding-bottom: 32px; }
    .iq__title { margin-bottom: 24px; font-size: 24px; }
    .iq .stepper { margin-bottom: 48px; }
    .iq .stepper li span:not(.stepper__dot) { font-size: var(--fs-small); }
    .iq-check { min-height: 44px; }
    .iq-check input { width: 20px; height: 20px; }
    .iq-head__login .btn--sm { height: 44px; padding: 0 16px; font-size: var(--fs-body-3); }
    .iq .stepper li span:not(.stepper__dot) { display: none; }
    .iq .stepper li.is-current span:not(.stepper__dot) { display: block; position: absolute; top: 40px; white-space: nowrap; }
    .iq .stepper li:not(:first-child):not(:last-child).is-current span:not(.stepper__dot) { left: 50%; transform: translateX(-50%); }
    .iq .stepper li:first-child.is-current span:not(.stepper__dot) { left: 0; }
    .iq .stepper li:last-child.is-current span:not(.stepper__dot) { right: 0; }
    .iq-row, .iq-row--people { grid-template-columns: 1fr 1fr; gap: 0 16px; }
    .iq-row:not(.iq-row--people) { grid-template-columns: 1fr; }
    .iq-split { grid-template-columns: 1fr; gap: 32px; }
    .iq-detail__title { margin-bottom: 24px; font-size: 22px; }
    .iq-yacht__title { font-size: 24px; }
    .iq-yacht__layout { margin: -16px 0 16px; }
    .iq-route__photo { height: 160px; }
    .iq-route__lead { margin-top: 24px; }
    .iq-route__ports { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; padding-top: 24px; }
    .iq-yacht__plan { margin-bottom: 24px; }
    .iq-options { grid-template-columns: 1fr; gap: 12px; }
    .iq-route__media { grid-template-columns: 1fr; }
    .iq-modal__box { padding: 32px 20px; }
    .iq-step--extras .iq-extras, .iq-you { grid-template-columns: 1fr; }
    .iq-you__col > .iq-sub:first-child { margin-top: 24px; }
    .iq-h { font-size: 28px; }
    .iq-head { flex-wrap: wrap; }
    /* Dodatki jak opłaty w rezerwacji jachtu na telefonie: pole wyboru w wierszu z nazwą, opis i cena pod spodem na całą szerokość */
    .iq-extra, .iq-step--extras .iq-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px; }
    .iq-extra input { flex: none; width: 20px; height: 20px; }
    .iq-extra__body { display: contents; }
    .iq-extra__body strong { flex: 1 1 calc(100% - 32px); min-width: 0; }
    .iq-extra__body span { flex-basis: 100%; font-size: var(--fs-small); line-height: 1.4; }
    .iq-bar__inner { min-height: 0; padding: 12px var(--gutter); }
    .iq-bar .iq-btn { min-width: 0; flex: 1; }
    .iq-bar__inner > span { display: none; }
    .iq-done { grid-template-columns: 1fr; gap: 24px; padding: 16px var(--gutter) 32px; }
    .iq-done__photo { aspect-ratio: 4 / 3; }
    .iq-done__body { padding-top: 0; }
    .iq-done__ok { margin-bottom: 16px; }
    .iq-done__title { font-size: 32px; }
    .iq-done__info { margin-bottom: 24px; }
    .iq-summary div { flex-direction: column; gap: 4px; }
    .iq-summary dd { padding: 0 0 0 56px; }
}

/* Jeden ekran (komputer, okno co najmniej 1024 × 640): konfigurator ma dokładnie wysokość okna pod nagłówkiem,
   pasek „Powrót / Dalej” stoi zawsze na dole, a krok wypełnia resztę. Długie listy i opis trasy przewijają się
   wewnątrz swojej kolumny, strona się nie przewija. W niższym oknie wraca zwykły układ z przewijaniem strony. */
@media (min-width: 1024px) and (min-height: 640px) {
    .iq.is-open { height: calc(100vh - var(--header-h, 80px)); height: calc(100dvh - var(--header-h, 80px)); min-height: 0; }
    .iq.is-open .iq__inner { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding-top: 20px; padding-bottom: 20px; }
    .iq.is-open .iq__title { flex: none; margin-bottom: 12px; }
    .iq.is-open .stepper { flex: none; margin-bottom: 24px; }
    .iq.is-open .alert { flex: none; }
    .iq.is-open #iq-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
    .js .iq.is-open .iq-step.is-active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
    .iq.is-open .iq-split { flex: 1 1 auto; min-height: 0; align-items: stretch; }
    .iq.is-open .iq-split > * { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
    .iq.is-open .iq-split > .iq-list, .iq.is-open .iq-split > .iq-cards { padding: 2px; margin: -2px; }
    .iq-bar__inner { min-height: 80px; padding-top: 16px; padding-bottom: 16px; }

    /* 02: zwarta lista kierunków; opis trasy przewija się pod zdjęciem i mapą */
    .iq.is-open .iq-group + .iq-group { margin-top: 12px; }
    .iq.is-open .iq-group__label { margin-bottom: 6px; }
    .iq.is-open .iq-group .iq-cards { gap: 6px; }
    .iq.is-open .iq-group .iq-card { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
    .iq.is-open .iq-group .iq-card__text { font-size: var(--fs-body-3); }
    .iq.is-open .iq-detail { overflow: hidden; }
    .iq.is-open .iq-route[data-active] { display: flex; flex-direction: column; height: 100%; }
    .iq.is-open .iq-detail__title { flex: none; margin-bottom: 16px; font-size: 28px; }
    .iq.is-open .iq-route__meta { flex: none; margin: -4px 0 16px; }
    .iq.is-open .iq-route__media { flex: none; }
    .iq.is-open .iq-route__photo, .iq.is-open .iq-route__map .ev-map__canvas { height: clamp(140px, 24vh, 240px); }
    .iq.is-open .iq-route__ports { flex: none; margin-top: 16px; }
    /* Opis trasy przycięty do wysokości ekranu; całość w okienku „Pokaż cały opis” (uwaga Wojtka 22.10.2026) */
    .iq.is-open .iq-route__body { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 16px; overflow: hidden; }
    .iq.is-open .iq-route__body.is-clipped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(255, 255, 255, 0), var(--white)); pointer-events: none; }
    .iq.is-open .iq-route__more { flex: none; }

    /* 03: schemat zmniejsza się do dostępnej wysokości, warianty zakwaterowania zawsze widoczne pod nim */
    /* Karty jachtów rozciągnięte na wysokość prawej kolumny: dół ostatniej karty licuje się z dołem wariantów zakwaterowania */
    .iq.is-open .iq-split > .iq-cards { overflow: visible; }
    .iq.is-open .iq-split .iq-card--tall { flex: 1 1 auto; min-height: auto; padding-top: 10px; padding-bottom: 10px; align-items: center; }
    .iq.is-open .iq-split .iq-card--tall .iq-card__text { gap: 2px; line-height: 1.3; }
    .iq.is-open .iq-split .iq-card--tall .iq-radio { align-self: flex-start; margin-top: 2px; }
    .iq.is-open .iq-yacht[data-active] { display: flex; flex-direction: column; height: 100%; }
    .iq.is-open .iq-yacht .iq-detail__title { margin-bottom: 4px; }
    .iq.is-open .iq-yacht__layout { flex: none; margin: 0 0 12px; }
    .iq.is-open .iq-yacht__plan { flex: 1 1 auto; min-height: 120px; margin-bottom: 16px; }
    .iq.is-open .iq-yacht__plan img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
    .iq.is-open .iq-yacht__text { flex: none; margin-bottom: 28px; font-size: var(--fs-body-3); }
    .iq.is-open .iq-yacht__subtitle { flex: none; margin-bottom: 4px; }
    .iq.is-open .iq-options__label, .iq.is-open .iq-options { flex: none; }

    /* 04 i 05: krok przewija się sam, gdyby okno było niskie */
    /* zapas, żeby obwódka i podświetlenie pól nie ucinały się na krawędzi przewijanego kroku */
    .iq.is-open .iq-step--extras, .iq.is-open .iq-step--you { overflow-y: auto; scrollbar-width: thin; margin-inline: -8px; padding: 0 8px 8px; }
    .iq.is-open .iq-step--extras .iq-h { margin-bottom: 16px; }
    .iq.is-open .iq-step--extras .iq-message { margin-top: 16px !important; margin-bottom: 0; }
    .iq.is-open .iq-step--extras .iq-message .textarea { min-height: 72px; }
}
/* Niższe okna: opisy dodatków skrócone do trzech linii (pełny tekst w podpowiedzi) */
@media (min-width: 1024px) and (min-height: 640px) and (max-height: 860px) {
    .iq.is-open .iq-step--extras .iq-extra__body span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}
/* Niskie okna (laptopy 1366 × 768 i 1536 × 864 z paskami przeglądarki): ciaśniejszy krok jachtu, żeby warianty zakwaterowania zostały na ekranie */
@media (min-width: 1024px) and (min-height: 640px) and (max-height: 760px) {
    .iq.is-open .iq-yacht .iq-detail__title { margin-bottom: 2px; font-size: 24px; }
    .iq.is-open .iq-yacht__layout { margin-bottom: 6px; }
    .iq.is-open .iq-yacht__plan { min-height: 80px; margin-bottom: 8px; }
    .iq.is-open .iq-yacht__text { margin-bottom: 14px; line-height: 1.35; }
    .iq.is-open .iq-options__label { margin-bottom: 6px; }
    .iq.is-open .iq-option { padding: 18px 16px 10px; }
    .iq.is-open .iq-yacht__subtitle { margin-bottom: 2px; }
    .iq.is-open .iq-split > .iq-cards { gap: 6px; }
    .iq.is-open .iq-split .iq-card--tall { padding-top: 6px; padding-bottom: 6px; }
    .iq.is-open .iq-split .iq-card--tall .iq-card__text { gap: 0; font-size: var(--fs-body-3); }
}
/* Najniższe okna (ok. 650 px): mniej odstępów nad krokiem, schemat może zmaleć bardziej */
@media (min-width: 1024px) and (min-height: 640px) and (max-height: 690px) {
    .iq.is-open .iq__inner { padding-top: 12px; padding-bottom: 12px; }
    .iq.is-open .iq__title { margin-bottom: 8px; font-size: 22px; }
    .iq.is-open .stepper { margin-bottom: 16px; }
    .iq.is-open .iq-yacht__plan { min-height: 40px; }
    .iq-bar__inner { min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
}
