@layer reset, tokens, base, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
  ul { padding: 0; list-style: none; }
  img, svg, picture { display: block; max-width: 100%; }
  img { height: auto; }
  table { border-collapse: collapse; }
  button { font: inherit; color: inherit; }
}

@layer tokens {
  :root {
    /* kolory z referencji */
    --bg: #282c2d;
    --bg-deep: #222627;
    --surface: #303536;
    --line: #4b5152;
    --text: #e9e3d6;
    --muted: #c0bcb1;
    --accent: #a0623f;
    --accent-hover: #b06f49;
    --accent-line: #ad6c49;
    --accent-text: #dda27c;
    --accent-soft: #c98a61;
    --accent-strong: #e0a679;
    --accent-dark: #8a5436;
    --on-accent: #fffaf3;
    --focus: #f0b892;
    --heading: #efe8da;
    --on-photo: #f3ede0;
    --chip-bg: #3a3e3e;
    --chip-line: #4a4f50;
    --line-soft: #3c4142;
    --line-card: #3f4445;
    --line-head: #383d3e;
    --line-foot: #3b4041;
    --track: #33383a;
    --tile-bg: #333333;
    /* kanały do półprzezroczystych warstw nad zdjęciami */
    --bg-rgb: 40 44 45;
    --bg-deep-rgb: 34 38 39;
    --shade-rgb: 26 29 30;
    --shade-2-rgb: 32 35 36;
    --deep-rgb: 30 33 34;
    --text-rgb: 233 227 214;
    --accent-rgb: 160 98 63;
    /* wspólna obróbka zdjęć: nowe zdjęcia z panelu same wpadają w tonację strony */
    --photo-filter: saturate(.92) brightness(.97);

    --font: "Roboto", "Roboto Fallback", Arial, sans-serif;

    --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.94rem);
    --step-0: clamp(1.03rem, 1rem + 0.2vw, 1.13rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
    --step-2: clamp(1.6rem, 1.3rem + 1.1vw, 2.35rem);
    --step-3: clamp(1.9rem, 0.9rem + 2vw, 3.1rem);

    --gutter: clamp(16px, 5.5vw, 70px);
    --wrap: 1400px;
    --gap: 14px;
    --radius: 12px;
    --radius-s: 8px;
    --head-h: 80px;
    --pop: clamp(28px, 3.5vw, 52px);
    --ease: cubic-bezier(.2, .7, .2, 1);
  }
  @media (max-width: 1100px) {
    :root { --head-h: 62px; }
  }
}

@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); background: var(--bg); }
  html.menu-open { overflow: hidden; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2 { font-weight: 700; line-height: 1.14; letter-spacing: -0.005em; text-wrap: balance; color: var(--text); }
  h2 { font-size: var(--step-2); }
  p { text-wrap: pretty; }
  a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
  ::selection { background: var(--accent); color: var(--on-accent); }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
  }
}

@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  .skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-s); }
  .skip:focus { top: 10px; }
}

@layer components {
  .title { font-size: clamp(1.7rem, 1.05rem + 2.3vw, 3.05rem); line-height: 1.07; text-transform: uppercase; letter-spacing: .004em; color: var(--heading); }

  /* przyciski */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 9px 20px;
    border-radius: var(--radius-s); border: 1px solid transparent;
    font-weight: 500; font-size: var(--step--1); line-height: 1.2; text-decoration: none; text-align: center;
    transition: background-color .18s var(--ease), border-color .18s var(--ease);
  }
  .btn--solid { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .12); }
  .btn--solid:hover { background: var(--accent-hover); }
  .btn--ghost { border-color: rgb(var(--text-rgb) / .55); color: var(--text); background: rgb(var(--deep-rgb) / .35); }
  .btn--ghost:hover { border-color: var(--text); background: rgb(var(--deep-rgb) / .6); }
  .btn--sm { min-height: 36px; padding: 6px 14px; border-radius: 6px; font-size: .875rem; }
  .actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .actions--center { justify-content: center; }
  .more {
    display: inline-block; margin-top: 16px; color: var(--accent-text);
    font-weight: 500; text-decoration: underline; text-decoration-color: rgb(var(--accent-rgb) / .5);
  }
  .more { padding-block: 9px; }
  .more:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
  main a[href]:not([class]):hover, .foot a[href]:hover { text-decoration-thickness: 2px; }

  /* nagłówek */
  .head {
    position: sticky; top: 0; z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--line-head);
  }
  .head__row { position: relative; display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); height: var(--head-h); background: url("/img/poziomice-head.svg") left center / max(100%, 1124px) 100% no-repeat; }
  .logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
  .logo { min-height: 44px; flex: none; }
  .logo:hover b { color: var(--accent-strong); }
  .logo b { color: var(--accent-soft); font-weight: 700; transition: color .18s var(--ease); }
  .logo__mark { width: 40px; height: 26px; flex: none; }
  .nav { margin-left: auto; margin-right: clamp(0px, 3vw, 34px); }
  .nav ul { display: flex; gap: clamp(14px, 1.5vw, 20px); }
  .nav a {
    position: relative; display: block; padding: 8px 0; text-decoration: none; white-space: nowrap;
    font-size: .875rem; letter-spacing: .008em; color: var(--text);
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
    background: var(--accent-text); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
  .nav__extra { display: none; }
  .head__cta {
    display: flex; align-items: center; gap: 14px; flex: none;
    padding: 5px 5px 5px 14px; border-radius: var(--radius-s);
    background: var(--chip-bg); border: 1px solid var(--chip-line);
  }
  .head__tel { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-size: .875rem; white-space: nowrap; min-height: 36px; }
  .head__tel[href]:hover { color: var(--accent-text); }
  .head__tel svg { width: 15px; height: 15px; opacity: .85; }
  .menu-btn { display: none; }

  @media (max-width: 1240px) {
    .head__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .head__tel { width: 26px; justify-content: center; }
    .head__cta { gap: 8px; padding-left: 6px; }
  }
  @media (max-width: 1100px) {
    .logo { font-size: 1.28rem; }
    .logo__mark { width: 34px; height: 22px; }
    .head__row { gap: 10px; }
    .head__cta { margin-left: auto; padding: 0; background: none; border: 0; }
    .head__tel { width: 44px; height: 44px; }
    .head__tel svg { width: 20px; height: 20px; }
    .head__cta .btn { display: none; }
    .menu-btn {
      display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; flex: none;
      background: none; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
    }
    .menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .18s var(--ease), opacity .18s; }
    .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav {
      position: fixed; inset: var(--head-h) 0 0 0; z-index: 39; margin: 0; justify-self: stretch;
      background: var(--bg); padding: 12px var(--gutter) 28px; overflow-y: auto; display: none;
    }
    .nav.is-open { display: block; }
    .nav ul { display: block; }
    .nav a { padding: 15px 0; font-size: 1.3rem; border-bottom: 1px solid var(--line-foot); white-space: normal; }
    .nav a::after { display: none; }
    .nav a[aria-current="page"] { color: var(--accent-text); }
    .nav__extra { display: block; }
  }

  /* hero strony głównej */
  .hero { position: relative; }
  .hero__top { position: relative; isolation: isolate; }
  .hero__bg { position: absolute; inset: 0 0 -116px 0; z-index: -1; overflow: hidden; }
  .hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
  .hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgb(var(--shade-2-rgb) / .74) 0, rgb(var(--shade-2-rgb) / .6) 58%, rgb(var(--bg-rgb) / .82) 84%, var(--bg) 100%);
  }
  .hero__copy { display: grid; justify-items: center; text-align: center; padding-block: clamp(26px, 1.4vw, 34px) 26px; }
  .hero__eyebrow { color: var(--accent-text); font-size: var(--step--1); letter-spacing: .05em; text-transform: uppercase; }
  .hero h1 {
    margin-top: 8px; max-width: 18em; font-size: var(--step-3); line-height: 1.12; text-transform: uppercase;
    letter-spacing: .004em; color: var(--heading); text-shadow: 0 2px 14px rgb(0 0 0 / .45);
  }
  .hero__lead { margin-top: 12px; max-width: 34em; font-size: var(--step-0); line-height: 1.45; text-shadow: 0 1px 8px rgb(0 0 0 / .6); }
  .hero .actions { margin-top: 18px; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 3px 12px 3px 9px;
    border: 1px solid rgb(var(--text-rgb) / .45); border-radius: 999px; background: rgb(var(--deep-rgb) / .55);
    font-size: .8125rem; line-height: 1.4;
  }
  .chip svg { width: 13px; height: 13px; }

  /* kafle */
  .bento {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 2.06fr 1fr 1fr; grid-template-rows: 132fr 151fr; gap: var(--gap);
    aspect-ratio: 1124 / 298; min-height: 300px;
  }
  .tile {
    position: relative; display: block; min-width: 0; color: var(--on-photo); text-decoration: none; border-radius: var(--radius);
  }
  .tile--big { grid-row: 1 / span 2; }
  @media (min-width: 981px) {
    .bento .tile--big:last-child { grid-column: 1 / -1; }
    .bento .tile:nth-child(2):last-child { grid-column: span 2; grid-row: span 2; }
    .bento:has(.tile:nth-child(3):last-child) .tile { grid-row: span 2; }
    .bento .tile:nth-child(4):last-child { grid-column: span 2; }
  }
  .tile__clip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius); background: var(--tile-bg); }
  .tile__clip::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(to top, rgb(var(--shade-rgb) / .78) 0, rgb(var(--shade-rgb) / .3) 42%, rgb(var(--shade-rgb) / 0) 72%);
    box-shadow: inset 0 0 0 1px rgb(var(--text-rgb) / .06); transition: box-shadow .2s var(--ease);
  }
  .tile:hover .tile__clip::after { box-shadow: inset 0 0 0 2px var(--accent-line); }
  .tile__img, .tile__clip picture { width: 100%; height: 100%; }
  .tile__img { object-fit: cover; transition: transform .35s var(--ease); }
  .tile:hover .tile__img { transform: scale(1.035); }
  .tile__tower {
    position: absolute; bottom: 0; left: 27%; width: auto; max-width: none;
    height: calc(100% + var(--pop)); aspect-ratio: var(--ratio, 522 / 1178); object-fit: contain; object-position: bottom;
    filter: drop-shadow(0 6px 14px rgb(0 0 0 / .4)); pointer-events: none;
  }
  .tile__body {
    position: absolute; inset: auto 0 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; align-items: end;
    padding: clamp(12px, 1.3vw, 18px);
  }
  .tile__label {
    grid-column: 1; font-size: clamp(1.1rem, .72rem + .95vw, 1.72rem); font-weight: 700; line-height: 1.12; text-shadow: 0 1px 8px rgb(0 0 0 / .6);
    text-wrap: balance;
  }
  .tile__note { grid-column: 1; font-size: .9375rem; line-height: 1.35; text-shadow: 0 1px 6px rgb(0 0 0 / .7); text-wrap: pretty; }
  .tile__tag { grid-column: 2; grid-row: 1 / span 2; align-self: end; white-space: nowrap; font-weight: 500; font-size: 1rem; font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgb(0 0 0 / .7); }
  .tile__tag span { color: var(--accent-strong); font-weight: 400; }
  .tile--big .tile__label { font-size: clamp(1.4rem, .8rem + 1.5vw, 2.25rem); }
  .tile__clip, .tile__tower { transition: none; }
  .tile:focus-visible { outline-offset: 4px; }

  /* pasek faktów */
  .hero__facts { padding-block: clamp(22px, 2.6vw, 32px) 0; position: relative; z-index: 1; }
  .facts {
    display: grid; grid-template-columns: repeat(5, 1fr);
    border: 1px solid var(--accent-line); border-radius: var(--radius-s); background: var(--bg-deep);
    padding-block: 8px;
  }
  .facts--4 { grid-template-columns: repeat(4, 1fr); }
  .facts--3 { grid-template-columns: repeat(3, 1fr); }
  .facts--2 { grid-template-columns: repeat(2, 1fr); }
  .facts--1 { grid-template-columns: minmax(0, 1fr); }
  .facts__item { display: flex; flex-direction: column-reverse; justify-content: center; text-align: center; padding: 4px 12px; }
  .facts__item + .facts__item { border-left: 1px solid var(--line); }
  .facts dd { font-size: var(--step-1); font-weight: 500; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .facts dd span { color: var(--accent-text); font-weight: 400; }
  .facts dt { font-size: .8125rem; color: var(--muted); line-height: 1.35; margin-top: 3px; }
  @media (max-width: 1040px) {
    .facts { grid-template-columns: repeat(6, 1fr); row-gap: 8px; }
    .facts__item { grid-column: span 2; }
    .facts__item:nth-child(4) { grid-column: 1 / span 3; border-left: 0; }
    .facts__item:nth-child(5) { grid-column: span 3; }
    .facts--4 { grid-template-columns: repeat(4, 1fr); }
    .facts--4 .facts__item, .facts--4 .facts__item:nth-child(4) { grid-column: span 1; border-left: 1px solid var(--line); }
    .facts--4 .facts__item:first-child { border-left: 0; }
    .facts--2 .facts__item { grid-column: span 3; }
    .facts--1 .facts__item { grid-column: 1 / -1; }
  }
  @media (max-width: 620px) {
    .facts, .facts--4 { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
    .facts__item, .facts--4 .facts__item, .facts__item:nth-child(4), .facts--4 .facts__item:nth-child(4) { grid-column: span 1; border-left: 0; }
    .facts__item:nth-child(even), .facts--4 .facts__item:nth-child(even) { border-left: 1px solid var(--line); }
    .facts--2 .facts__item { grid-column: span 1; }
    .facts .facts__item:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
    .facts dd { font-size: 1.14rem; }
  }

  @media (max-width: 980px) {
    .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; margin-top: calc(var(--pop) + 8px); }
    .bento .tile { aspect-ratio: 4 / 3; }
    .bento .tile--big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
    .bento .tile:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
    .tile__tower { left: 33%; }
    .hero__bg { bottom: -150px; }
  }
  @media (max-width: 560px) {
    .bento .tile--big { aspect-ratio: 4 / 3.5; }
    .bento .tile { aspect-ratio: 1 / 1; }
    .tile__tower { left: 36%; }
    .hero__copy { padding-block: 20px 12px; }
    .hero h1 { font-size: clamp(1.5rem, 1.1rem + 2.1vw, 1.75rem); letter-spacing: 0; }
    .hero__eyebrow { font-size: .78rem; letter-spacing: .03em; }
    .hero__lead { margin-top: 8px; font-size: 1rem; }
    .hero .actions { margin-top: 12px; gap: 8px; flex-wrap: nowrap; }
    .hero .btn { flex: 1 1 auto; padding-inline: 10px; font-size: .875rem; }
    .chip { margin-top: 10px; font-size: .75rem; }
  }

  /* otwarcie podstron: zdjęcie szerokie idzie na całą szerokość, małe staje w ramie */
  .ch { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(460px, 40vw, 720px); overflow: hidden; }
  .ch__bg { position: absolute; inset: 0; z-index: -1; }
  .ch__bg picture, .ch__img { width: 100%; height: 100%; }
  .ch__img { object-fit: cover; object-position: 70% 62%; }
  .ch__bg::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(to bottom, rgb(var(--bg-rgb) / 0) 64%, var(--bg) 100%),
      linear-gradient(to right, rgb(var(--shade-rgb) / .96) 0, rgb(var(--shade-rgb) / .88) 36%, rgb(var(--shade-rgb) / .16) 62%, rgb(var(--shade-rgb) / 0) 100%);
  }
  .ch--framed .ch__img { opacity: .55; }
  .ch__row { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: clamp(36px, 4vw, 56px) clamp(60px, 6.6vw, 92px); }
  .ch__copy { max-width: 37rem; }
  .ch h1 { font-size: clamp(2.05rem, .9rem + 3.3vw, 3.75rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .002em; color: var(--heading); text-shadow: 0 2px 14px rgb(0 0 0 / .4); }
  .ch .lead { margin-top: 14px; max-width: 34em; font-size: var(--step-0); line-height: 1.5; text-shadow: 0 1px 8px rgb(0 0 0 / .55); }
  .ch .actions { margin-top: 22px; }
  .ch .actions:empty { display: none; }
  .ch--framed .ch__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
  .ch__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); filter: var(--photo-filter); }
  .ch--portrait .ch__frame { justify-self: end; width: min(100%, 340px); }
  .ch--portrait .ch__frame img { aspect-ratio: 2 / 3; }
  .ch__cut { position: absolute; bottom: 0; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + 90px)); height: 94%; aspect-ratio: var(--ratio, 1 / 2); }
  .ch__cut picture, .ch__cut img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
  .ch__cut img { filter: drop-shadow(-14px 8px 26px rgb(0 0 0 / .5)); }
  .overlap { position: relative; z-index: 2; margin-top: -42px; }
  .lead { line-height: 1.55; }
  @media (max-width: 900px) {
    .ch { display: block; min-height: 0; }
    .ch__bg { position: relative; aspect-ratio: 16 / 9; }
    .ch__bg::after { background: linear-gradient(to bottom, rgb(var(--bg-rgb) / 0) 60%, var(--bg) 100%); }
    .ch__row { padding-block: 8px 34px; }
    .ch--framed .ch__bg { display: none; }
    .ch--framed .ch__row { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
    .ch--framed .ch__frame { order: -1; }
    .ch--portrait .ch__frame { justify-self: start; width: min(100%, 300px); }
    .ch__cut { bottom: auto; top: 10px; right: 8%; height: calc(56.25vw - 10px); }
    .overlap { margin-top: 0; }
  }
  @media (max-width: 560px) { .ch__bg { aspect-ratio: 3 / 2; } .ch__cut { height: calc(66.6vw - 10px); } }

  /* mozaika: rozkład z buildu, zawsze pełne rzędy */
  .offer { padding-block: clamp(52px, 7vw, 100px) clamp(20px, 3vw, 40px); }
  .offer--first { padding-top: clamp(30px, 4vw, 56px); }
  .mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 24vw, 340px); gap: var(--gap); margin-top: clamp(18px, 2.4vw, 30px); }
  .mosaic--small { grid-auto-rows: clamp(190px, 17vw, 250px); }
  .mosaic .tile { grid-column: span var(--lg, 4); }
  .mosaic .tile__tower { left: auto; right: 9%; height: 94%; }
  .mosaic .tile:has(.tile__tower) .tile__body { border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(to top, rgb(var(--shade-rgb) / .95) 0, rgb(var(--shade-rgb) / .78) 62%, rgb(var(--shade-rgb) / 0) 100%); padding-top: 44px; }
  @media (max-width: 980px) {
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(210px, 36vw, 320px); }
    .mosaic .tile { grid-column: span calc(var(--md, 6) / 6); }
  }
  @media (max-width: 560px) {
    .mosaic { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
    .mosaic .tile { grid-column: auto; aspect-ratio: 16 / 11; }
  }

  /* tryptyk odbiorców */
  .audiences { padding-top: clamp(52px, 7vw, 100px); }
  /* Panele mają stałą szerokość: tekst nie przelewa się przy najechaniu. Najechanie przybliża zdjęcie,
     przyciemnia dół i przesuwa strzałkę przy „Zobacz atrakcje”. */
  .panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); height: clamp(420px, 38vw, 580px); margin-top: clamp(18px, 2.4vw, 30px); }
  .panel { position: relative; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--tile-bg); }
  .panel a { position: absolute; inset: 0; display: block; color: var(--on-photo); text-decoration: none; }
  .panel picture, .panel__img { width: 100%; height: 100%; }
  .panel__img { object-fit: cover; transition: transform .6s var(--ease); }
  .panel:hover .panel__img, .panel a:focus-visible .panel__img { transform: scale(1.05); }
  .panel a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: opacity .45s var(--ease);
    background: linear-gradient(to top, rgb(var(--shade-rgb) / .95) 0, rgb(var(--shade-rgb) / .78) 30%, rgb(var(--shade-rgb) / .2) 58%, rgb(var(--shade-rgb) / 0) 72%); }
  .panel a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; opacity: 0; transition: opacity .45s var(--ease); background: linear-gradient(to top, rgb(var(--shade-rgb) / .45), rgb(var(--shade-rgb) / 0) 70%); }
  .panel:hover a::before, .panel a:focus-visible::before { opacity: 1; }
  .panel__body { position: absolute; z-index: 2; left: clamp(18px, 2.2vw, 30px); right: clamp(18px, 2.2vw, 30px); bottom: clamp(18px, 2.2vw, 30px); display: grid; gap: 10px; }
  .panel__title { font-size: clamp(1.5rem, .95rem + 1.45vw, 2.3rem); font-weight: 700; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
  .panel__text { max-width: 30ch; font-size: clamp(1.02rem, .92rem + .3vw, 1.18rem); line-height: 1.45; text-wrap: pretty; }
  .panel__list { max-width: 36ch; padding-top: 10px; border-top: 1px solid rgb(var(--text-rgb) / .22); font-size: clamp(.94rem, .88rem + .2vw, 1.03rem); line-height: 1.45; color: var(--muted); text-wrap: pretty; }
  .panel__list b { color: var(--accent-strong); font-weight: 500; }
  .panel__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 2px; font-size: .95rem; font-weight: 500; color: var(--accent-strong); }
  .panel__more svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
  .panel:hover .panel__more svg, .panel a:focus-visible .panel__more svg { transform: translateX(6px); }
  @media (max-width: 860px) {
    .panels { grid-template-columns: minmax(0, 1fr); height: auto; }
    .panel { aspect-ratio: 16 / 9; }
  }
  @media (max-width: 560px) { .panel { aspect-ratio: 4 / 3.4; } }

  /* reflektor na wyróżnioną usługę */
  .spot { clip-path: inset(-260px 0 0 0); position: relative; isolation: isolate; margin-top: clamp(84px, 10vw, 150px); background: var(--bg-deep); --th: clamp(460px, 46vw, 680px); }
  .spot__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background-size: auto; background-repeat: no-repeat; background-position: 70% 0; }
  .spot__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(var(--bg-deep-rgb) / 0) 420px, var(--bg-deep) 716px), linear-gradient(to right, rgb(var(--shade-rgb) / .94) 0, rgb(var(--shade-rgb) / .72) 46%, rgb(var(--shade-rgb) / .86) 100%); }
  .spot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
  .spot__copy { padding-block: clamp(44px, 6vw, 84px); }
  .spot__copy p { margin-block: 14px 20px; max-width: 46ch; }
  .spot__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: clamp(22px, 3vw, 36px); max-width: 520px; }
  .spot__photos--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot__photos--1 { grid-template-columns: minmax(0, 1fr); max-width: 260px; }
  .spot__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-s); filter: var(--photo-filter); }
  .spot__stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(30px, 5vw, 76px); align-items: center; }
  .spot--cut .spot__stage { margin-top: calc(var(--th) * -.13); }
  .spot:not(.spot--cut) .spot__stage { grid-template-columns: minmax(0, 1fr) minmax(190px, 230px); }
  .spot__tower { position: relative; height: var(--th); aspect-ratio: var(--ratio, 1 / 2); margin-left: 66px; align-self: end; }
  .spot__tower picture, .spot__tower img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
  .spot__tower img { filter: drop-shadow(-12px 6px 24px rgb(0 0 0 / .55)); }
  .spot__dim { position: absolute; left: -38px; top: 2px; bottom: 0; width: 1px; background: var(--accent-line); transform-origin: bottom; }
  .spot__dim::before, .spot__dim::after { content: ""; position: absolute; left: -7px; width: 15px; height: 1px; background: var(--accent-line); }
  .spot__dim::before { top: 0; }
  .spot__dim::after { bottom: 0; }
  .spot__dim > span { position: absolute; top: 46%; left: 0; transform: translate(-50%, -50%); padding: 5px 2px; background: var(--bg-deep); font-weight: 500; font-size: var(--step-0); white-space: nowrap; }
  .spot__dim > span > span { color: var(--accent-text); }
  .spot__frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-block: clamp(36px, 5vw, 72px); }
  .spot__notes { display: grid; gap: clamp(14px, 2vw, 26px); }
  .spot__notes > div { position: relative; display: flex; flex-direction: column-reverse; padding-left: 14px; border-left: 1px solid var(--accent-line); }
  .spot--cut .spot__notes > div::before { content: ""; position: absolute; left: clamp(-76px, -5vw, -30px); top: .85em; width: clamp(30px, 5vw, 76px); height: 1px; background: var(--accent-line); opacity: .7; }
  .spot__notes dd { font-size: var(--step-1); font-weight: 500; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .spot__notes dd span { color: var(--accent-text); font-weight: 400; }
  .spot__notes dt { font-size: .9375rem; color: var(--muted); line-height: 1.35; }
  .spot.is-in .spot__dim { animation: draw-y .9s var(--ease) both; }
  .spot.is-in .spot__notes > div { animation: note-in .5s var(--ease) both; }
  .spot.is-in .spot__notes > div:nth-child(2) { animation-delay: .12s; }
  .spot.is-in .spot__notes > div:nth-child(3) { animation-delay: .24s; }
  .spot.is-in .spot__notes > div:nth-child(4) { animation-delay: .36s; }
  @keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  @keyframes note-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .spot.is-in .spot__dim, .spot.is-in .spot__notes > div { animation: none; } }
  @media (max-width: 1100px) {
    .spot { --th: clamp(400px, 56vw, 560px); }
    .spot__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .spot__copy { padding-bottom: clamp(24px, 4vw, 36px); order: -1; }
    .spot--cut .spot__stage { margin-top: 0; }
    .spot__stage { justify-content: start; }
    .spot__photos { max-width: none; }
  }
  @media (max-width: 560px) {
    .spot { --th: 90vw; }
    .spot__stage { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
    .spot__tower { margin-left: 38px; }
    .spot__dim { left: -20px; }
    .spot__dim > span { font-size: .8125rem; padding-block: 4px; }
    .spot--cut .spot__notes > div::before { display: none; }
    .spot__notes > div { padding-left: 9px; }
    .spot__notes dd { font-size: .9375rem; white-space: normal; }
    .spot__notes dt { font-size: .8125rem; line-height: 1.3; }
  }

  /* zasięg: mapa Polski z danych cennika */
  .reach { padding-block: clamp(56px, 7vw, 104px); background: url("/img/poziomice.svg") center top / 1700px auto no-repeat; }
  .reach__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
  .reach__copy > p:not(.reach__rate) { margin-top: 14px; max-width: 54ch; }
  .reach__rate { margin-top: 18px; font-size: var(--step-1); font-weight: 500; }
  .reach__rate span { color: var(--accent-text); font-weight: 400; }
  .reach__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 34px); margin-top: 16px; }
  .reach__lists li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: .9375rem; line-height: 1.4; }
  .reach__lists b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .pl { width: 100%; height: auto; overflow: visible; }
  .pl__land { fill: rgb(var(--text-rgb) / .05); stroke: rgb(var(--text-rgb) / .38); stroke-width: 1.2; stroke-linejoin: round; }
  .pl__line { fill: none; stroke: var(--accent-line); stroke-width: 1; opacity: .6; }
  .pl__dot { fill: var(--accent-strong); }
  .pl__base { fill: var(--on-accent); }
  .pl__base-ring { fill: rgb(var(--accent-rgb) / .35); stroke: var(--accent-strong); stroke-width: 1; }
  .pl__label { font-family: var(--font); font-size: 13px; fill: var(--text); paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
  @media (max-width: 900px) { .reach__grid { grid-template-columns: minmax(0, 1fr); } .pl { order: -1; } }

  /* zapytanie */
  .ask { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(300px, 30vw, 440px); margin-top: clamp(30px, 4vw, 60px); overflow: hidden; }
  .ask__bg { position: absolute; inset: 0; z-index: -1; }
  .ask__bg picture, .ask__bg img { width: 100%; height: 100%; }
  .ask__bg img { object-fit: cover; }
  .ask__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgb(var(--shade-rgb) / .93) 0, rgb(var(--shade-rgb) / .62) 58%, rgb(var(--shade-rgb) / .34) 100%); }
  .ask__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 48px; padding-block: 36px; }
  .ask__row p { margin-top: 8px; max-width: 40ch; }
  .ask__contact { display: grid; gap: 2px; }
  .ask__phone { font-size: clamp(2.2rem, 1.1rem + 3.8vw, 4.2rem); font-weight: 700; line-height: 1.05; color: var(--heading); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ask__phone[href]:hover { color: var(--accent-strong); }
  .ask__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-strong); }
  .ask__mail:hover { color: var(--on-accent); }

  /* podstrona usługi: treść i przyklejona karta */
  .sv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(32px, 5vw, 76px); align-items: start; padding-block: clamp(36px, 5vw, 70px); }
  .sv__main { min-width: 0; display: grid; gap: clamp(38px, 4.8vw, 64px); }
  .sv__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); filter: var(--photo-filter); }
  .story h2 { font-size: var(--step-2); }
  .story p { margin-top: 12px; max-width: 66ch; }
  .story__media { margin-top: 18px; }
  .story__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); filter: var(--photo-filter); }
  .story--side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: clamp(22px, 3vw, 40px); align-items: start; }
  .story--side .story__media { margin-top: 0; }
  .story--side .story__media img { aspect-ratio: 2 / 3; }
  .masonry { columns: 3 210px; column-gap: var(--gap); margin-top: 18px; }
  .masonry figure { break-inside: avoid; margin-bottom: var(--gap); }
  .masonry img, .story__media.masonry img { width: 100%; height: auto; aspect-ratio: auto; border-radius: var(--radius); filter: var(--photo-filter); }
  figcaption { margin-top: 7px; font-size: var(--step--1); color: var(--muted); }

  .spec { margin-top: 16px; border-top: 1px solid var(--line); }
  .spec > div { display: grid; grid-template-columns: minmax(6.5rem, 11rem) minmax(0, 1fr); gap: 4px 18px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .spec dt { color: var(--muted); font-size: var(--step--1); padding-top: 2px; }
  .spec dd { font-size: var(--step--1); line-height: 1.45; overflow-wrap: anywhere; }

  .compare { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
  .compare table { width: 100%; font-size: var(--step--1); }
  .compare th, .compare td { padding: 12px 16px; text-align: left; vertical-align: top; font-weight: 400; border-bottom: 1px solid var(--line-soft); }
  .compare tbody tr:last-child > * { border-bottom: 0; }
  .compare thead th, .compare thead td { background: var(--bg-deep); font-weight: 500; }
  .compare tbody th { color: var(--muted); width: 24%; }
  .compare .is-ours { background: rgb(var(--accent-rgb) / .1); }
  .compare thead th:nth-child(2) { color: var(--accent-text); }
  .compare__tag { display: none; }

  .card { position: sticky; top: calc(var(--head-h) + 18px); display: grid; gap: 12px; padding: clamp(18px, 2vw, 24px); border: 1px solid var(--accent-line); border-radius: var(--radius-s); background: var(--bg-deep); }
  .card h2 { font-size: var(--step-1); }
  .card__prices { display: grid; }
  .card__prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
  .card__prices span { font-size: var(--step--1); line-height: 1.35; }
  .card__prices small { display: block; color: var(--muted); font-size: .8125rem; }
  .card__prices b { font-size: var(--step-1); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .card__big { font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; }
  .card__big span { color: var(--accent-text); font-weight: 400; }
  .card__quote { font-size: var(--step-1); font-weight: 500; }
  .card__note { font-size: var(--step--1); color: var(--muted); }
  .card__meta { display: grid; gap: 8px; font-size: var(--step--1); }
  .card__meta dt { color: var(--muted); font-size: .8125rem; }
  .card__meta a { display: inline-flex; align-items: center; min-height: 38px; color: var(--accent-text); }
  .card .btn { width: 100%; }
  .related { padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 100px); }
  @media (max-width: 980px) {
    .sv { grid-template-columns: minmax(0, 1fr); }
    .card { position: static; order: -1; }
  }
  @media (max-width: 760px) {
    .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
    .compare tbody tr { padding: 14px; border-bottom: 1px solid var(--line-soft); }
    .compare tbody tr:last-child { border-bottom: 0; }
    .compare th, .compare td { padding: 0; border: 0; }
    .compare tbody th { width: auto; font-weight: 500; color: var(--text); font-size: var(--step-0); margin-bottom: 6px; }
    .compare .is-ours { background: none; margin-bottom: 8px; }
    .compare__tag { display: block; color: var(--accent-text); font-size: .8125rem; }
  }
  @media (max-width: 640px) {
    .story--side { grid-template-columns: minmax(0, 1fr); }
    .story--side .story__media { width: min(100%, 300px); }
  }

  /* cennik */
  .plist { padding-block: clamp(30px, 4vw, 60px); }
  .plist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 18px; }
  .plist__grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pitem { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; height: 100%; padding: 8px 16px 8px 8px; text-decoration: none; border: 1px solid var(--line-card); border-radius: var(--radius); background: var(--bg-deep); transition: border-color .18s var(--ease); }
  .pitem:hover { border-color: var(--accent-line); }
  .pitem__img { display: block; border-radius: var(--radius-s); overflow: hidden; }
  .pitem__img img { width: 84px; height: 72px; object-fit: cover; }
  .pitem__name { font-weight: 500; font-size: var(--step--1); line-height: 1.35; }
  .pitem__name small { display: block; font-weight: 400; color: var(--muted); font-size: .8125rem; }
  .pitem__value { font-size: var(--step-1); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .plist__note { margin-top: 14px; color: var(--accent-text); font-weight: 500; }
  .plist__lead { margin-top: 10px; max-width: 60ch; }
  .plist__names { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 12px; }
  .plist__names a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); }
  .chart { padding-block: clamp(30px, 4vw, 60px); }
  .chart__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
  .chart__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); filter: var(--photo-filter); }
  .bars { margin-top: 18px; display: grid; gap: 8px; }
  .bars li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 4.9rem; gap: 12px; align-items: center; font-size: var(--step--1); }
  .bars__track { display: block; height: 16px; border-radius: 3px; background: var(--track); overflow: hidden; }
  .bars__fill { display: block; height: 100%; width: calc(var(--v) * 100%); background: linear-gradient(to right, var(--accent-dark), var(--accent-line)); border-radius: 3px 0 0 3px; }
  .bars__value { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
  @media (max-width: 900px) { .plist__grid, .chart__grid { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 480px) {
    .pitem { grid-template-columns: 64px minmax(0, 1fr); padding-right: 12px; }
    .pitem__img img { width: 64px; height: 64px; }
    .pitem__value { grid-column: 2; }
  }

  /* kontakt */
  .kmap { position: relative; isolation: isolate; min-height: clamp(560px, 50vw, 760px); display: flex; flex-direction: column; justify-content: center; }
  .kmap__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
  .kmap__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
  .kmap__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgb(var(--shade-rgb) / .86) 0, rgb(var(--shade-rgb) / .3) 54%, rgb(var(--shade-rgb) / .08) 100%); }
  .kmap__pin { position: absolute; z-index: 1; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--on-accent); box-shadow: 0 0 0 7px rgb(var(--accent-rgb) / .35); }
  .kmap__row { padding-block: clamp(30px, 4vw, 56px) 12px; }
  .kcard { width: min(100%, 460px); padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--accent-line); border-radius: var(--radius-s); background: var(--bg-deep); }
  .kcard h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem); text-transform: uppercase; line-height: 1.06; color: var(--heading); }
  .kcard .lead { margin-top: 10px; font-size: 1rem; }
  .kcard__phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); font-weight: 700; line-height: 1.1; color: var(--heading); text-decoration: none; font-variant-numeric: tabular-nums; }
  .kcard__phone[href]:hover { color: var(--accent-strong); }
  .kcard__extra { margin-top: 6px; color: var(--muted); }
  @media (max-width: 480px) { .kcard .spec > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
  @media (max-width: 359px) { .spec > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
  .kmap__credit { padding-bottom: 8px; font-size: .8125rem; color: var(--muted); }
  .kmap__credit a { display: inline-flex; align-items: center; min-height: 44px; }
  .kaddr { padding-block: clamp(34px, 5vw, 64px); }
  .kaddr__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
  .kaddr p { margin-top: 8px; }
  @media (max-width: 760px) {
    .kmap { display: block; min-height: 0; }
    .kmap__bg { position: relative; height: 62vw; }
    .kmap__bg::after { background: none; }
    .kmap__row { padding-top: 0; }
    .kcard { margin-top: -28px; position: relative; }
  }

  /* stopka */
  .foot { margin-top: 0; background: var(--bg-deep); border-top: 1px solid var(--line-foot); padding-block: clamp(30px, 4vw, 48px) 18px; font-size: var(--step--1); }
  .foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px clamp(24px, 4vw, 60px); }
  .foot__name { font-weight: 700; font-size: var(--step-0); margin-bottom: 6px; }
  .foot__label { color: var(--muted); font-size: .8125rem; margin-bottom: 2px; }
  .foot p + .foot__label { margin-top: 12px; }
  .foot__big { font-size: var(--step-1); font-weight: 700; text-decoration: none; }
  .foot a { display: inline-block; min-height: 36px; padding-block: 5px; }
  .foot a[href]:hover { color: var(--accent-text); }
  .foot__copy { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line-foot); color: var(--muted); font-size: .8125rem; }
  @media (max-width: 700px) { .foot__grid { grid-template-columns: minmax(0, 1fr); } }
}

@layer utilities {
  .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Odporność na treści z panelu ----------
   Treści zmienia klient w panelu, więc układ musi wytrzymać każdy tekst w granicach limitów: bardzo długie słowa
   i wklejone linki zawijają się zamiast wychodzić poza ekran (tests/stress.mjs active8). break-word nie zmienia
   szerokości minimalnej kolumn, więc tabela i przyciski zachowują układ z projektu. */
@layer utilities {
  h1, h2, h3, p, li, dt, dd, td, th, figcaption, .lead, .btn, .chip, .tile__label, .tile__note, .tile__tag, .panel__title, .panel__text, .panel__list,
  .pitem__name, .bars__label, .facts__item, .spot__notes, .kcard, .foot__name, .reach__lists span { overflow-wrap: break-word; }
  .story__prose ul, .story__prose ol { margin-top: 12px; padding-left: 1.25em; max-width: 66ch; }
  .story__prose ul { list-style: disc; }
  .story__prose ol { list-style: decimal; }
  .story__prose li + li { margin-top: 6px; }
  .story__prose h2, .story__prose h3, .story__prose h4 { margin-top: 22px; font-size: var(--step-1); }
  .story__prose a { color: var(--accent-text); }
  .story__prose strong { color: var(--heading); }
  /* Kolumna opisu ma stałą szerokość: długie słowo łamie się w niej, zamiast ją rozpychać. */
  .sv__main, .story__text, .reach__copy, .spot__copy, .ch__copy, .kcard { min-width: 0; }
  .sv__main { grid-template-columns: minmax(0, 1fr); }
  /* Fakt dłuższy niż obecne (ponad 15 znaków) na telefonie przechodzi do drugiej linii zamiast wypychać stronę w bok. */
  @media (max-width: 560px) { .facts dd.is-long { white-space: normal; } }
}

/*
 * Contact kit, part 1 of 2 (with contact-links.js). Copy both into the site.
 *
 * Phone numbers and e-mails stay drag-selectable with the left mouse button.
 * On a PC a phone number is text to read and copy: calling matters on a phone,
 * not on a PC (the studio owner, 08.11: „zadzwoń to jest na telefonie ważne
 * a nie na pc”). The script removes the tel: href on a PC and keeps it in
 * data-tel; on a touch screen the number dials when tapped.
 *
 * Markup rules:
 * - Write every number as a tel: link: <a href="tel:+48603214402">603 214 402</a>.
 * - A „Zadzwoń” button gets class="contact-call". It is hidden on a PC, so use
 *   it only where calling is the main action on a phone (the contact block,
 *   the mobile header, the end of a service page), never beside every number.
 * - Never put a plain label right before an e-mail link on the same line
 *   („E-mail: <a>”): put the label in its own layout element or inside the link.
 * - Style hover effects on a[href] only, so a number on a PC never looks clickable.
 */
a[href^="tel:"],
a[href^="mailto:"],
a[data-tel] {
  -webkit-user-drag: none;
  -webkit-user-select: text;
  user-select: text;
}

@media (hover: hover) and (pointer: fine) {
  a[data-tel] {
    cursor: text;
    text-decoration: none;
  }

  .contact-call {
    display: none !important;
  }
}

/* Karta ceny: numer widoczny zawsze (na komputerze to tekst), przycisk „Zadzwoń” tylko na telefonie. */
.card__phone { display: grid; gap: 2px; }
.card__phone span { color: var(--muted); font-size: .8125rem; }
.card__phone a { font-size: var(--step-1); font-weight: 700; color: var(--heading); text-decoration: none; font-variant-numeric: tabular-nums; }
.card__phone a[href]:hover { color: var(--accent-strong); }

/* ---------- Otwarcie w pierwszym ekranie niskich okien ---------- */
/* Cała jednostka otwarcia (nagłówek, przyciski, kafle, fakty) mieści się w pierwszym ekranie także przy
   Full HD ze skalowaniem 125% (1536x730) i 1440x789. Kafle biorą wysokość, która zostaje po tekście,
   ale nie mniej niż 236 px; typografia i odstępy idą za wysokością okna, nie tylko za szerokością. */
@layer utilities {
  @media (min-width: 981px) and (max-height: 960px) {
    .hero__copy { padding-block: clamp(10px, 2.2svh, 34px) clamp(10px, 1.9svh, 26px); }
    .hero h1 { margin-top: 4px; font-size: min(var(--step-3), 5.3svh); line-height: 1.1; }
    .hero__lead { margin-top: 6px; max-width: 54em; }
    .hero .actions { margin-top: clamp(10px, 1.8svh, 18px); }
    .chip { margin-top: clamp(8px, 1.4svh, 16px); }
    .bento { min-height: 236px; max-height: calc(100svh - var(--head-h) - var(--opening-rest, 380px)); }
    .hero__facts { padding-top: clamp(10px, 1.6svh, 32px); }
    .hero__facts .facts { padding-block: 4px; }
    .hero__facts .facts__item { padding-block: 2px; }
  }
}

/* Kafelki z opisem (strony odbiorców): na wąskich komputerach dwie kolumny, bo w ćwiartce ekranu opis się nie mieści.
   W każdym kafelku węższym niż 300 px cena schodzi pod tekst zamiast ściskać nazwę. */
@layer utilities {
  @media (min-width: 981px) and (max-width: 1199px) {
    .mosaic--notes { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 27vw, 320px); }
    .mosaic--notes .tile { grid-column: span calc(var(--md, 6) / 6); }
  }
  .tile { container-type: inline-size; }
  @container (max-width: 300px) {
    .tile__body { grid-template-columns: minmax(0, 1fr); }
    .tile__tag { grid-column: 1; grid-row: auto; justify-self: start; }
  }
}
