/* GENERATED by scripts/build-fonts.py — do not edit.
   Every face the Figma file resolves to, including the ones that
   appear only inside styleOverrideTable runs (italic display cuts,
   Montserrat Medium). Family names match Figma verbatim. */

@font-face {
  font-family: "IM FELL English PRO";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-english-pro-400.woff2") format("woff2");
}

@font-face {
  font-family: "IM FELL English PRO";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-english-pro-400i.woff2") format("woff2");
}

@font-face {
  font-family: "IM Fell DW Pica SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-dwpica-sc-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IM Fell DW Pica";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-dwpica-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IM FELL English";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-english-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IM FELL English";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-english-400i-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IM FELL French Canon";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-frenchcanon-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IM FELL Double Pica";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-doublepica-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IM FELL Double Pica";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/imfell-doublepica-400i-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/montserrat-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/montserrat-300-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/montserrat-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-sc-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-sc-400-latin.woff2") format("woff2");
}

/* =========================================================================
   srokizaogon.pl — layout and components.

   Reads every colour, face and size from tokens.css. Nothing here invents a
   value; if something looks wrong, fix the token, not this file.

   The design is completely flat — zero effects across all seven Figma frames.
   Do not add shadows.
   ========================================================================= */

/* tokens.css is <link>ed before this file in the HTML — linking both
   avoids the extra round-trip an @import would serialise. */

/* @font-face rules come from assets/fonts.css, generated by
   scripts/build-fonts.py and concatenated ahead of this file at
   build time — the same set the PrestaShop theme uses. */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- page ---------------------------------------------------------------- */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-weight: var(--w-light);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  /* Full-bleed: the Figma frames are 1440 edge-to-edge and carry their own
     internal margins. Adding a gutter here detaches the header/footer bands
     from the window edge, which the design does not do. */
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

/* --- typography ---------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-variant-caps: small-caps;
  font-weight: var(--w-regular);
  line-height: var(--lh-display);
  text-wrap: balance;
  color: var(--c-accent);
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
.hero { font-size: clamp(3rem, 9vw, var(--t-hero)); }

p { max-width: 62ch; }
.lead { font-size: var(--t-body-lg); font-weight: var(--w-regular); }
.body { font-size: var(--t-body-sm); }
.small { font-size: var(--t-caption); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--c-accent); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* The header, nav and footer are part of the Figma frames themselves — white
   pill shapes with labels on top — so the canvas renders them like everything
   else. An earlier version invented its own header and footer in HTML, which
   is why their colours and design did not match the design. Nav labels inside
   the canvas are wrapped in <a> by the build. */
.canvas a { color: inherit; text-decoration: none; }
.canvas a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* The design marks the current page with a pink pill, not an underline.
   aria-current still exposes it to assistive tech. */
.canvas a[aria-current="page"] { text-decoration: none; }

/* --- canvas -------------------------------------------------------------
   The Figma pages are collages: art overlaps coloured panels and text sits on
   top of both. Elements are positioned in percentages of the frame box, inside
   an aspect-ratio container, so the composition is reproduced exactly and
   scales fluidly. Type is sized in cqw for the same reason.

   DOM order is paint order, so full-bleed backgrounds land behind the art.
   ------------------------------------------------------------------------- */
main { padding: 0; }

.canvas {
  position: relative;
  container-type: inline-size;
  width: 100%;
  /* Every page frame in Figma has clipsContent: true, so art placed inside a
     frame but extending past it is cropped there. Without this, those elements
     paint outside the canvas — on kontakt a 1975px paper texture sits 745px
     ABOVE the frame origin and covered the site header completely. */
  overflow: hidden;
}
.canvas .el { position: absolute; margin: 0; }
/* Solid-fill shapes from Figma: the white pills behind nav items and arrow
   links, the header/footer bands, the colour blocks. Purely decorative — the
   text sits in its own element on top. */
.canvas .el-shape { pointer-events: none; }
.canvas .el > * { margin: 0; }
/* Leading comes from Figma (`lh` in the content files) and is emitted on the
   .el itself, so the inner tag must INHERIT rather than set its own — and the
   fallbacks below are wrapped in :where() to weigh nothing, or a two-class
   selector here would outrank the generated single-class rule and put every
   box back to --lh-body. That was worth ~30% extra height per paragraph. */
/* DESCENDANT, not child: a nav label is .el > a > h3, so a child selector
   misses the heading inside the link and it falls back to the global
   `h3 { font-size: var(--t-h3) }` — a fixed 24px that does not scale with the
   canvas, so every nav label overflowed its pill as the window narrowed. */
.canvas .el :is(p, h1, h2, h3) { font-size: inherit; line-height: inherit;
                                 max-width: none; }
:where(.canvas .el) { line-height: var(--lh-body); }
:where(.canvas .el.t-hero, .canvas .el.t-h1,
       .canvas .el.t-h2, .canvas .el.t-h3) { line-height: var(--lh-display); }
/* Blocks whose font Figma could not resolve — the long intro paragraph on each
   page. IM Fell DW Pica roman, not the small-caps cut and not the body sans. */
.canvas .el.t-prose { font-family: var(--f-prose); }
.canvas .el h1, .canvas .el h2, .canvas .el h3 {
  font-family: var(--f-display);
  font-variant-caps: small-caps;
  color: inherit;
}
:where(.canvas .el.t-hero) { line-height: 1; }
.canvas figure { overflow: hidden; }
/* Figma image fills default to scaleMode FILL — cover-crop to the box. */
.canvas figure picture,
.canvas figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) {
  .canvas:not(.canvas-mobile) figure { overflow: visible; height: auto !important; }
  .canvas:not(.canvas-mobile) figure img { height: auto; object-fit: initial; }
}

.only-mobile { display: none; }
@media (max-width: 800px) {
  /* A real 390-wide Figma frame exists for this page: show it instead of the
     flattened desktop canvas. Pages without one have no .only-mobile block and
     fall through to the stack below.

     `.canvas-mobile` is a designed collage in its own right, so it keeps the
     desktop machinery — absolute positioning, cqw type, cover-cropped art —
     and every rule in the linear-stack block below excludes it by that class.
     Do NOT try to undo those rules here with `revert`: the build emits the
     Figma type scale as INLINE cqw font sizes, and an !important `revert` in
     this sheet outranks them, collapsing the whole frame to 16px. */
  .only-desktop { display: none; }
  .only-mobile  { display: block; }
  /* The 390 frame carries its own edge-to-edge paper ground, so it breaks out
     of the gutter — but only the frame itself. o-mnie appends the standalone
     stopka AFTER it, and that one is a flattened 1440 canvas that still needs
     the gutter, so this must not widen .wrap. */
  .only-mobile { width: 100vw; margin-left: calc(50% - 50vw); }
}

/* --- mobile ---------------------------------------------------------------
   Below 800px the collage flattens to a linear stack in reading order.
   Three of the six pages have a real 390-wide Figma frame; the rest do not,
   so this fallback has to carry them.
   ------------------------------------------------------------------------- */
@media (max-width: 800px) {
  /* Backdrops are the design's layering, not content — stacked linearly they
     are just screens of blank coloured paper. Same for the pill shapes and
     colour bands, which sit BEHIND text; the links below become the buttons. */
  .canvas:not(.canvas-mobile) .el-backdrop,
  .canvas:not(.canvas-mobile) .el-shape { display: none !important; }

  .canvas:not(.canvas-mobile) {
            aspect-ratio: auto !important; display: flex; flex-direction: column;
            gap: 1.25rem; container-type: normal; overflow: visible; }
  /* The desktop canvas is full-bleed because the design's bands run edge to
     edge. The linear stack has no bands, so it needs a normal gutter. */
  .wrap { width: min(100% - 2.5rem, 1440px); }
  .canvas:not(.canvas-mobile) .el {
                position: static !important; width: auto !important;
                height: auto !important; font-size: inherit !important; }
  .canvas:not(.canvas-mobile) .el img,
  .canvas:not(.canvas-mobile) .el picture { height: auto !important; }

  /* Every nav item and call to action is a link sitting on a white pill in the
     design. The pill is a separate shape that the stack drops, so the link
     itself becomes the button — and a 44px target, which the 24px text is not. */
  .canvas:not(.canvas-mobile) .el a:not([aria-label]) {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0.35em 1.1em;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-pill);
    text-decoration: none;
  }
  .canvas:not(.canvas-mobile) .el a[aria-current="page"] { background: var(--c-tint, var(--c-bg-alt)); }
  /* the logo and the social icons are images, not pills */
  .canvas:not(.canvas-mobile) .el a[aria-label] { display: inline-block; }
  .canvas:not(.canvas-mobile) figure a img { max-height: 44px; width: auto; }

  .canvas:not(.canvas-mobile) .el.t-hero  { font-size: var(--t-h1) !important; }
  .canvas:not(.canvas-mobile) .el.t-h1    { font-size: var(--t-h1) !important; }
  .canvas:not(.canvas-mobile) .el.t-h2    { font-size: var(--t-h2) !important; }
  .canvas:not(.canvas-mobile) .el.t-h3    { font-size: var(--t-h3) !important; }
  .canvas:not(.canvas-mobile) .el.t-prose { font-size: var(--t-body-lg) !important; }
  .canvas:not(.canvas-mobile) .el.t-lead  { font-size: var(--t-body-lg) !important; }
  .canvas:not(.canvas-mobile) .el.t-body  { font-size: var(--t-body-sm) !important; }
  .canvas:not(.canvas-mobile) .el.t-small { font-size: var(--t-caption) !important; }
  /* text boxes were measured for a 1440 canvas; let them use the full width,
     and left-align so the nav pills form a tidy row instead of staggering */
  .canvas:not(.canvas-mobile) .el {
                white-space: normal !important; max-width: 100% !important;
                text-align: left !important; }
  /* Style RUNS carry font-size in cqw. The canvas is no longer a container
     here, so cqw resolves against the viewport and the text renders tiny —
     the run keeps its family, weight, italic and colour, but not its size. */
  .canvas:not(.canvas-mobile) .el span { font-size: inherit !important; }
  /* Keep the art from dwarfing the copy. --dw is the width the element was
     drawn at in Figma; in the stack every element is width:auto, so without a
     ceiling a small decorative mark is scaled up to the whole screen. */
  .canvas:not(.canvas-mobile) figure img { max-height: 70vh; object-fit: contain; }
  .canvas:not(.canvas-mobile) .el figure,
  .canvas:not(.canvas-mobile) figure.el,
  .canvas:not(.canvas-mobile) .el-vector {
    /* !important because the stack sets `.el { max-width: 100% !important }`
       for the text boxes, which would otherwise win and uncap the art */
    max-width: min(100%, var(--dw, 100%)) !important;
  }
  /* small marks read as decoration, not content — centre them */
  .canvas:not(.canvas-mobile) figure.el { margin-inline: auto; }
}

/* --- extra testimonials, behind a toggle ---------------------------------
   Only one review sits inside each page frame; the rest were drawn as
   standalone `opinie` groups. They render as their own canvases, stacked. */
.reviews { display: flex; flex-direction: column; }
.reviews-toggle { display: flex; justify-content: center;
                  padding: clamp(1rem, 3vw, 2rem) 1.25rem; }
.reviews-btn {
  font-family: var(--f-display);
  font-variant-caps: small-caps;
  font-size: var(--t-h3);
  color: var(--c-ink);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-pill);
  padding: var(--s-pad) calc(var(--s-pad-lg) * 1.5);
  cursor: pointer;
}
.reviews-btn:hover { background: var(--c-accent); color: var(--c-bg-alt);
                     border-color: var(--c-accent); }
.reviews-list[hidden] { display: none; }
.reviews-list > .canvas + .canvas { margin-top: 0; }

/* --- call to action ------------------------------------------------------ */
.cta {
  display: inline-block;
  font-family: var(--f-display);
  font-variant-caps: small-caps;
  font-size: var(--t-h3);
  text-decoration: none;
  padding: var(--s-pad) calc(var(--s-pad-lg));
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  color: var(--c-accent);
}
.cta:hover { background: var(--c-accent); color: var(--c-bg); }

/* --- landing page nav (glowna uses its own arrow links, not the nav) ----- */
.landing-links {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  padding-block: 2rem;
}
.landing-links a {
  font-family: var(--f-display);
  font-variant-caps: small-caps;
  font-size: var(--t-h2);
  text-decoration: none;
  color: var(--c-accent);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- how a bitmap fills its box ------------------------------------------
   Figma's scaleMode, carried through as a class. The default (FILL) is the
   cover-crop above; these two are the other modes the file uses. Getting this
   wrong crops artwork that was drawn to fit — 84 fills are STRETCH. */
/* Crop mode: the element is the window, the bitmap is positioned inside it by
   the per-element rule the build emits from Figma's imageTransform. */
.canvas .el-crop { position: absolute; overflow: hidden; }
.canvas .el-fit-contain picture,
.canvas .el-fit-contain img { object-fit: contain; }

/* A button whose pill and label were merged (mobile canvases only — see
   pair_pills in build-site.py). The element IS the pill, so the link must
   fill it rather than sit in a corner of it. */
.canvas .el-pill > a { display: flex; align-items: center; justify-content: center;
                       width: 100%; height: 100%; }

/* --- mobile menu ----------------------------------------------------------
   The Figma mobile frames carry no navigation — główna navigates through its
   coloured section blocks and the other two have none at all — so below 800px
   there was no way off the page you landed on.

   A <details>, deliberately: it opens and closes with no JavaScript, which is
   the rule the rest of the site already follows.
   ------------------------------------------------------------------------- */
.mnav { display: none; }

@media (max-width: 800px) {
  .mnav {
    display: block;
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 60;
  }
  .mnav > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;                 /* a real touch target */
    height: 44px;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-pill);
    cursor: pointer;
  }
  .mnav > summary::-webkit-details-marker { display: none; }
  /* three strokes, drawn rather than imported — the icon set has no burger */
  .mnav-bars,
  .mnav-bars::before,
  .mnav-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-ink, currentColor);
    border-radius: 2px;
  }
  .mnav-bars { position: relative; }
  .mnav-bars::before,
  .mnav-bars::after { content: ""; position: absolute; left: 0; }
  .mnav-bars::before { top: -6px; }
  .mnav-bars::after  { top: 6px; }
  /* open: the bars become a cross, so the control reads as a toggle */
  .mnav[open] .mnav-bars { background: transparent; }
  .mnav[open] .mnav-bars::before { top: 0; transform: rotate(45deg); }
  .mnav[open] .mnav-bars::after  { top: 0; transform: rotate(-45deg); }

  .mnav-list {
    position: absolute;
    top: calc(44px + 0.5rem);
    right: 0;
    min-width: 12.5rem;
    /* --r-soft is 67px, a deliberate part of the design language. On a panel
       this narrow that curve eats the first and last row, so the padding is
       set from the radius rather than the radius being invented away. */
    padding: calc(var(--r-soft) / 3) 0.5rem;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-soft);
  }
  .mnav-list a {
    display: block;
    padding: 0.7rem 0.9rem;
    font-family: var(--f-display);
    font-variant-caps: small-caps;
    font-size: var(--t-body);
    color: var(--c-text);
    text-decoration: none;
  }
  .mnav-list a[aria-current="page"] { background: var(--c-tint, var(--c-bg));
                                      border-radius: var(--r-pill); }
}

/* --- mobile footer --------------------------------------------------------
   Replaces two broken states below 800px: the frames that simply end with no
   footer (główna, warsztaty mobile) and the standalone `stopka`, a 1440-wide
   group that flattens into a giant wordmark, an oversized star and a stray
   icon. Every string comes from content/_shared.json and content/links.json —
   the same source the desktop footer is drawn from.
   ------------------------------------------------------------------------- */
.mfoot { display: none; }

@media (max-width: 800px) {
  .mfoot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 2.5rem 1.25rem 3rem;
    border-top: 1px solid var(--c-rule);
    text-align: center;
  }
  .mfoot-logo { width: min(62%, 15rem); height: auto; }
  .mfoot-lead {
    font-family: var(--f-display);
    font-variant-caps: small-caps;
    font-size: var(--t-h3);
    line-height: var(--lh-display);
    max-width: 22ch;
    margin: 0;
  }
  .mfoot-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .mfoot-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.3em 1.1em;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-pill);
    font-family: var(--f-display);
    font-variant-caps: small-caps;
    font-size: var(--t-body-sm);
    text-decoration: none;
  }
  .mfoot-nav a[aria-current="page"] { background: var(--c-tint, var(--c-bg-alt)); }
  .mfoot-social { display: flex; gap: 1.5rem; }
  .mfoot-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  /* the four icons have different viewBoxes (30x25, 24x24, ...), so they are
     normalised by HEIGHT — sizing by width alone made Facebook a third bigger
     than the rest */
  .mfoot-social svg { height: 24px; width: auto; }
  .mfoot-policy { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .mfoot-policy li,
  .mfoot-legal { font-size: var(--t-caption); color: var(--c-text-muted); }
  .mfoot-legal { margin: 0; }

  /* the frame's own footer and nav, and the appended stopka, give way to the
     HTML footer above and to the burger */
  .canvas:not(.canvas-mobile) .el-chrome-footer { display: none !important; }

  /* Crop images position their bitmap absolutely inside the figure (see
     crop_css). In the stack the figure is height:auto, so an absolute child
     escapes it and paints over whatever follows — the envelope on kontakt
     landed on top of the nav. Here the whole image is simply shown. */
  .canvas:not(.canvas-mobile) .el-crop > picture,
  .canvas:not(.canvas-mobile) .el-crop > img,
  .canvas:not(.canvas-mobile) .el-crop > picture > img {
    position: static !important;
    left: auto !important; top: auto !important;
    width: 100% !important; height: auto !important;
    object-fit: contain !important;
  }
  .canvas-stopka { display: none !important; }
}

/* --- clusters -------------------------------------------------------------
   An illustration and the text it belongs to are separate Figma nodes. On the
   collage that is invisible; in the linear stack below 800px they became
   independent blocks and a card read as three floating pieces. The build wraps
   each group (see cluster_items in build-site.py).

   display:contents on desktop: the wrapper generates no box, so the absolutely
   positioned children still resolve against the canvas and nothing moves.
   ------------------------------------------------------------------------- */
.cluster { display: contents; }

@media (max-width: 800px) {
  .canvas:not(.canvas-mobile) .cluster {
    display: flex;
    flex-direction: column;
    /* tighter than the 1.25rem between blocks, so the group reads as one */
    gap: 0.5rem;
  }
  /* a run of small marks — the social icons — belongs on one line, not as one
     stacked block per icon */
  .canvas:not(.canvas-mobile) .icon-row {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 1.1rem;
  }
  .canvas:not(.canvas-mobile) .icon-row > .el { width: auto !important; }
}
.icon-row { display: contents; }

/* --- sliders --------------------------------------------------------------
   Two kinds, both CSS-only: `overflow-x: auto` with scroll snapping, so they
   swipe on a phone, scroll with a trackpad, and stay a plain scrollable list
   for a keyboard or a screen reader. No JavaScript, as everywhere else here.
   ------------------------------------------------------------------------- */


@media (max-width: 800px) {
  .canvas:not(.canvas-mobile) .img-slider {
    display: flex;
    flex-flow: row nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 0.5rem;
  }
  /* A filmstrip: every photograph the same height, its width following its
     own aspect ratio, so a gallery always runs past the edge of the screen
     and reads as something to swipe. Sizing slides by their designed width
     instead let a whole gallery fit on screen, and then there was nothing to
     scroll and no reason for the arrows to appear. */
  .canvas:not(.canvas-mobile) .img-slider > .el {
    flex: 0 0 auto;
    max-width: none !important;
    scroll-snap-align: center;
    margin-inline: 0 !important;
  }
  .canvas:not(.canvas-mobile) .img-slider > .slide-photo {
    height: auto;
    width: auto;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: var(--r-soft);
  }
  /* The <picture> is display:contents: sizing the image through a
     height:100% chain (figure -> picture -> img) collapsed every slide to
     zero width, so the strip never overflowed and the arrows stayed hidden.
     The image carries the height itself and its width follows its aspect. */
  .canvas:not(.canvas-mobile) .img-slider > .slide-photo picture {
    display: contents;
  }
  .canvas:not(.canvas-mobile) .img-slider > .slide-photo img {
    height: 58vw !important;
    width: auto !important;
    max-width: none !important;
    object-fit: cover !important;
    position: static !important;
  }
  /* the small drawn marks stay small and sit between the photographs */
  .canvas:not(.canvas-mobile) .img-slider > .slide-mark {
    width: min(22%, var(--dw, 22%));
    align-self: center;
  }
}

/* --- slider chrome --------------------------------------------------------
   The strip itself is the scroller; the buttons sit over it. The wrapper is
   display:contents on desktop so it generates no box and the canvas layout is
   untouched. Buttons appear only once the script has run — without it the
   strip still swipes and scrolls, so nothing is lost.
   ------------------------------------------------------------------------- */
.slider-wrap { display: contents; }
.reviews-strip .slider-wrap { display: block; position: relative; }
.slider-btn { display: none; }

.slider,
.canvas:not(.canvas-mobile) .img-slider {
  scroll-behavior: smooth;
  /* the native bar is the "Windows 98" look — the arrows replace it */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.slider::-webkit-scrollbar,
.img-slider::-webkit-scrollbar { width: 0; height: 0; }

@media (max-width: 800px) {
  .slider-wrap { display: block; position: relative; }
  .has-slider-js .slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--c-bg-alt);
    color: var(--c-ink, currentColor);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-pill);
    cursor: pointer;
    z-index: 3;
    transition: opacity 0.15s ease;
  }
  .slider-btn.prev { left: 0.5rem; }
  .slider-btn.next { right: 0.5rem; }
  .slider-btn.next svg { transform: rotate(180deg); }
  .slider-btn svg { width: 20px; height: 20px; display: block; }
  .slider-btn[disabled] { opacity: 0; pointer-events: none; }
  /* nothing to scroll: no chrome at all */
  .slider-wrap.no-scroll .slider-btn { display: none; }

  /* room for the arrows so they never sit on top of a photo's subject */
  .canvas:not(.canvas-mobile) .img-slider { padding-inline: 0.5rem; }
  .slider { padding-inline: 0.75rem; }
}

/* --- text that was written to sit on a panel ------------------------------
   In the collage these blocks sit on a coloured band or a photograph. The
   stack hides backdrops, which took the yellow ground out from behind the
   copy on opieka-kreatywna — and on fotografia the intro is set in #f8e8e8
   over the hero photograph, so it became near-white text on cream paper and
   disappeared completely. The block carries its backdrop as its own
   background instead, so both the colour and the contrast survive.
   ------------------------------------------------------------------------- */
@media (max-width: 800px) {
  .canvas:not(.canvas-mobile) .el-on-bg {
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    padding: 1.25rem 1.1rem !important;
    border-radius: var(--r-soft);
    /* the stack breaks out of the gutter so the panel reads as a band */
    margin-inline: -0.4rem !important;
  }
}

/* The testimonial placed inside the page frame is the strip's first slide,
   so it must not also appear as loose copy below 800px. */
@media (max-width: 800px) {
  .canvas:not(.canvas-mobile) .el-review-inline { display: none !important; }
}

/* --- the testimonial strip ------------------------------------------------
   Replaces the band the design gives to one review, and carries all of them.
   The card texture, the photograph and the colour layer come from that band,
   so the section keeps its own dress instead of an invented one.

   warsztaty: a workshop photograph under a purple layer (blendMode COLOR in
   Figma, background-blend-mode here). opieka-kreatywna: plain paper, yellow
   cards. Both at every width.
   ------------------------------------------------------------------------- */

/* --- the testimonial strip ------------------------------------------------
   The strip IS a canvas element: it takes the place of the quote card the
   design draws, keeping the band's own heading pill and photograph around it.
   It is positioned by the same generated rule as any other element, so the
   canvas is never split — splitting it moved every hand-corrected position in
   fixes.css, which are percentages of the frame height, and the desktop pages
   collided.

   One quote at a time, with an arrow at each edge, at every width.
   ------------------------------------------------------------------------- */
.reviews-strip { overflow: visible; }
.reviews-strip .slider-wrap { display: block; position: relative; height: 100%; }
.reviews-strip .slider {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.reviews-strip .slider::-webkit-scrollbar { width: 0; height: 0; }
.reviews-strip .slide {
  flex: 0 0 100%;            /* one opinion at a time */
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 2.2cqw 3.4cqw;
  background-image: var(--card);
  background-size: cover;
  background-position: center;
  background-color: var(--c-tint-warm, var(--c-bg-alt));
  border-radius: var(--r-soft);
}
.reviews-strip .slide p {
  margin: 0;
  max-width: none;
  font-family: var(--f-prose);
  font-size: 1.35cqw;
  line-height: var(--lh-body);
  text-align: center;
  color: var(--c-ink, var(--c-text));
}
.reviews-strip .slide cite {
  display: block;
  margin-top: 1.1cqw;
  font-family: var(--f-prose);
  font-style: normal;
  font-size: 1.2cqw;
  text-align: center;
}
.reviews-strip .slide cite::before { content: "– "; }

/* arrows, at both widths */
.has-slider-js .reviews-strip .slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--c-bg-alt);
  color: var(--c-ink, currentColor);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-pill);
  cursor: pointer;
  z-index: 4;
}
.reviews-strip .slider-btn.prev { left: -1.4cqw; }
.reviews-strip .slider-btn.next { right: -1.4cqw; }
.reviews-strip .slider-btn.next svg { transform: rotate(180deg); }
.reviews-strip .slider-btn svg { width: 20px; height: 20px; display: block; }
.reviews-strip .slider-btn[disabled] { opacity: 0; pointer-events: none; }
.slider-wrap.no-scroll .slider-btn { display: none; }

@media (max-width: 800px) {
  /* in the linear stack the strip is a normal block: the card sizes to its
     text and the arrows sit inside the edges */
  .canvas:not(.canvas-mobile) .reviews-strip { height: auto !important; }
  .reviews-strip .slide { padding: 1.5rem 1.3rem; }
  .reviews-strip .slide p { font-size: var(--t-body-sm); }
  .reviews-strip .slide cite { font-size: var(--t-caption); margin-top: 1rem; }
  .reviews-strip .slider-btn.prev { left: 0.4rem; }
  .reviews-strip .slider-btn.next { right: 0.4rem; }
}

/* ---------------------------------------------------------------- legal
   Prose pages (privacy, cookies). No Figma frame exists for these, so they
   are set in the site's own tokens rather than positioned from a canvas.
   Design is flat by house rule — no shadows anywhere. */

.legal {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 2rem) 4rem;
  font-family: var(--f-body);
  font-size: var(--t-body-sm);
  line-height: 1.55;
  color: var(--c-ink);
}

.legal h1 {
  font-family: var(--f-display);
  font-variant-caps: small-caps;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
}

.legal h2 {
  font-family: var(--f-display);
  font-variant-caps: small-caps;
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  line-height: 1.2;
  margin: 2.5rem 0 .75rem;
}

.legal-date {
  font-size: var(--t-body-sm);
  opacity: .7;
  margin: 0 0 1.5rem;
}

.legal-lead {
  font-size: var(--t-body);
  line-height: 1.45;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-rule);
}

.legal p  { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin: 0 0 .4rem; }
.legal a  { color: inherit; text-underline-offset: .2em; }

/* The homepage frame has no footer of its own, so this carries the policy
   links above 800px. Below that, .mfoot already does. */
.legal-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem 1rem 2rem;
  font-family: var(--f-body);
  font-size: var(--t-body-sm);
  color: var(--c-ink);
}

.legal-strip a { color: inherit; text-underline-offset: .2em; }

@media (max-width: 800px) {
  .legal-strip { display: none; }
}

/* The prose pages borrow the real chrome: the header band cut from `kontakt`
   and the standalone `stopka` group, both rendered as canvases. Below 800px
   the burger and .mfoot take over, exactly as on every other page. */

.canvas-chrome { margin-bottom: 0; }

@media (max-width: 800px) {
  /* !important, like .canvas-stopka above. The linear-stack rule
     `.canvas:not(.canvas-mobile)` is (0,2,0) — :not() counts its argument —
     against this selector's (0,1,0), so it wins on specificity whatever the
     source order. Without the flag the legal pages kept the desktop header
     slice, flattened it into the stack, and showed seven nav links ABOVE the
     burger that already carries them — and the logo's <a> sat over them. */
  .canvas-chrome { display: none !important; }
}

/* The strip now also renders inside the 390-wide mobile canvases, where it
   stands in the placed quote's box. Its type is sized in cqw against a 1440
   canvas, so at 390 it had to be re-scaled or the quote overflowed the card. */
.canvas-mobile .reviews-strip .slide { padding: 3.2cqw 4cqw; }
.canvas-mobile .reviews-strip .slide p { font-size: 3.1cqw; }
.canvas-mobile .reviews-strip .slide cite { font-size: 2.8cqw; margin-top: 2cqw; }

/* Below 800px the arrows are pulled INSIDE the strip (0.4rem), which is right
   for a full-width stack slider but puts them on top of the words when the
   strip is a 303px card inside a 390 canvas. On a mobile canvas there is room
   either side, so they sit just outside the card, scaled with it. */
.canvas-mobile .reviews-strip .slider-btn { width: 9cqw; height: 9cqw; }
.canvas-mobile .reviews-strip .slider-btn.prev { left: -4.5cqw; }
.canvas-mobile .reviews-strip .slider-btn.next { right: -4.5cqw; }
.canvas-mobile .reviews-strip .slider-btn svg { width: 4.4cqw; height: 4.4cqw; }

/* --- testimonials as whole cards -----------------------------------------
   fotografia's reviews on mobile are whole cards the designer drew — four
   photographs, the reviewer's name, the quote. Each is a render of the
   mobile frame's own card, retargeted to one `opinie` group, with its own
   aspect ratio. As on desktop, the placed review stays in view and the rest
   stack beneath it behind the show/hide button (they were a swipe strip
   until 2026-10-05). Emitted inside `.only-mobile`, so no media query. */
.review-card > .canvas { width: 100%; margin: 0; }
/* Sized and drawn like the mobile frame's own white pills ("napisz do
   mnie →": 24px type on the 390 frame, no border), in vw because the mobile
   canvas is the full viewport wide and its type scales the same way. The
   negative margin pulls the button up into the paper the card's frame leaves
   under the card (--card-gap, from the build), so it sits centred between the
   card and the next section. */
.reviews-mobile { margin-top: calc(-1 * var(--card-gap, 0%)); }
.reviews-mobile .reviews-toggle { padding: 8vw 4vw; }
.reviews-mobile .reviews-btn {
  font-size: 6.154vw;
  line-height: 1.25;
  min-width: 64.36vw;
  padding: 2.6vw 3.86vw;
  background: #ffffff;
  border: 0;
  border-radius: 11.8vw;
  color: var(--c-ink);
}

/* --- the header logo's clickable area ------------------------------------
   The logo node is 512x60 in Figma, but its flattened export is 1024x120 with
   the eye mark in the left 124px and nothing but transparency after it. Placed
   at the node's size, the element — and the <a href="index.html"> wrapped
   round it — stretched 512px across the header and sat on top of the `Sklep`
   pill, which has a lower z-index: clicking Sklep went to the homepage.

   The element is now placed at the drawing's size and the image is blown back
   up inside it and clipped, so what you can click is what you can see. */
.canvas .el-logo { overflow: hidden; }
.canvas .el-logo > a {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

/* --- site credit ----------------------------------------------------------
   Sits on the copyright line wherever that line is drawn (Figma footer node,
   homepage strip, .mfoot), in the line's own face, size and colour, so it
   reads as part of the copyright; underlined only on hover/focus. Appended by add_credit() in build-site.py. */
.credit { white-space: nowrap; }
.credit a,
.credit a:visited { color: inherit; text-decoration: none; }
.credit a:hover,
.credit a:focus-visible { text-decoration: underline;
                          text-underline-offset: .2em; }
/* Where the copyright sits in a narrow column — the desktop Figma footer node
   and .mfoot — the credit takes its own line, a step smaller, rather than
   pushing the copyright to wrap or running past the frame edge. */
.canvas:not(.canvas-mobile) .credit,
.mfoot .credit { display: block; font-size: .8em; margin-top: .15em; }
.canvas:not(.canvas-mobile) .credit-sep,
.mfoot .credit-sep { display: none; }
