/* Femedis design tokens (PLAN-DESIGN-SYSTEMU.md point 4; roles reordered in v12, package 2). Components read only these variables.
   Breakpoints: the --bp-* list below is the one source (min-width): 360 narrow phone, 576, 768, 992, 1200, 1400, 1480, 1680.
   A variable cannot stand in @media, so the CSS writes these numbers and narzedzia/makiety-v15/progi.py checks every @media
   width against the list; scripts read the --bp-* values (ruch.px in skrypty/00-ruch.js).
   Roles that change with width (type, section rhythm, gutter) are redefined in the @media blocks at the bottom of this file,
   so a component writes only font-size: var(--fs-section) and never repeats a breakpoint for them. */

/* Fonts: woff2 cut to the Polish set (narzedzia/makiety-v15/kroje.py). Montserrat in three weights (decision 1b, 29.11):
   a rule asking for 500 gets 400 and one asking for 800 gets 700 (CSS font matching), so no synthetic bold. Poppins: figures only,
   proportional (the source file has no tabular figures, AD-10); a column of amounts that must line up uses Montserrat. */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("media/kroje/montserrat-400.woff2?v=2506b60b") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("media/kroje/montserrat-600.woff2?v=b578b5df") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("media/kroje/montserrat-700.woff2?v=19c7ca3b") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("media/kroje/poppins-700.woff2?v=fb9f73bb") format("woff2"); }


:root {
  /* breakpoints (min-width, T-10): the one list; @media repeats the numbers (checked by progi.py), scripts read these */
  --bp-xs: 360px; --bp-sm: 576px; --bp-md: 768px; --bp-lg: 992px; --bp-xl: 1200px; --bp-xxl: 1400px; --bp-menu: 1200px; --bp-menu-flat: 1800px; --bp-wide: 1480px; --bp-max: 1680px;

  /* colour: one pink, no tints (Konrad 29.11). A raw value stands once; the roles are aliases that say what the colour is for (T-04) */
  --color-primary: #DC2764;
  --color-graphite: #3A3A3A;       /* raw value behind the four graphite roles: title, dark surface, focus, pink hover */
  --color-title: var(--color-graphite);          /* headings and strong text */
  --color-text: #666666;           /* 5.74:1 on white, 5.58:1 on --color-bg-soft */
  --color-bg: #FFFFFF;
  --color-bg-soft: #FDFBFC;        /* pink #DC2764 on it 4.51:1 (AA for small text and links; #FAF7F8 of v10 gave 4.37, stage 8) */
  --color-bg-dark: var(--color-graphite);        /* dark surfaces: dark button, dark badge, an outlined control filled on hover */
  --color-bg-darker: #202020;
  --color-bg-hero: #F4F4F4;        /* light grey behind the team photo (hero chosen in v5) */
  --color-text-sciana: #555555;    /* lead of the hero at the photographed wall (.hero--zespol-sciana): 5.1:1 on its hazed wall (Konrad 5.12.2026) */
  --hero-mgla: rgb(255 255 255 / 0.56);          /* haze under the hero text on the wall, desktop (B3, 5.12.2026) */
  --hero-mgla-telefon: rgb(255 255 255 / 0.48);  /* the same haze on phones, down to the heads */
  --color-on-dark: #FFFFFF;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-soft: rgba(0, 0, 0, 0.05);  /* hairline between tab buttons */
  --color-border-field: #888888;   /* line of a form field: 3.54:1 on white (WCAG 1.4.11, a control needs 3:1; v15 contact form) */
  --color-focus: var(--color-graphite);          /* keyboard focus ring (00-baza.css :focus-visible) */
  --color-overlay: rgba(32, 32, 32, 0.6);
  --color-warning-bg: #FFF6E5;
  --color-info-bg: #FDFBFC;
  /* hover (T-04): a pink control or link under the pointer goes graphite (decision 29.11), a dark control goes darker */
  --color-primary-hover: var(--color-graphite);
  --color-dark-hover: var(--color-bg-darker);
  /* surface context (T-03): the colour of a link and of small pink text (labels, kickers, small links with a class) on the
     surface an element stands on. Pink passes AA for small text only on --color-bg (4.65:1) and --color-bg-soft (4.51:1);
     a surface where it does not (--color-bg-hero 4.23:1, --color-warning-bg 4.33:1) sets both roles to graphite
     (.hero--zespol, .notice--warning, .person__msg--pause, .person-state--pause, .phone-hours__special, .hours-special).
     Large text (19 px bold and more, amounts) may stay --color-primary there (3:1). Map of the pairs: DESIGN.md, "Tokeny". */
  /* v15 (Konrad 4.12): every link is graphite and semibold, never underlined, and pink under the pointer and pressed on every
     surface (on the hero grey and the warm surfaces the pointer state takes --color-link-hover-szare, 5.12.2026) */
  --color-link: var(--color-title);
  --color-link-hover: var(--color-primary);
  /* hover on a surface where pink fails AA (the hero grey 4.23, the warm warning 4.33): a darker pink of the same hue, only for
     the pointer state of a link (Konrad 5.12.2026, "2 tak": the state contrast check flagged 4.23:1); 5.21:1 on --color-bg-hero */
  --color-link-hover-szare: #C41E55;
  --color-accent: var(--color-primary);
  /* states (T-12), from the colours above, no red and no new tint: a state is said in words and drawn by a background;
     text on them is --color-title (10.6:1 on #FFF6E5, 10.3:1 on #F4F4F4) */
  --color-error-bg: var(--color-warning-bg);       /* something did not work (Kopiuj refused) */
  --color-success-bg: var(--color-bg-hero);        /* done (Kopiuj: "Skopiowano") */
  --color-disabled-bg: var(--color-bg-hero);       /* switched-off control: grey box */
  --color-disabled-text: var(--color-text);        /* #666 on #F4F4F4: 5.2:1 */
  /* selected and current (v12, AD-02): pink fill means only an action (.btn--primary, the cookie switch on); what is chosen or
     current (chip, view of the price list, language) is a graphite fill and does not change under the pointer. Exception from
     v10: the chosen tab of the team is pink. */
  --color-selected: var(--color-graphite);
  /* badge (v12, AD-08): a non-clickable pill (announced price, state of a person) has a grey fill and no outline, so it never
     looks like an outlined button; graphite text on it 10.3:1 */
  --color-badge-bg: var(--color-bg-hero);

  /* type */
  --font-base: "Montserrat", sans-serif;
  --font-number: "Poppins", "Montserrat", sans-serif;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
  --measure: 37em;              /* reading line of long text (prose, guide, person, booking): about 70 characters of Montserrat
                                   (F12: 70ch gave 79-93, its "0" is wider than an average letter) */
  --measure-box: 70ch;          /* largest width of a narrow box or table (facts, rating, 404, unavailable service, cookie settings) */
  --measure-loose: 70ch;        /* every other paragraph (p in 00-baza.css; v10 paragraphs, F12 part B) */
  --measure-wide: 42em;         /* a text without subheadings beside a side card (63-tresci.css): about 80 characters, the
                                   longest line of the reading criterion (consistency audit 4.12; 70ch gave 85-102) */
  --tracking-label: 0.06em;     /* uppercase labels (footer heading had 0.08em) */
  --underline-offset: 3px;     /* link in text: underline below the letters (00-baza.css, DESIGN.md rule 16) */
  --underline-thickness: 1px;  /* link in text: underline thickness */
  /* type roles (T-06, T-07): each role is a set of size, line height and weight, named by what it is for, not by a heading
     level (the level is the HTML element; DESIGN.md maps level -> component -> role). Line height: a factor for titles,
     px for text. Phone first, sizes redefined below. A component that keeps another weight than its role writes it. */
  --fs-hero: 28px;      --lh-hero: 1.4;       --fw-hero: var(--fw-bold);       /* H1 of the home hero; drops at 992 when the team photo takes the right half */
  --fs-banner: 30px;    --lh-banner: 1.2;     --fw-banner: var(--fw-bold);     /* H1 of the subpage banner: 30 / 36 (768) / 40 (992), compact band of v14 */
  --fs-closing: 32px;   --lh-closing: 1.428571; --fw-closing: var(--fw-bold);  /* title of the closing box */
  --fs-headline: 30px;  --lh-headline: 1.2;   --fw-headline: var(--fw-bold);   /* lone headline of a block: name on the person page, footer booking call */
  --fs-section: 28px;   --lh-section: 1.4;    --fw-section: var(--fw-bold);    /* title of a section (.title) */
  --fs-block: 20px;     --lh-block: 1.35;     --fw-block: var(--fw-bold);      /* title of a block or card group inside a section */
  --fs-item: 18px;      --lh-item: 1.35;      --fw-item: var(--fw-bold);       /* title of a card, row or list item; a question */
  --fs-lead: 16px;      --lh-lead: 24px;      --fw-lead: var(--fw-regular);
  --fs-body: 16px;      --lh-body: 24px;      --fw-body: var(--fw-regular);
  --fs-body-l: 16px;    --lh-body-l: 24px;    --fw-body-l: var(--fw-regular);  /* text of several sentences in a teaser: 16/24 at every width (v10, F21) */
  --fs-small: 14px;     --lh-small: 20px;     --fw-small: var(--fw-regular);
  --fs-caption: 13px;   --lh-caption: 18px;   --fw-caption: var(--fw-regular);
  --fs-eyebrow: 18px;   --lh-eyebrow: 20px;   --fw-eyebrow: var(--fw-semibold);  /* label above a section title (.eyebrow): 18 px of v10, never above --fs-item (F20) */
  --fs-eyebrow-hero: 19px; --lh-eyebrow-hero: 20px; --fw-eyebrow-hero: var(--fw-bold);  /* hero label: bold 19 px is large text (WCAG 14 pt bold), pink on the hero grey #F4F4F4 has 4.23:1 */
  --fs-label: 14px;     --lh-label: 20px;     --fw-label: var(--fw-bold);      /* small uppercase label (.ftr__eyebrow, .eyebrow--s), with --tracking-label */
  --fs-btn: 16px;       --lh-btn: 1.25;       --fw-btn: var(--fw-regular);
  --fs-btn-lg: 16px;
  --fs-nav: 15px;       --lh-nav: 19px;       --fw-nav: var(--fw-regular);
  /* figures (T-09): amounts and numbers in Poppins, apart from the title roles (a change of a title role does not move a price) */
  --fs-num-s: 20px;     /* amount in a row or a card, emergency numbers */
  --fs-num-m: 28px;     /* phone number as the main action of a card */
  --fs-num-l: 44px;     /* the one amount of a card, the rating score */
  --fs-num-xl: 60px;    /* the 404 number: the v13 sizes (twice the old banner title), kept when the banner title shrank in v14 */
  --lh-num: 1.1;        --fw-num: var(--fw-bold);
  --lh-none: 1;         /* a box exactly as tall as its glyphs: icons, a numeral in a fixed-size pill, the 404 number, the wordmark */

  /* space: steps of 5 and 10 like the source, plus 4 and 8 */
  --space-2: 2px; --space-4: 4px; --space-5: 5px; --space-8: 8px; --space-10: 10px; --space-15: 15px; --space-20: 20px;
  --space-25: 25px; --space-30: 30px; --space-40: 40px; --space-50: 50px; --space-60: 60px; --space-70: 70px; --space-80: 80px;
  --space-100: 100px; --space-120: 120px;

  /* layout rhythm (redefined below). Vertical margins between content elements take a --stack-* role; --space-* is for the
     inside of controls and boxes (T-05) */
  --gutter: 20px;               /* side margin, decision 1b: 20 px, 16 px below 360 */
  --section-pt: 40px;
  --section-pb: 40px;
  --section-head-gap: 20px;
  --grid-gap: 20px;
  --stack-xs: 8px;              /* eyebrow -> title, title -> its text */
  --stack-s: 16px;              /* paragraph, card title -> its content */
  --stack-m: 30px;              /* block -> block inside a section */
  --pad-card-s: 20px;           /* small boxes too: list rows with a shadow, tinted notes, meta tiles (--pad-box merged here, T-04) */
  --pad-card-m: 30px;
  --pad-card-l: 40px;
  --pad-card: var(--pad-card-s); /* every card (v12, AD-07): 20 px on phones, 30 px from 576 (redefined below); a card never
                                    writes its own breakpoint for padding. --pad-card-l stays for the big boxes */
  --pad-cell: 10px 15px;        /* table cells (15px 20px from 768) */

  /* radius */
  --radius-xs: 4px;
  --radius-s: 10px;
  --radius-m: 15px;
  --radius-l: 20px;
  --radius-xl: 30px;
  --radius-2xl: 60px;            /* large closing box from 1400 */
  --radius-pill: 999px;          /* ends always round, whatever the height (T-11; 50 px drew the same up to 100 px) */
  --radius-round: 50%;

  /* shadow: four steps from one base colour (T-11); m and l had graphite at 0.1, black at 0.077 gives the same grey on white */
  --shadow-rgb: 0, 0, 0;
  --shadow-s: 0 5px 20px rgba(var(--shadow-rgb), 0.05);
  --shadow-m: 0 0 30px rgba(var(--shadow-rgb), 0.077);
  --shadow-l: 0 20px 50px rgba(var(--shadow-rgb), 0.077);
  --shadow-bar: 0 0 30px rgba(var(--shadow-rgb), 0.15);
  /* depth roles (v12, AD-01): a component takes a role, not a shadow step. Card at rest (clickable or not, tables too):
     --elev-card; a clickable card under the pointer: --elev-hover; an element above the content (card on the map, menu, cookie
     settings, badge on a photo): --elev-float. A 1 px line only for a switched-off or stand-in state. --shadow-m (the ring
     without offset) stays only on components of v10 (cta__tile, page-hero__crumbs). */
  --elev-card: var(--shadow-s);
  --elev-hover: var(--shadow-l);
  --elev-float: var(--shadow-l);
  /* card surface (v15 consistency audit, P2-9): every white card of every component reads these four and keeps only its own
     layout, so radius, padding, fill and shadow cannot drift per component. --card-pad-tight for compact rows and person cards
     in four columns; --card-radius also for media boxes beside cards (film, team photo) */
  --card-bg: var(--color-bg);
  --card-radius: var(--radius-l);
  --card-pad: var(--pad-card);
  --card-pad-tight: var(--pad-card-s);
  --card-shadow: var(--elev-card);

  /* layers */
  --z-below: -1;                /* decorative layer behind its own box */
  --z-flat: 0;                  /* own stacking context at the ground level (team photo of the hero) */
  --z-base: 1;
  --z-raised: 2;
  --z-sticky: 900;              /* the header */
  --z-menu-overlay: 900;        /* overlay of the menu panel, inside the header: above the bar, under the panel (T-11) */
  --z-menu: 1000;
  --z-dialog: 1100;             /* cookie banner and its settings, skip link: above everything */

  /* motion (point 7) */
  --dur-base: 0.3s;
  --dur-slow: 0.5s;
  --dur-reveal: 1.1s;               /* 0.6 s, then 0.9 s (Konrad 5.12.2026: "as if there were none", "still almost invisible") */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-shift: 56px;             /* entry of content: the distance it rises (skrypty/30-wejscie.js, 00-baza.css); 16, then 30 px until 5.12 */
  --reveal-step: 140ms;             /* entry of content: delay between neighbours in one grid (60, then 110 ms until 5.12) */
  --ease-reveal: cubic-bezier(0.25, 0.7, 0.3, 1);  /* entry of content: softer than --ease-out, so the rise stays visible to its end */
  --dur-page-out: 0.2s;             /* between pages (@view-transition, 00-baza.css; PLAN-ANIMACJI.md): the old page fades out */
  --dur-film: 10s;                  /* the about photo of the home page drifts like a film (21-o-nas.css, Konrad 5.12.2026): one way, then back;
                                       18 s with 108 % and a soft curve until the same day ("trzeba czekać kilka sekund żeby zobaczyć ruch") */
  --film-zoom: 1.14;                /* ... grows to 114 % */
  --film-shift: -3%;                /* ... and moves 3 % of its size to the left and up (the zoom adds 7 % on each side, so the frame stays full) */
  --dur-page: 0.6s;                 /* ... and the new one fades in, longer, so the change reads as a breath, not a blink (0.45 s until 5.12) */

  /* touch target (P:698) and the offset that keeps anchors and sticky columns clear of the fixed header */
  --target: 48px;
  --header-offset: 120px;
  --sticky-after: 100px;        /* scroll after which the header sticks (skrypty/10-naglowek.js) */
  --hero-clear: 160px;          /* hero content clears the absolute header (151 from 576) */
  --banner-clear: 118px;        /* subpage banner content clears the absolute header (130 from 992; v14) */
  --aside-w: 300px;              /* side card column of a content page from 992 (63-tresci.css), 340 px from 1200: one width on every page */
  --cols-gap: var(--space-60);   /* gap between the text and a side column (content pages, pricelist) */
  --hdr-max: 1580px;             /* header bar from 1800 (--bp-menu-flat): wide enough for the nine menu items in one row (v15, 10-naglowek.css) */
  --hdr-btn-w: 230px;           /* header booking button minimum (270 from 992, 280 from 1400; Konrad 4.12); below 992 230, not 245: "Rezerwacja online 24/7" (237) sets the width there, and 245 pushed it 7 px past the screen at 576 (Konrad 5.12.2026) */
  --bar-h: 60px;                /* bottom booking bar below 576 */
  /* what covers the bottom of the window (scroll-padding-bottom, 10-naglowek.css): the bar below 576 (redefined there) and
     the open cookie banner (its height, written by skrypty/62-kontakt.js) */
  --cover-bottom: 0px;
  --cky-h: 0px;

  /* icons */
  --ico-xs: 12px;
  --ico-s: 16px;
  --ico-m: 20px;
  --ico-l: 24px;
  --ico-xl: 32px;
  --bullet: 8px;                /* the list bullet: a pink dot (v15, Konrad 4.12: instead of the tick) */
  /* icon sign in a circle (.sign, 02-ikony.css): phone first, m and l grow from 576 (AD-07: on a phone the sign no longer eats
     the text column) */
  --sign-s: 40px;
  --sign-m: 40px;
  --sign-l: 56px;
}

@media (width < 360px) { :root { --gutter: 16px; } }
@media (width >= 576px) {
  :root {
    --fs-hero: 35px; --lh-hero: 1.3; --fs-closing: 45px; --lh-closing: 1.3; --fs-headline: 35px; --fs-section: 35px; --lh-section: 1.3;
    --fs-block: 22px; --fs-num-s: 22px; --fs-num-m: 35px;
    --fs-lead: 18px; --lh-lead: 28px; --fs-body: 16px; --lh-body: 24px; --section-pt: 50px;
    --hero-clear: 151px;
    --pad-card: var(--pad-card-m); --sign-m: 56px; --sign-l: 72px;
  }
}
@media (width >= 768px) { :root { --pad-cell: 15px 20px; --section-pt: 70px; --fs-hero: 40px; --fs-banner: 36px; --fs-num-xl: 96px; } }
@media (width >= 992px) {
  :root {
    --fs-hero: 34px; --lh-hero: 1.25; --fs-headline: 40px; --fs-section: 38px; --fs-block: 24px; --fs-item: 20px; --fs-btn-lg: 18px;
    --fs-num-s: 24px; --fs-num-m: 38px; --fs-num-l: 56px;
    --section-head-gap: 30px; --grid-gap: 30px; --pad-card-l: 56px;
    --fs-banner: 40px; --banner-clear: 130px; --hdr-btn-w: 270px;
  }
}
@media (width >= 1200px) { :root { --aside-w: 340px; --fs-hero: 42px; --lh-hero: 1.2; --fs-num-xl: 130px; --fs-closing: 55px; --lh-closing: 1.2; } }
@media (width >= 1400px) { :root { --fs-nav: 16px; --lh-nav: 28px; --hdr-btn-w: 280px; } }
@media (width >= 1480px) {
  :root { --fs-hero: 46px; --fs-num-xl: 160px; --fs-closing: 65px; --fs-section: 50px; --lh-section: 1.2; --fs-num-m: 50px; --section-pt: 100px; --section-pb: 70px; }
}
