/* =============================================================================
   Raj Podatkowy · Biuro Rachunkowe Sadyba — style strony
   Kolory sprawdzone pod WCAG AA (scripts/contrast.py). Fonty lokalne.
   ============================================================================= */

/* ---------- fonty ---------- */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/fraunces-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/fraunces-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;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/figtree-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/figtree-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 ---------- */
:root {
  --bg: #ffffff;
  --tint: #f5f3ee;       /* sekcje naprzemienne — ciepła szarość */
  --ink: #151b22;        /* tekst główny — 16:1 */
  --muted: #4c535b;      /* tekst pomocniczy — 7:1 na białym */
  --line: #e4e1d9;
  --brand: #1a3354;      /* granat główny — przyciski, linki */
  --brand-dark: #11243c;
  --brand-soft: #e6eaef;
  --accent: #f2b33d;     /* akcent — tylko drobne elementy */
  --accent-soft: #fdf3dc;
  --on-dark: #f3f1ea;
  --on-dark-2: #b8c1cd;
  --focus: #0b6bcb;
  --error: #b42318;
  --ok: #193e6f;

  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-num: "Fraunces", Georgia, serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(21, 27, 34, .05), 0 6px 20px -10px rgba(21, 27, 34, .16);
  --shadow-lg: 0 2px 6px rgba(21, 27, 34, .06), 0 22px 44px -22px rgba(21, 27, 34, .32);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(1.0625rem, 1rem + .2vw, 1.125rem)/1.65 var(--f-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .footer :focus-visible { outline-color: var(--accent); }
h1, h2, h3 { font-family: var(--f-body); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.08rem + .3vw, 1.3rem); letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }

/* ---------- przyciski ---------- */
.btn {
  --bg: var(--brand); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.3em; border: 1.5px solid var(--bd); border-radius: 12px;
  background: var(--bg); color: var(--fg); font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { text-decoration: none; color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn--lg { min-height: 54px; padding: .8em 1.5em; font-size: 1.04rem; }
.btn--primary { box-shadow: 0 6px 16px -8px rgba(26, 51, 84, .6); }
.btn--primary:hover { --bg: var(--brand-dark); }
.btn--ghost { --bg: #fff; --fg: var(--ink); --bd: #cfcbc1; }
.btn--ghost:hover { --bd: var(--ink); }
.btn--light { --bg: #fff; --fg: var(--brand-dark); }
.btn--light:hover { --bg: var(--accent-soft); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- nagłówek ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .98); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(21, 27, 34, .5); }
.header__in { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 500; font-size: 1.06rem; letter-spacing: -.01em; white-space: nowrap; }
.logo__name b { font-weight: 800; }
.logo__sub { font-size: .76rem; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__sub { color: var(--on-dark-2); }
.nav__list { display: flex; gap: 2px; }
.nav__list a { display: block; padding: 9px 11px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .98rem; text-decoration: none; transition: background-color .2s; }
.nav__list a:hover { background: var(--tint); }
.nav__extra { display: none; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; color: var(--brand); }
.header__phone:hover { color: var(--brand); }
.header__cta { min-height: 44px; padding: .55em 1.05em; font-size: .95rem; }
.burger { display: none; }

@media (max-width: 1160px) { .header__phone span { display: none; } .header__phone { width: 44px; justify-content: center; } }
@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .header__cta { display: none; }
  .header__phone { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); }
  .burger {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: var(--brand); color: #fff; cursor: pointer; order: 3;
  }
  .burger__lines { position: relative; width: 20px; height: 14px; }
  .burger__lines span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .burger__lines span:nth-child(1) { top: 0; }
  .burger__lines span:nth-child(2) { top: 6px; }
  .burger__lines span:nth-child(3) { top: 12px; }
  .menu-open .burger__lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .burger__lines span:nth-child(2) { opacity: 0; }
  .menu-open .burger__lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* panel menu: animowane otwieranie i zamykanie */
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: #fff; padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { font-size: 1.35rem; font-weight: 600; padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); letter-spacing: -.01em; }
  .nav__list a:hover { background: none; color: var(--brand); }
  .nav__extra { display: grid; gap: 10px; margin-top: auto; padding-top: 24px; }
  .nav__addr { margin: 4px 0 0; color: var(--muted); font-size: .95rem; text-align: center; }
  .menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .header__in { gap: 8px; }
  .logo { gap: 9px; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__name { font-size: .98rem; }
  .logo__sub { font-size: .7rem; }
  .header__phone, .burger { width: 44px !important; height: 44px; }
}
@media (max-width: 1020px) and (max-height: 520px) {
  .nav__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .nav__list a { font-size: 1.1rem; padding: 10px 4px; }
  .nav__extra { grid-template-columns: 1fr 1fr; margin-top: 12px; padding-top: 0; }
  .nav__addr { display: none; }
}

/* ---------- sekcje ---------- */
.section { padding-block: clamp(64px, 6vw + 24px, 112px); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--brand-dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.section--dark .eyebrow { color: var(--accent); }
.head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.head__lead { margin-top: 14px; color: var(--muted); font-size: 1.08em; }
.head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 56px; align-items: end; }
.head--split .head__lead { margin: 0; }
.note { margin-top: 20px; color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; } }

/* ---------- hero: zdjęcie na cały ekran, mieści się w jednym widoku ---------- */
.hero {
  --hero-ink: #0c1929;
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: calc(100svh - var(--header-h)); display: flex;
  background: var(--hero-ink);
}
.hero__bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
/* granatowy gradient: czytelny tekst po lewej, zdjęcie oddycha po prawej */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 25, 41, .93) 0%, rgba(12, 25, 41, .86) 36%, rgba(12, 25, 41, .35) 60%, rgba(12, 25, 41, 0) 76%),
    linear-gradient(0deg, rgba(12, 25, 41, .6) 0%, rgba(12, 25, 41, 0) 26%);
}
/* delikatna złota poświata — jedyny akcent dekoracyjny */
.hero::after { content: ""; position: absolute; z-index: -1; left: -10%; top: -30%; width: 60%; max-height: 130%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242, 179, 61, .16), rgba(242, 179, 61, 0) 65%); pointer-events: none; }
.hero__inner { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(20px, 3.5svh, 40px); padding-block: clamp(24px, 5.5svh, 64px) clamp(20px, 3.5svh, 36px); }
.hero__text { max-width: 610px; margin-block: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.pill svg { width: 16px; height: 16px; flex: none; }
.hero .pill { background: rgba(12, 25, 41, .62); border-color: rgba(255, 255, 255, .22); color: #e4e7ec; }
.hero .pill svg { color: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, min(1rem + 3.6vw, 6.6svh), 4rem); letter-spacing: -.035em; line-height: 1.03; }
.hero h1 span { display: block; color: var(--accent); }
.hero__lead { margin: clamp(14px, 2.6svh, 24px) 0 clamp(20px, 3.6svh, 34px); max-width: 33em; font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); line-height: 1.5; color: #d6dce4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--accent { --bg: var(--accent); --fg: #151b22; box-shadow: 0 10px 24px -12px rgba(242, 179, 61, .8); }
.btn--accent:hover { --bg: #f6c463; }
.btn--glass { --bg: rgba(12, 25, 41, .45); --fg: #fff; --bd: rgba(255, 255, 255, .45); }
.btn--glass:hover { --bg: #fff; --fg: var(--brand-dark); --bd: #fff; }
.hero :focus-visible { outline-color: var(--accent); }

.hero__bottom { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; gap: 14px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); align-items: center;
  border-radius: var(--r); background: rgba(12, 25, 41, .55); border: 1px solid rgba(255, 255, 255, .16);
}
.hero__facts li { display: flex; flex-direction: column; padding: 14px 24px; }
.hero__facts li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.hero__facts b { font: 600 1.55rem/1.1 var(--f-num); letter-spacing: -.02em; font-variant-numeric: lining-nums; white-space: nowrap; }
.hero__facts li > span { font-size: .84rem; color: #c8cfd9; margin-top: 2px; }

/* karta najbliższego terminu */
.deadline { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .55); }
.deadline__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: #7a5410; flex: none; }
.deadline__icon svg { width: 22px; height: 22px; }
.deadline__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.deadline__txt small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.deadline__txt b { font-size: 1.06rem; margin-top: 2px; }
.deadline__txt span { font-size: .88rem; color: var(--muted); }
.deadline__left { margin-left: 8px; padding: 6px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .82rem; font-weight: 700; white-space: nowrap; }

@media (max-width: 900px) {
  .hero__facts li { padding: 12px 16px; }
  .hero__facts b { font-size: 1.25rem; }
}
/* niski ekran laptopa: bez etykiety, ciaśniejsze odstępy */
@media (min-width: 681px) and (max-height: 760px) {
  .hero .pill { display: none; }
  .hero__inner { padding-block: clamp(20px, 5svh, 48px) 20px; }
}
/* telefon pionowo: zdjęcie u góry przechodzi w granat, treść na dole ekranu */
@media (max-width: 680px) {
  .hero__bg img { height: 60%; object-position: 66% 55%; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 25, 41, .1) 0%, rgba(12, 25, 41, .22) 28%, rgba(12, 25, 41, .9) 50%, #0c1929 60%); }
  .hero__inner { justify-content: flex-end; padding-block: 20px; gap: 16px; }
  .hero__text { margin-block: auto 0; }
  .hero .pill { margin-bottom: 14px; font-size: .82rem; }
  .hero__lead { font-size: 1.02rem; }
  .hero__cta { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
  .hero__cta .btn { min-height: 52px; padding-inline: .8em; font-size: .98rem; }
  .hero__facts { display: none; }
  .deadline { width: 100%; padding: 10px 12px 10px 10px; }
  .deadline__icon { width: 40px; height: 40px; }
}
@media (max-width: 680px) and (max-height: 720px) {
  .hero .pill { display: none; }
  .hero__lead { margin: 10px 0 16px; font-size: .98rem; }
}
@media (max-width: 380px) {
  .deadline__left { display: none; }
  .hero__cta .btn { white-space: nowrap; font-size: .94rem; gap: .45em; padding-inline: .6em; }
}
/* telefon poziomo: niski ekran — tylko nagłówek, krótki opis i przyciski */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__inner { padding-block: 18px; justify-content: center; }
  .hero .pill, .hero__bottom { display: none; }
  .hero h1 { font-size: clamp(1.6rem, 9svh, 2.3rem); }
  .hero__lead { margin: 10px 0 16px; font-size: .98rem; max-width: 30em; }
  .hero__cta { display: flex; }
  .hero__cta .btn { min-height: 46px; }
}

/* ---------- oferta: pakiety + usługi dodatkowe (desktop: siatka, telefon: karuzela) ---------- */
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.offer { position: relative; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan--main { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: -12px; left: 22px; margin: 0; padding: 3px 11px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.plan__top { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.plan__icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.plan__icon svg { width: 24px; height: 24px; }
.plan h3 { font-size: 1.22rem; }
.plan__for { margin: 1px 0 0; color: var(--muted); font-size: .92rem; }
.plan__price { margin: 14px 0 12px; padding: 10px 0; border-block: 1px solid var(--line); font: 600 2.15rem/1 var(--f-num); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.plan__price small { font: 500 .9rem/1 var(--f-body); letter-spacing: 0; color: var(--muted); }
.plan--main .plan__price { color: var(--brand); }
.plan__list { display: grid; gap: 6px; margin-bottom: 16px; font-size: .97rem; }
.plan__list li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.plan__list li::before { content: ""; flex: none; width: 19px; height: 19px; margin-top: .1em; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3354' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan--main .plan__list li::before { background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.plan__cta { margin-top: auto; width: 100%; min-height: 46px; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.extra { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--tint); }
.extra__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--brand); }
.extra__icon svg { width: 20px; height: 20px; }
.extra__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.extra__txt b { font-size: 1rem; }
.extra__txt span { color: var(--muted); font-size: .88rem; }
.extra__txt em { font-style: normal; color: var(--brand); font-weight: 600; }
.extra__price { font: 600 1.2rem/1 var(--f-num); white-space: nowrap; font-variant-numeric: lining-nums; }
.extra__link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1.5px solid #cfcbc1; color: var(--ink); font: 600 .92rem/1 var(--f-body); text-decoration: none; }
.extra__link:hover { border-color: var(--brand); color: var(--brand); }
.note--center { text-align: center; }
/* tablet: dodatki jako karty w pionie */
@media (min-width: 761px) and (max-width: 1100px) {
  .extra { grid-template-columns: auto 1fr; }
  .extra__price { grid-column: 2; justify-self: start; }
}

/* ---------- terminy ---------- */
.dl-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.dl.is-next { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.dl__date { min-width: 2.2em; font: 600 3.2rem/1 var(--f-num); letter-spacing: -.04em; color: var(--brand); text-align: center; font-variant-numeric: lining-nums; }
.dl__date small { display: block; margin-top: 6px; font: 600 .78rem/1.2 var(--f-body); letter-spacing: .02em; color: var(--muted); }
.dl__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl__tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dl__body b { font-size: 1.05rem; line-height: 1.3; }
.dl__left { margin-top: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .84rem; font-weight: 700; }
.dl.is-next .dl__left { background: var(--accent-soft); color: #7a5410; }
@media (max-width: 960px) { .dl-list { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- kalkulator ---------- */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc__form { padding: clamp(22px, 3vw, 40px); background: #fff; display: grid; gap: 26px; align-content: center; }
.calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--tint); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 50px; padding: 8px 10px; border-radius: 11px; text-align: center; font-weight: 600; line-height: 1.2; color: var(--ink); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(21, 27, 34, .12), inset 0 0 0 1.5px var(--brand); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch { position: relative; display: flex; align-items: center; gap: 14px; min-height: 54px; cursor: pointer; font-weight: 600; }
.switch + .switch { border-top: 1px solid var(--line); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.switch__ui { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #8f8a7e; flex: none; transition: background-color .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--brand); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--focus); outline-offset: 3px; }
.calc__result { padding: clamp(24px, 3vw, 40px); background: var(--brand); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.calc__label { margin: 0; font-weight: 700; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.calc__sum { margin: 6px 0 0; font: 600 clamp(3.4rem, 2.6rem + 3vw, 5.2rem)/1 var(--f-num); letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.calc__unit { margin: 8px 0 24px; color: var(--on-dark-2); }
.calc__result .btn { align-self: flex-start; }
.prices { width: 100%; margin-top: 32px; border-collapse: collapse; font-size: 1rem; }
.prices th, .prices td { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.prices th { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; }
.prices td:last-child { font: 600 1.15rem/1 var(--f-num); font-variant-numeric: lining-nums; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .seg { grid-template-columns: 1fr; } .seg span { min-height: 46px; } }

/* ---------- o nas ---------- */
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-lg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: -36px 20px 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--line); box-shadow: var(--shadow-lg); }
.stats li { background: #fff; padding: 16px 14px; text-align: center; }
.stats b { display: block; font: 600 1.7rem/1.05 var(--f-num); letter-spacing: -.02em; color: var(--brand); font-variant-numeric: lining-nums; }
.stats span { display: block; margin-top: 4px; font-size: .86rem; color: var(--muted); line-height: 1.3; }
.about__text h2 { margin-bottom: 18px; }
.about__text p { color: var(--muted); }
.about__lead { font-size: 1.22rem; font-weight: 600; color: var(--ink) !important; line-height: 1.45; }
.about__former { padding: 12px 16px; border-left: 3px solid var(--line); font-size: .95rem; }
.about__former span { color: var(--muted); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; counter-reset: st; }
.steps li { counter-increment: st; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .92rem; }
.steps b { display: block; line-height: 1.3; }
.steps span { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .stats { margin: -28px 10px 0; }
  .stats b { font-size: 1.35rem; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq .head { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.ask { margin-top: 24px; padding: 20px; border-radius: var(--r); background: var(--tint); }
.ask p { margin: 0 0 14px; font-weight: 600; }
.ask__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ask__actions .btn { flex: 1 1 auto; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: #ccd2d9; box-shadow: var(--shadow); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px; min-height: 56px; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a3354' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(180deg); }
.qa__body { padding: 0 20px 20px; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .head { position: static; } }

/* ---------- kontakt ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__lead { margin: 14px 0 22px; color: var(--on-dark-2); font-size: 1.08rem; }
.phone-big { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 600 clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem)/1 var(--f-num); letter-spacing: -.03em; text-decoration: none; font-variant-numeric: lining-nums; }
.phone-big svg { width: .7em; height: .7em; color: var(--accent); }
.phone-big:hover { color: var(--accent); }
.info { display: grid; gap: 16px; margin-top: 28px; padding-top: 26px; border-top: 1px solid rgba(243, 241, 234, .16); }
.info li { display: flex; gap: 14px; align-items: flex-start; color: var(--on-dark); }
.info svg { width: 22px; height: 22px; margin-top: .15em; color: var(--accent); flex: none; }
.info a { color: #fff; }
.info a:hover { color: var(--accent); }

.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.form h3 { font-size: 1.5rem; color: var(--ink) !important; margin-bottom: 4px; }
.form > p { color: var(--muted); margin-bottom: 22px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; line-height: 1.4; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #8f8a7e; border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--f-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151b22' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 42px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(26, 51, 84, .16); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__err { color: var(--error); font-size: .9rem; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); grid-column: 1 / -1; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form__status { margin: 0; font-weight: 600; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--error); }
.form :focus-visible { outline-color: var(--focus); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__grid { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

/* ---------- stopka ---------- */
.footer { background: #0d1a2c; color: var(--on-dark-2); padding-block: 56px 26px; font-size: .96rem; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; max-width: 34em; }
.footer h2 { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(243, 241, 234, .14); font-size: .88rem; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- podstrony ---------- */
.page { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 96px); }
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 22px; letter-spacing: -.03em; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); margin: 40px 0 12px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; list-style: disc; }
.prose li { margin-bottom: .4em; }
.prose p, .prose li { color: #2b3139; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--tint); }
.page-foot { background: #0d1a2c; color: var(--on-dark-2); padding: 22px 0; font-size: .9rem; }
.page-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.page-foot a { color: var(--on-dark); }
.notfound { min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center; background: var(--tint); padding: 48px 0; }
.notfound h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); letter-spacing: -.03em; }
.notfound p { color: var(--muted); max-width: 34em; margin: 16px auto 28px; font-size: 1.1rem; }
.notfound .hero__cta { justify-content: center; }


/* ---------- ruch ---------- */
@media (prefers-reduced-motion: no-preference) {
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}

/* sekcje docelowe kotwic dostają fokus programowo — bez ramki */
[tabindex="-1"]:focus { outline: none; }

/* =============================================================================
   JEDEN EKRAN NA SEKCJĘ — desktop, telefon pionowo (P) i poziomo (L).
   Sprawdzane przez scripts/fit.mjs: wysokość sekcji ≤ okno − nagłówek.
   ============================================================================= */

/* wspólne: odstępy i nagłówki skalowane do wysokości okna */
.section { padding-block: clamp(26px, 5svh, 84px); }
.head { margin-bottom: clamp(14px, 3svh, 36px); }
h2 { font-size: clamp(1.5rem, min(1rem + 1.8vw, 5.2svh), 2.7rem); }
.head__lead { margin-top: 10px; }
.note { margin-top: clamp(10px, 2svh, 18px); }
.dots { margin-top: 2px; }

/* ---------- desktop i tablet ---------- */
@media (min-width: 761px) and (max-height: 720px) {
  #oferta .head__lead, #oferta .note { display: none; }
}
.dl { padding: 18px 20px; }
.calc__form { padding: clamp(18px, 3svh, 36px); gap: clamp(14px, 2.4svh, 24px); }
.calc__result { padding: clamp(18px, 3svh, 36px); }
.calc__sum { font-size: clamp(2.8rem, min(2rem + 3vw, 9svh), 5rem); }
.about__media img { aspect-ratio: auto; height: min(50svh, 440px); }
.about__lead { font-size: 1.12rem; margin-bottom: 12px; }
.about__former { margin-top: 4px; }
.steps { margin-top: 16px; }
.qa summary { padding: 12px 16px; min-height: 50px; font-size: 1rem; }
.qa__body { padding: 0 16px 14px; }
.faq__list { gap: 8px; }

/* kontakt i wycena */
.contact { align-items: center; }
.contact__lead { margin: 12px 0 16px; }
.info { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.info li { padding: 16px 18px; border-radius: var(--r); background: rgba(243, 241, 234, .06); border: 1px solid rgba(243, 241, 234, .14); line-height: 1.45; }
.info small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 2px; }
.info__sub { color: var(--on-dark-2); }
.quote { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.quote__points { display: grid; gap: 10px; margin-top: 18px; }
.quote__points li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.quote__points svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--brand); color: #fff; flex: none; }
.quote .form { box-shadow: var(--shadow-lg); padding: clamp(18px, 2.6svh, 30px); }
.form__grid { gap: 12px 14px; }
.field { gap: 4px; }
.field label { font-size: .9rem; }
.field input, .field select { min-height: 46px; padding: 10px 13px; }
.field textarea { min-height: 84px; padding: 10px 13px; }
.form__foot { margin-top: 14px; }
@media (max-width: 900px) and (orientation: portrait) { .quote { grid-template-columns: 1fr; } }

/* ---------- telefon pionowo (P) ---------- */
@media (max-width: 760px) and (orientation: portrait) {
  .section { padding-block: 30px; }
  h2 { font-size: 1.55rem; }
  .head { margin-bottom: 16px; }
  .head__lead { font-size: 1rem; }

  /* oferta: karuzela — jeden swipe = jedna karta, aktywna wyśrodkowana */
  #oferta .note { display: none; }
  .offer {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 14px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .offer::-webkit-scrollbar { display: none; }
  .plans, .extras { display: contents; }
  .plan, .extra { flex: 0 0 min(84%, 330px); scroll-snap-align: center; scroll-snap-stop: always; }
  .extra { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .extra__txt b { font-size: 1.22rem; }
  .extra__txt span { font-size: .97rem; margin-top: 4px; }
  .extra__price { margin-top: auto; font-size: 1.8rem; }
  .extra__link { width: 100%; min-height: 46px; margin-top: auto; font-size: 1rem; }
  .extra__icon { width: 46px; height: 46px; background: var(--brand-soft); }
  .dots { display: flex; }

  /* terminy: zwarte wiersze */
  .dl-list { gap: 10px; }
  .dl { padding: 14px 16px; gap: 14px; }
  .dl__date { font-size: 2.4rem; min-width: 2em; }

  /* cennik: sam kalkulator, wynik w jednym rzędzie */
  #cennik .head__lead { display: none; }
  .seg { grid-template-columns: repeat(3, 1fr); }
  .seg span { min-height: 48px; font-size: .92rem; padding: 6px; }
  .calc__form { padding: 16px; gap: 14px; }
  .calc legend { margin-bottom: 8px; }
  .switch { min-height: 48px; }
  .calc__result { padding: 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
  .calc__label { grid-column: 1 / -1; }
  .calc__sum { font-size: 2.6rem; }
  .calc__unit { grid-column: 1; margin: 2px 0 0; font-size: .85rem; }
  .calc__result .btn { grid-column: 2; grid-row: 2 / span 2; align-self: center; min-height: 46px; padding-inline: 1em; font-size: .95rem; }
  .calc__result .btn svg { display: none; }

  /* o nas: bez zdjęcia, zwięźle */
  .about__media { display: none; }
  .about__lead { font-size: 1.04rem; }
  .about__former { font-size: .9rem; padding: 8px 12px; }
  .steps { grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
  .steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
  .steps li::before { margin: 0; flex: none; }
  .steps span { display: none; }

  /* pytania */
  .faq .ask { display: none; }
  .qa summary { padding: 10px 14px; min-height: 46px; font-size: .97rem; }
  .faq__list { gap: 6px; }

  /* kontakt */
  .contact__lead { font-size: 1rem; margin: 10px 0 12px; }
  .phone-big { font-size: 2.2rem; }
  .info { margin-top: 18px; gap: 8px; }
  .info li { padding: 12px 14px; }

  /* wycena: e-mail i temat obok siebie, zwarte pola */
  .quote__points { display: none; }
  .quote .form { padding: 16px; }
  .form__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .field--full { grid-column: 1 / -1; }
  .field--half { grid-column: auto; }
  .field textarea { min-height: 70px; }
  .consent { font-size: .86rem; }
  .form__foot { margin-top: 12px; }
  .form__foot .btn { width: 100%; }

  /* stopka */
  .footer { padding-block: 32px 20px; font-size: .9rem; }
  .footer__brand p { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer__bottom { margin-top: 20px; }
}

/* ---------- telefon poziomo (L): ok. 280 px wysokości na sekcję ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .section { padding-block: 14px; }
  .eyebrow { display: none; }
  h2 { font-size: 1.35rem; }
  .head { margin-bottom: 10px; }
  .head__lead, .note { display: none; }
  .head--split { display: block; }

  /* oferta: karuzela, krótkie karty */
  .offer {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 12px var(--gutter) 4px; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .offer::-webkit-scrollbar { display: none; }
  .plans, .extras { display: contents; }
  .plan, .extra { flex: 0 0 min(42%, 340px); scroll-snap-align: center; }
  .plan { padding: 14px 16px; }
  .plan__list, .plan__for { display: none; }
  .plan__icon { width: 38px; height: 38px; grid-row: auto; }
  .plan__price { margin: 8px 0; padding: 6px 0; font-size: 1.6rem; }
  .plan__cta { min-height: 44px; }
  .extra { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
  .extra__icon { display: none; }
  .extra__price { margin-top: auto; }
  .extra__link { width: 100%; }
  .dots { display: none; }

  /* terminy: trzy bilety w rzędzie */
  .dl-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .dl { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .dl__date { font-size: 2rem; text-align: left; }
  .dl__date small { display: inline; margin-left: 6px; }

  /* cennik: formularz i wynik obok siebie, przełączniki w rzędzie */
  .calc { grid-template-columns: 1.2fr .8fr; }
  .calc legend { display: none; }
  .calc__form { padding: 12px 14px; gap: 10px; }
  .calc fieldset:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .switch, .switch + .switch { min-height: 44px; border: 0; }
  .seg span { min-height: 44px; }
  .calc__result { padding: 12px 16px; }
  .calc__sum { font-size: 2.4rem; }
  .calc__unit { margin: 2px 0 8px; }
  .calc__result .btn { min-height: 44px; }

  /* o nas: tekst i kroki obok siebie */
  .about { grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .about__media, .about__body { display: none; }
  .about__lead { font-size: 1rem; margin-bottom: 8px; }
  .about__former { font-size: .86rem; padding: 6px 10px; }
  .steps { grid-template-columns: 1fr; gap: 6px; margin: 0; }
  .steps li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
  .steps li::before { margin: 0; flex: none; width: 26px; height: 26px; }
  .steps span { display: none; }

  /* pytania: dwie kolumny */
  .faq { grid-template-columns: 1fr; gap: 10px; }
  .faq .head { position: static; }
  .faq .ask { display: none; }
  .faq__list { grid-template-columns: 1fr 1fr; gap: 6px 10px; align-items: start; }
  .qa summary { min-height: 44px; padding: 8px 12px; font-size: .9rem; }

  /* kontakt */
  .contact { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact__lead { display: none; }
  .phone-big { font-size: 1.8rem; margin-top: 8px; }
  .info { gap: 6px; }
  .info li { padding: 8px 12px; font-size: .9rem; }

  /* wycena: formularz w trzech kolumnach, bez karty */
  .quote { grid-template-columns: 1fr; gap: 8px; }
  .quote__points { display: none; }
  .quote .form { padding: 0; background: none; box-shadow: none; }
  .form__grid { grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
  .field label { font-size: .82rem; }
  .field input, .field select { min-height: 44px; padding: 8px 11px; }
  #f-name, #f-phone, #f-email { min-height: 44px; }
  .field--msg { grid-column: span 2; }
  .field textarea { min-height: 44px; height: 44px; resize: none; }
  .consent { grid-column: span 2; font-size: .8rem; align-items: center; }
  .form__foot { margin-top: 8px; }

  /* stopka */
  .footer { padding-block: 20px 14px; font-size: .86rem; }
  .footer__brand p { display: none; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer__bottom { margin-top: 12px; padding-top: 10px; }
}
  /* formularz: zgoda i przycisk w jednym rzędzie */
@media (max-height: 520px) and (orientation: landscape) {
  .form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
  .form__grid { display: contents; }
  .form__foot { margin: 0; align-self: center; }
  .form__foot .btn { width: 100%; min-height: 44px; }
  .form__status { grid-column: 1 / -1; }
}

/* ---------- dopasowanie po pomiarach (scripts/fit.mjs) ---------- */
/* desktop: ciaśniejsze karty oferty, dodatki w jednej-dwóch liniach, mniejsze kroki */
.plan { padding: 18px 20px; }
.plan__price { margin: 10px 0 8px; padding: 7px 0; }
.plan__list { gap: 4px; margin-bottom: 12px; }
.extra { padding: 10px 14px; }
.extra__txt span { font-size: .84rem; }
.steps li { padding: 12px 14px; }
.steps li::before { width: 26px; height: 26px; margin-bottom: 6px; font-size: .85rem; }
.about__former { font-size: .9rem; padding: 8px 14px; }
@media (min-width: 761px) and (max-width: 900px) and (orientation: portrait) { .about__media img { height: 30svh; } }

@media (max-width: 760px) and (orientation: portrait) {
  .section { padding-block: 26px; }
  .plan { padding: 18px; }
  /* terminy: wiersz = data | opis + licznik */
  #terminy .head__lead { font-size: .97rem; }
  .note--dl, .dl__tag { display: none; }
  .dl { padding: 10px 14px; gap: 14px; }
  .dl__date { font-size: 2.1rem; }
  .dl__date small { margin-top: 2px; font-size: .72rem; }
  .dl__body b { font-size: 1rem; }
  .dl__left { margin-top: 4px; padding: 2px 9px; font-size: .8rem; }
  /* cennik: wynik w jednym rzędzie */
  #cennik .note { display: none; }
  .calc__result { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 14px 16px; }
  .calc__label { width: 100%; font-size: .74rem; }
  .calc__sum { margin: 0; font-size: 2.4rem; }
  .calc__unit { order: 3; width: 100%; margin: 0; font-size: .82rem; }
  .calc__result .btn { margin-left: auto; min-height: 44px; }
  .calc fieldset:first-child legend { display: none; }
  /* o nas: kroki w trzech małych kolumnach */
  .about__body { font-size: .97rem; }
  .about__former { font-size: .85rem; padding: 6px 10px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .steps li { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; font-size: .86rem; line-height: 1.25; }
  /* pytania */
  .faq .head__lead { display: none; }
  .qa summary { padding: 8px 12px; min-height: 44px; font-size: .94rem; line-height: 1.3; }
  /* kontakt */
  .phone-big { font-size: 2rem; }
  .info li { padding: 10px 12px; }
  /* wycena */
  .field textarea { min-height: 60px; }
  .form__foot .btn { min-height: 48px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  /* o nas: tekst po lewej, kroki po prawej */
  .about { display: block; }
  .about__text { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
  .about__text > * { grid-column: 1; }
  .about__text .steps { grid-column: 2; grid-row: 1 / span 4; }
  .about__text h2 { margin-bottom: 6px; }
  /* pytania: trzy kolumny */
  .faq__list { grid-template-columns: repeat(3, 1fr); }
  .qa summary { font-size: .86rem; line-height: 1.25; }
  /* kontakt: zwarte wiersze */
  .info small { display: none; }
  .info li { padding: 6px 10px; gap: 10px; font-size: .86rem; line-height: 1.35; }
  .info svg { width: 18px; height: 18px; }
  .info__sub { display: none; }
}
.form__status:empty { display: none; }
@media (max-height: 520px) and (orientation: landscape) {
  /* komunikat błędu zgody na koniec — przycisk „Wyślij” staje obok zgody */
  .form__grid > .field__err.field--full { order: 1; grid-column: 1 / -1; }
  .qa summary { padding: 6px 10px; }
}
@media (max-width: 760px) and (orientation: portrait) {
  #pytania { padding-block: 22px; }
}
/* kropki karuzeli oferty — tylko telefon pionowo */
.dots { display: none; justify-content: center; gap: 2px; }
.dots button { width: 36px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #c9c4b8; transition: width .25s var(--ease), background-color .25s; }
.dots button[aria-current="true"]::before { width: 22px; background: var(--brand); }
@media (max-width: 760px) and (orientation: portrait) { .dots { display: flex; } }

/* =============================================================================
   WEJŚCIE „WOW” — spokojne, premium; wyłączone przy prefers-reduced-motion
   ============================================================================= */
.hero h1 span::after { content: ""; display: block; width: 96px; height: 4px; margin-top: 14px; border-radius: 2px; background: var(--accent); transform-origin: left; }
@media (max-height: 520px) and (orientation: landscape) { .hero h1 span::after { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__bg img { animation: hero-zoom 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero .pill { animation: hero-up .7s .05s var(--ease) both; }
  .js .hero h1 { animation: hero-up .75s .1s var(--ease) both; }
  .js .hero h1 span { animation: hero-up .75s .2s var(--ease) both; }
  .js .hero h1 span::after { animation: hero-draw .7s .7s cubic-bezier(.65, 0, .35, 1) both; }
  .js .hero__lead { animation: hero-up .75s .28s var(--ease) both; }
  .js .hero__cta { animation: hero-up .75s .36s var(--ease) both; }
  .js .hero__facts { animation: hero-up .75s .44s var(--ease) both; }
  .js .hero .deadline { animation: hero-slide .8s .52s var(--ease) both; }
  @keyframes hero-zoom { from { transform: scale(1.07); } }
  @keyframes hero-up { from { opacity: 0; transform: translateY(22px); } }
  @keyframes hero-draw { from { transform: scaleX(0); } }
  @keyframes hero-slide { from { opacity: 0; transform: translateX(40px); } }
  /* pojawianie się elementów sekcji przy przewijaniu */
  /* stan początkowy w CSS (liczony przy pierwszym rysowaniu), skrypt tylko dodaje .is-in */
  .js :is(.section .head, .plan, .extra, .dl, .calc, .about__media, .about__text, .faq__list, .contact__info, .info li, .quote__intro, .quote .form) {
    opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js :is(.plan, .extra, .dl, .info li):nth-child(2) { transition-delay: 80ms; }
  .js :is(.plan, .extra, .dl, .info li):nth-child(3) { transition-delay: 160ms; }
  .js :is(.section .head, .plan, .extra, .dl, .calc, .about__media, .about__text, .faq__list, .contact__info, .info li, .quote__intro, .quote .form).is-in { opacity: 1; transform: none; }
}
.btn--accent { overflow: hidden; }

/* informacja o cookies — nie blokuje strony */
.cookie { position: fixed; z-index: 45; left: 16px; bottom: 16px; max-width: 420px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; padding: 14px 16px; border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: 0 20px 50px -18px rgba(12, 25, 41, .45), 0 0 0 1px rgba(12, 25, 41, .06); font-size: .9rem; line-height: 1.45; transform: translateY(16px); opacity: 0; transition: transform .45s var(--ease), opacity .35s; }
.cookie.is-in { transform: none; opacity: 1; }
.cookie__icon { font-size: 1.4rem; line-height: 1; }
.cookie p { margin: 0; color: var(--muted); }
.cookie p b { color: var(--ink); }
.cookie__ok { grid-column: 2; justify-self: start; min-height: 44px; }
@media (max-width: 520px) { .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
@media (max-height: 520px) and (orientation: landscape) { .cookie { grid-template-columns: auto 1fr auto; align-items: center; max-width: 620px; } .cookie__ok { grid-column: 3; } }
.cookie[hidden] { display: none; }
.cookie__short { display: none; }
@media (max-width: 520px) {
  .cookie { grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; font-size: .84rem; }
  .cookie__icon, .cookie__more { display: none; }
  .cookie__short { display: inline; }
  .cookie__ok { grid-column: 2; grid-row: 1; padding-inline: 14px; }
}
/* izolacja układu sekcji: zmiana tekstu (terminy, licznik) przelicza tylko swoją sekcję, nie całą stronę */
main > section { contain: layout style; }

/* hero: przesuwak najbliższych terminów — najbliższy duży, dalsze pomniejszone */
.hero__bottom { align-items: flex-end; }
.cal { --cw: 64%; width: min(440px, 100%); padding: 12px 0 10px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); }
.cal__head { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cal__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cal__nav { margin-left: auto; display: inline-flex; gap: 4px; }
.cal__btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--tint); color: var(--ink); cursor: pointer; transition: background-color .2s, opacity .2s; }
.cal__btn:hover { background: var(--brand-soft); color: var(--brand); }
.cal__btn:disabled { opacity: .35; cursor: default; }
.cal__btn svg { width: 16px; height: 16px; }
.cal__btn[data-cal-prev] svg { transform: rotate(180deg); }
.cal__track { display: flex; gap: 8px; margin: 8px 0 6px; padding: 6px calc((100% - var(--cw)) / 2); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; list-style: none; }
.cal__track::-webkit-scrollbar { display: none; }
.cal__card { flex: 0 0 var(--cw); scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--tint); cursor: pointer;
  transform: scale(var(--k, .82)); opacity: var(--o, .5); transform-origin: center; }
.cal__card.is-active { background: #fff; box-shadow: 0 0 0 2px var(--brand), 0 10px 24px -14px rgba(12, 25, 41, .5); cursor: default; }
.cal__date { grid-row: span 2; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cal__date b { font: 600 2.5rem/1 var(--f-num); letter-spacing: -.03em; color: var(--brand); font-variant-numeric: lining-nums; }
.cal__date small { margin-top: 3px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cal__what { font-weight: 600; font-size: .93rem; line-height: 1.25; }
.cal__left { justify-self: start; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.cal__card.is-active .cal__left { background: var(--accent-soft); color: #7a5410; }
/* suwak pod kartami */
.cal__range { display: block; width: calc(100% - 32px); margin: 0 16px; height: 24px; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cal__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--p, 0%), #d9d5cb var(--p, 0%)); }
.cal__range::-moz-range-track { height: 4px; border-radius: 4px; background: #d9d5cb; }
.cal__range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brand); }
.cal__range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.cal__range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.cal__range:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) { .js .cal { animation: hero-slide .8s .45s var(--ease) both; } }
@media (max-width: 760px) and (orientation: portrait) {
  .hero__bottom { display: block; }
  .cal { --cw: 70%; width: 100%; padding: 10px 0 6px; }
  .cal__btn { width: 34px; height: 34px; }
  .cal__date b { font-size: 2rem; }
  .cal__card { padding: 10px 12px; }
  .cal__what { font-size: .86rem; }
}
@media (max-height: 520px) and (orientation: landscape) { .cal { display: none; } }

/* =============================================================================
   KONTAKT — gradient, ikony księgowe w tle, karty z ikonami, mapka
   ============================================================================= */
.kontakt { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(242, 179, 61, .16), rgba(242, 179, 61, 0) 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(58, 95, 144, .35), rgba(58, 95, 144, 0) 70%),
    linear-gradient(135deg, #0d1a2c 0%, #11243c 45%, #182e4c 100%); }
.kdeco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kdeco svg { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); color: #f2b33d; opacity: .09; transform: rotate(var(--r)); }
.contact { grid-template-columns: .85fr 1.15fr; align-items: center; }
.phone-card { display: inline-flex; align-items: center; gap: 16px; margin-top: 4px; padding: 14px 22px 14px 14px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, #f6c463, #f2b33d 55%, #e9a52c); box-shadow: 0 18px 40px -18px rgba(242, 179, 61, .8); transition: transform .25s var(--ease), box-shadow .25s; }
.phone-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 24px 48px -18px rgba(242, 179, 61, .9); }
.phone-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(21, 27, 34, .12); }
.phone-card__icon svg { width: 26px; height: 26px; }
.phone-card__txt { display: flex; flex-direction: column; line-height: 1; }
.phone-card__txt small { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.phone-card__txt b { font: 600 clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--f-num); letter-spacing: -.03em; font-variant-numeric: lining-nums; white-space: nowrap; }
.phone-card__arrow { width: 22px; height: 22px; margin-left: 6px; transition: transform .25s var(--ease); }
.phone-card:hover .phone-card__arrow { transform: translateX(4px); }

.kcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; color: var(--on-dark); text-decoration: none; min-width: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(243, 241, 234, .14); transition: border-color .25s, transform .25s var(--ease); }
a.kcard:hover { color: #fff; border-color: rgba(242, 179, 61, .55); transform: translateY(-2px); }
.kcard__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, #f6c463, #e9a52c); box-shadow: 0 8px 18px -10px rgba(242, 179, 61, .9); }
.kcard__icon svg { width: 21px; height: 21px; }
.kcard__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.kcard__txt small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 3px; }
.kcard__txt b { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.kcard__txt > span { color: var(--on-dark-2); font-size: .92rem; }
.kcard__go { margin-top: 6px; color: var(--accent) !important; font-weight: 700; font-size: .92rem !important; }
.kcard--map { grid-column: 1 / -1; justify-content: space-between; padding: 14px 14px 14px 18px; }
.kcard__body { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.minimap { width: min(240px, 42%); height: auto; flex: none; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(243, 241, 234, .1); }
@media (prefers-reduced-motion: no-preference) {
  .minimap__pulse { transform-origin: 132px 86px; animation: pin-pulse 2.4s ease-out infinite; }
  @keyframes pin-pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2); opacity: 0; } }
}
@media (max-width: 900px) and (orientation: portrait) { .contact { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 760px) and (orientation: portrait) {
  .kontakt .contact__lead { margin: 8px 0 12px; }
  .phone-card { width: 100%; padding: 10px 16px 10px 10px; }
  .phone-card__icon { width: 46px; height: 46px; }
  .phone-card__txt b { font-size: 1.9rem; }
  .phone-card__arrow { margin-left: auto; }
  .kcards { gap: 8px; }
  .kcard { padding: 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .kcard__icon { width: 38px; height: 38px; }
  .kcard__txt b { font-size: .9rem; }
  .kcard--map { flex-direction: row; align-items: center; }
  .minimap { width: 34%; }
  .kdeco svg { opacity: .06; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .kontakt .contact__lead { display: none; }
  .phone-card { padding: 8px 14px 8px 8px; }
  .phone-card__icon { width: 40px; height: 40px; }
  .phone-card__txt b { font-size: 1.6rem; }
  .kcards { gap: 6px; }
  .kcard { padding: 8px 12px; gap: 10px; }
  .kcard__icon { width: 34px; height: 34px; }
  .kcard__txt small { display: none; }
  .kcard__txt b { font-size: .86rem; }
  .kcard__txt > span:not(.kcard__go) { display: none; }
  .kcard__go { margin-top: 2px; }
  .minimap { width: 30%; max-height: 64px; }
}

/* =============================================================================
   GRADIENTY — głębia bez utraty czytelności
   ============================================================================= */
.section:not(.section--tint):not(.section--dark) { background:
  radial-gradient(42% 60% at 100% 0%, rgba(26, 51, 84, .07), rgba(26, 51, 84, 0) 70%),
  radial-gradient(40% 55% at 0% 100%, rgba(242, 179, 61, .09), rgba(242, 179, 61, 0) 70%),
  #fff; }
.section--tint { background:
  radial-gradient(45% 65% at 0% 0%, rgba(26, 51, 84, .09), rgba(26, 51, 84, 0) 70%),
  radial-gradient(45% 60% at 100% 100%, rgba(242, 179, 61, .13), rgba(242, 179, 61, 0) 70%),
  linear-gradient(180deg, #f6f4ef, #f1eee6); }
.btn--primary { background: linear-gradient(135deg, #213e63, #1a3354 55%, #142a47); }
.btn--primary:hover { background: linear-gradient(135deg, #1a3354, #11243c); }
.btn--accent { background: linear-gradient(135deg, #f7cc72, #f2b33d 55%, #e9a52c); }
.plan--main { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #1a3354, #3a5f90 50%, #f2b33d) border-box; }
.plan__badge { background: linear-gradient(135deg, #213e63, #1a3354); }
.dl.is-next { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #1a3354, #f2b33d) border-box; }
.calc__result { background: radial-gradient(80% 90% at 100% 0%, rgba(242, 179, 61, .22), rgba(242, 179, 61, 0) 60%), linear-gradient(150deg, #213e63, #1a3354 50%, #10233c); }
.plan__icon, .extra__icon { background: linear-gradient(135deg, #e9edf2, #d8e0ea); }
.footer { background: radial-gradient(40% 80% at 100% 0%, rgba(242, 179, 61, .08), rgba(242, 179, 61, 0) 70%), linear-gradient(180deg, #0d1c30, #0a1625); }
.eyebrow::before { background: linear-gradient(90deg, #f2b33d, #3a5f90); }
/* kontrast na gradientach (scripts/contrast.py) */
.kcard { background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); }
.kcard__txt small, .kcard__txt > span { color: #cad1db; }
.kcard__go { color: #f7cf7a !important; }
.calc__result { background: radial-gradient(80% 90% at 100% 0%, rgba(242, 179, 61, .12), rgba(242, 179, 61, 0) 60%), linear-gradient(150deg, #1c375b, #1a3354 50%, #10233c); }
.calc__label, .calc__unit { color: #d5dce4; }
.kcards { grid-template-columns: 1.45fr 1fr; }
.kcard:first-child .kcard__txt b { overflow-wrap: normal; white-space: nowrap; font-size: .95rem; }
@media (max-width: 760px) and (orientation: portrait) { .kcards { grid-template-columns: 1fr 1fr; } .kcard:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; } .kcard:nth-child(2) { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
/* cele dotyku ≥ 44 px w przesuwaku terminów */
.cal__btn { width: 44px !important; height: 44px !important; }
.cal__range { height: 44px; }
.cal { padding-bottom: 2px; }
.cal__head { min-height: 44px; }
.cal__track { margin: 2px 0 0; }
/* przesuwak terminów bez tła — karty leżą na zdjęciu */
.cal { background: none; box-shadow: none; padding: 0; color: #fff; }
.cal__head { padding: 0 2px 0 4px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.cal__btn { background: rgba(12, 25, 41, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.cal__btn:hover { background: #fff; color: var(--brand-dark); }
.cal__btn:disabled { opacity: .4; }
.cal__card { background: rgba(255, 255, 255, .9); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.cal__card.is-active { background: #fff; box-shadow: 0 0 0 2px #f2b33d, 0 18px 36px -16px rgba(0, 0, 0, .65); }
.cal__range { width: calc(100% - 8px); margin: 0 4px; }
.cal__range::-webkit-slider-runnable-track { background: linear-gradient(90deg, #f2b33d var(--p, 0%), rgba(255, 255, 255, .35) var(--p, 0%)); }
.cal__range::-moz-range-track { background: rgba(255, 255, 255, .35); }
.cal__range::-moz-range-progress { background: #f2b33d; }
.cal__range::-webkit-slider-thumb { border-color: #f2b33d; }
.cal__range::-moz-range-thumb { border-color: #f2b33d; }
.cal__range:focus-visible { outline-color: #f2b33d; }
.cal__btn:focus-visible { outline: 3px solid #f2b33d; outline-offset: 2px; }
.cal__card { color: var(--ink); }
.cal { width: min(470px, 100%); }
.cal__track { position: relative; } /* punkt odniesienia dla offsetLeft kart */
/* szerokość kart i marginesy liczone od szerokości panelu (jednostki kontenera) — pierwsza karta startuje na środku */
.cal { container-type: inline-size; --cw: 64cqw; }
.cal__track { padding-inline: calc((100cqw - var(--cw)) / 2); }
.cal__card { flex-basis: var(--cw); }
@media (max-width: 760px) and (orientation: portrait) { .cal { --cw: 70cqw; } }
/* jedna karta naraz — boczne ukryte (o kolejnych mówią strzałki i suwak) */
.cal { --cw: 100cqw; }
.cal__track { padding-inline: 0; gap: 16px; padding-block: 6px; }
@media (max-width: 760px) and (orientation: portrait) { .cal { --cw: 100cqw; } }
.cal { --cw: calc(100cqw - 8px); }
.cal__track { padding-inline: 4px; scroll-padding-inline: 4px; }
@media (max-width: 760px) and (orientation: portrait) { .cal { --cw: calc(100cqw - 8px); } }

/* ---------- sekcja Terminy: przycisk 6 miesięcy + okno z osią czasu ---------- */
.dl__left { margin-top: 6px; }
.dl-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: clamp(12px, 2svh, 20px); }
.dl-more .note { margin: 0; }
.dlg { width: min(680px, calc(100vw - 24px)); max-height: min(86svh, 820px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); overflow: hidden; }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(12, 25, 41, .55); }
.dlg-open { overflow: hidden; }
.dlg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; background: radial-gradient(70% 120% at 100% 0%, rgba(242, 179, 61, .14), rgba(242, 179, 61, 0) 70%), var(--tint); border-bottom: 1px solid var(--line); }
.dlg__head .eyebrow { margin-bottom: 6px; }
.dlg__head h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.dlg__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px var(--line); }
.dlg__close:hover { background: var(--brand-soft); color: var(--brand); }
.dlg__close svg { width: 20px; height: 20px; }
.dlg__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 16px; }
.tl__month h4 { position: sticky; top: 0; z-index: 1; margin: 0; padding: 14px 0 8px; background: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.tl__list { position: relative; display: grid; gap: 8px; padding-left: 0; }
.tl__row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--tint); }
.tl__row.is-yearly { background: linear-gradient(90deg, var(--accent-soft), #fff 80%); box-shadow: inset 3px 0 0 var(--accent); }
.tl__date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tl__date b { font: 600 1.7rem/1 var(--f-num); letter-spacing: -.03em; color: var(--brand); font-variant-numeric: lining-nums; }
.tl__date small { margin-top: 3px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl__what { display: flex; flex-direction: column; gap: 3px; font-weight: 600; font-size: .96rem; line-height: 1.3; }
.tl__what em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff; color: #7a5410; font-size: .7rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; box-shadow: 0 0 0 1px rgba(242, 179, 61, .5); }
.tl__left { padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--brand); font-size: .78rem; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 1px var(--line); }
.dlg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.dlg__foot p { margin: 0; flex: 1 1 260px; color: var(--muted); font-size: .88rem; }
@media (prefers-reduced-motion: no-preference) {
  .dlg[open] { animation: dlg-in .3s var(--ease) both; }
  .dlg[open]::backdrop { animation: dlg-fade .3s ease both; }
  .dlg.is-closing { animation: dlg-out .2s ease both; }
  @keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
  @keyframes dlg-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
  @keyframes dlg-fade { from { opacity: 0; } }
}
@media (max-width: 760px) and (orientation: portrait) {
  .dl-more { margin-top: 10px; }
  .dl-more .btn { width: 100%; min-height: 46px; }
  .dl-more .note { display: none; }
  .dlg { width: 100vw; max-width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .dlg__head { padding: 16px 16px 12px; }
  .dlg__body { padding: 4px 16px 12px; }
  .tl__row { grid-template-columns: 44px 1fr; row-gap: 4px; }
  .tl__left { grid-column: 2; justify-self: start; }
  .dlg__foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .dlg__foot p { display: none; }
  .dlg__foot .btn { width: 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .dl-more { margin-top: 8px; }
  .dl-more .note { display: none; }
  .dl-more .btn { min-height: 44px; }
  .dlg { max-height: 94svh; }
  .dlg__head { padding: 10px 16px; }
  .dlg__head .eyebrow, .dlg__foot p { display: none; }
  .dlg__foot { padding: 8px 16px; }
}
@media (max-height: 520px) and (orientation: landscape) { .dl__tag { display: none; } .dl__left { margin-top: 2px; } .dl { gap: 4px; } }
