/* COMPONENTS – building blocks of the Techouse design system (spec section 4).
   Naming: BEM-like. Page files compose these; page-specific CSS goes to pages/<page_id>.css. */

/* ===== Layout helpers =================================================================
   v2 rhythm: sections breathe (--section-gap), cards sit --block-gap apart. */
.section { padding-top: var(--section-gap); }
.section--tight { padding-top: var(--block-gap); }
.grid { display: grid; gap: var(--block-gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1199px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .grid--3, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid--5, .grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__media { height: 200px; }
  .card__media--sm { height: 120px; }
  .grid--5 .card__body { padding: 14px; }
}
.split { display: flex; flex-wrap: wrap; gap: var(--block-gap); }
.split > * { flex: 1 1 420px; min-width: 0; }

/* ===== Typography helpers ============================================================= */
/* kicker above headings: teal text after a short gradient rule */
.label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section-head .label, .label--kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-700); }
.section-head .label::before, .label--kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad-btn); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2 { font-size: clamp(30px, 3.9vw, 50px); line-height: 1.06; letter-spacing: -.035em; }
.h3 { font-size: 19px; line-height: 1.3; }
/* no orphaned last words in headings (progressive enhancement) */
h1, h2, h3, .h2, .h3 { text-wrap: balance; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head .label { margin-bottom: 14px; }
.section-head__text { max-width: 780px; }
.section-head__lead { margin-top: 14px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--muted); }

/* ===== Buttons ======================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  border-radius: var(--radius-md); font: 600 15px/1.3 var(--font); text-decoration: none; text-align: center; cursor: pointer;
  transition: filter .2s, background .2s, box-shadow .25s var(--ease-out), color .2s, transform .25s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad-btn); color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 10px 24px -12px rgba(2, 108, 182, .75); }
.btn--primary:hover { filter: brightness(1.08); color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 16px 32px -12px rgba(2, 108, 182, .8); transform: translateY(-1px); }
.btn--ghost { background: var(--white); color: var(--slate-900); box-shadow: var(--ring), 0 1px 2px rgba(15, 23, 42, .05); }
.btn--ghost:hover { color: var(--slate-900); box-shadow: inset 0 0 0 1px rgba(13, 176, 181, .55), 0 10px 24px -14px rgba(2, 108, 182, .45); }
.btn--light { background: var(--white); color: var(--navy-900); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.btn--light:hover { background: var(--white); color: var(--navy-900); transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .6); }
.btn--outline-light { background: rgba(255, 255, 255, .06); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .14); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding: 12px 24px; border-radius: 14px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { font-weight: 700; font-size: 15px; color: var(--brand-700); text-decoration: underline; text-decoration-color: rgba(2, 108, 182, .3); text-underline-offset: 4px; }
/* decorative arrow; "/ ''" = empty alternative text, so screen readers do not read it */
.text-link::after { content: "→"; content: "→" / ""; display: inline-block; margin-left: 6px; transition: transform .25s var(--ease-out); }
.text-link:hover { color: var(--brand-600); }
.text-link:hover::after { transform: translateX(4px); }
/* 44px tap area without changing the layout (inline: padding does not move lines; block/inline-block: margin cancels it) */
.text-link:where(a) { padding-block: 13px; margin-block: -13px; }
.text-link--light { color: var(--teal-300); }
.text-link--light:hover { color: var(--white); }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* ===== Chips ========================================================================== */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.chip--teal { background: rgba(13, 176, 181, .12); color: var(--teal-700); }
.chip--blue { background: rgba(2, 108, 182, .1); color: var(--brand-700); }
.chip--gray { background: var(--slate-100); color: var(--slate-700); }
.chip--glass { background: rgba(255, 255, 255, .1); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===== Cards ========================================================================== */
.card { position: relative; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--ring), var(--shadow-card); }
.card--pad { padding: clamp(20px, 2.2vw, 28px); }
.card--pad-lg { padding: clamp(24px, 3vw, 40px); }
.card--link {
  display: block; overflow: hidden; color: var(--slate-900); text-decoration: none;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--slate-900); }
.card--link:focus-visible { outline-offset: 3px; }
.card__body { display: block; padding: 20px 22px 22px; }
.card__title { font-size: 19px; font-weight: 800; letter-spacing: var(--ls-head); }
.card__meta { display: block; font-size: 13px; color: var(--muted); }
.card__media { position: relative; display: block; height: 220px; overflow: hidden; background: var(--slate-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.card--link:hover .card__media img { transform: scale(1.05); }
.card__media .ph { border: 0; border-radius: 0; }
.card__media--sm { height: 150px; }
.card__media--lg { height: 260px; }
/* dark card / promo: navy surface with glows + blueprint grid */
.card-dark { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-dark); color: var(--white); box-shadow: var(--ring-dark); }
.card-dark p, .card-dark .card__meta { color: rgba(255, 255, 255, .82); }
.card-dark::after, .promo-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grid-lines); background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000, transparent 70%);
}
@media (prefers-reduced-motion: reduce) { .card--link:hover { transform: none; } .card--link:hover .card__media img { transform: none; } }

/* ===== Photo placeholder – "blueprint" tile: photo still to be delivered ============== */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; min-height: 140px;
  padding: 20px; border: 1px dashed rgba(2, 108, 182, .28); border-radius: var(--radius-lg);
  background-color: #eef4f8; background-image: linear-gradient(rgba(2, 108, 182, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(2, 108, 182, .06) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center;
  text-align: center; font-size: 13px; line-height: 1.45; color: var(--slate-600);
}
.ph .label { color: var(--teal-700); }
.ph svg { width: 28px; height: 28px; color: var(--brand-600); opacity: .8; }
.ph--dark { border: 1px dashed rgba(111, 217, 220, .3); background-color: rgba(255, 255, 255, .04); background-image: var(--grid-lines); color: rgba(255, 255, 255, .8); }
.ph--dark .label, .ph--dark b { color: var(--white); }
.ph--dark svg { color: var(--teal-300); }

/* "to be filled in" marker for missing facts */
.todo { padding: 0 4px; border-radius: 4px; background: #fff4cc; color: #5c4400; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.draft-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-md);
  background: #fffbeb; box-shadow: inset 0 0 0 1px #fde68a; color: #5c4400; font-size: 14px;
}
.draft-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* ===== Icon tile ====================================================================== */
.tile {
  display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--grad-tile); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 20px -10px rgba(2, 108, 182, .7);
}
.tile svg { width: 24px; height: 24px; }
.tile--sm { width: 34px; height: 34px; border-radius: 10px; background: var(--white); color: var(--brand-600); box-shadow: var(--ring); }
.tile--sm svg { width: 17px; height: 17px; }
.tile--sm.tile--accent { background: var(--grad-tile); color: var(--white); box-shadow: 0 8px 16px -8px rgba(2, 108, 182, .7); }

/* ===== Hero (home) ====================================================================
   Full-bleed photo under a navy overlay, blueprint grid, glass offer card, stats bar on the bottom edge.
   Motion: photo settles (zoom-out) on load, text rises in, photo parallax on scroll where the browser
   supports scroll-driven animations – all of it off with prefers-reduced-motion. */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: clamp(620px, calc(100svh - var(--header-h)), 880px); background: var(--navy-900); color: var(--white);
}
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__bg picture { display: block; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 35%; animation: th-hero-settle 2.4s var(--ease) both; }
.hero::before {   /* readable text side + dark bottom for the stats + teal glow */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 420px at 8% 100%, rgba(13, 176, 181, .28), transparent 70%),
    linear-gradient(0deg, rgba(18, 28, 34, .96) 0%, rgba(18, 28, 34, 0) 42%),
    linear-gradient(90deg, rgba(18, 28, 34, .95) 0%, rgba(18, 28, 34, .84) 34%, rgba(7, 75, 122, .38) 64%, rgba(18, 28, 34, .12) 100%);
}
.hero::after, .page-hero::after {   /* blueprint grid – a nod to steel framing drawings */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(111, 217, 220, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 217, 220, .08) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 18% 45%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 75% at 18% 45%, #000, transparent 75%);
}
.hero__inner { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding-top: clamp(48px, 9vh, 104px); padding-bottom: 40px; }
.hero__text { flex: 0 1 760px; min-width: 0; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); animation: th-pulse 1.8s ease-out 3; }
.hero__title { margin: 22px 0 20px; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.03; letter-spacing: -.035em; font-weight: 800; color: var(--white); }
.hero__accent { background: linear-gradient(90deg, var(--teal-300), var(--white)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 600px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .84); }
.hero__actions { gap: 12px; margin-top: 34px; }
/* glass card with the one public price (spec: TEC35 od 39 900 zł netto, konstrukcja z montażem) */
.hero__offer {
  display: flex; flex-direction: column; gap: 2px; align-self: flex-end; width: 300px; max-width: 100%; padding: 22px 24px;
  border-radius: var(--radius-lg); background: rgba(18, 28, 34, .62); color: var(--white); text-decoration: none;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 24px 60px -24px rgba(0, 0, 0, .7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.hero__offer:hover { transform: translateY(-3px); color: var(--white); box-shadow: inset 0 0 0 1px rgba(111, 217, 220, .55), 0 30px 60px -24px rgba(0, 0, 0, .8); }
.hero__offer-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-300); }
.hero__offer-price { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__offer-price small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .78); }
.hero__offer-note { font-size: 13px; color: rgba(255, 255, 255, .78); }
.hero__offer-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 700; }
.hero__offer-go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.hero__offer:hover .hero__offer-go svg { transform: translateX(4px); }
/* stats bar on the bottom edge of the photo */
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); }
.hero__stats li { padding: 24px 24px 36px 0; }
.hero__stats li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.hero__stat-value { display: block; font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; letter-spacing: var(--ls-head); line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero__stat-desc { display: block; max-width: 30ch; margin-top: 6px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .74); }
/* entrance: the h1 moves only (no opacity) so it still counts as the LCP paint right away */
.hero__eyebrow, .hero__lead, .hero__actions, .hero__offer, .hero__stats { animation: th-rise .7s var(--ease) both; }
.hero__title { animation: th-lift .7s var(--ease) both; }
.hero__title { animation-delay: .05s; } .hero__lead { animation-delay: .15s; } .hero__actions { animation-delay: .25s; }
.hero__offer { animation-delay: .4s; } .hero__stats { animation-delay: .5s; }
@keyframes th-lift { from { translate: 0 14px; } to { translate: none; } }
@keyframes th-hero-settle { from { transform: scale(1.08); } to { transform: none; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__bg { animation: th-hero-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes th-hero-parallax { to { transform: translateY(16%); } }
  }
}
@media (max-width: 1099px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero__stats li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero__stats li { padding-bottom: 24px; }
}
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero::before { background: radial-gradient(500px 360px at 0% 100%, rgba(13, 176, 181, .25), transparent 70%), linear-gradient(180deg, rgba(18, 28, 34, .78) 0%, rgba(18, 28, 34, .9) 55%, rgba(18, 28, 34, .97) 100%); }
  .hero__inner { gap: 28px; padding-top: 40px; padding-bottom: 28px; }
  .hero__offer { width: 100%; align-self: stretch; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats li { padding: 18px 12px 18px 0; }
  .hero__stats li + li { padding-left: 12px; }
  .hero__stat-desc { font-size: 12px; }
}

/* ===== Stats ========================================================================== */
.stat { padding: clamp(20px, 2vw, 26px); }
@media (max-width: 640px) { .stat { padding: 16px; } }
.stat__value { margin-top: 10px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__desc { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ===== Path cards ("Czego szukasz?") ================================================== */
.path { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 30px); }
.path__head { display: flex; align-items: center; gap: 14px; }
.path__title { font-size: 20px; font-weight: 800; letter-spacing: var(--ls-head); }
.path__sub { font-size: 13px; color: var(--muted); }
.path__text { display: block; margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--slate-600); }
.path__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-size: 14px; font-weight: 700; color: var(--brand-700); }
.path__go svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.path:hover .path__go svg { transform: translateX(5px); }
.path::before {   /* gradient top edge on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-btn); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.path:hover::before { transform: scaleX(1); }

/* ===== Model card (Domy z katalogu) =================================================== */
.model__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.model__price { display: block; margin-top: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.model__chips { margin-top: 12px; }

/* feature block with image (Zbuduj sam / Concierge) */
.feature { display: flex; flex-wrap: wrap; gap: 20px; padding: 18px; }
.feature__media { position: relative; flex: 0 1 240px; min-height: 170px; border-radius: var(--radius-md); overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media .ph { border-radius: var(--radius-md); padding: 12px; font-size: 12px; }
.feature__body { flex: 1 1 240px; min-width: 0; padding: 6px 4px; }
.feature__title { margin-top: 10px; font-size: 21px; font-weight: 800; letter-spacing: var(--ls-head); }
.feature__text { margin: 6px 0 14px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.card-dark .feature__title { color: var(--white); }
.card-dark .feature__text { color: rgba(255, 255, 255, .82); }

/* ===== Steps (Design – Build – Operate) ===============================================
   numbered tiles joined by a hairline; the number is drawn by CSS (counter) as a big outline digit */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; counter-reset: th-step; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--radius-md); counter-increment: th-step;
  background: linear-gradient(180deg, var(--white), var(--slate-50)); box-shadow: var(--ring);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.step::after {   /* big faint step number in the corner */
  content: counter(th-step, decimal-leading-zero); position: absolute; right: 14px; top: 6px; z-index: 0;
  font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: rgba(2, 108, 182, .07); pointer-events: none;
}
.step:hover { box-shadow: inset 0 0 0 1px rgba(13, 176, 181, .45), 0 16px 32px -20px rgba(2, 108, 182, .5); transform: translateY(-2px); }
.step > * { position: relative; z-index: 1; }
.step__head { display: flex; align-items: center; gap: 10px; }
.step__num { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--teal-700); }
.step__title { margin-top: 12px; font-size: 17px; font-weight: 800; }
.step__text { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 899px) { .steps, .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .steps, .steps--3 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .step:hover { transform: none; } }

/* benefits 2×2 (Szybko / Trwale …) */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.benefit { position: relative; padding: 18px 18px 18px 20px; border-radius: var(--radius-md); background: linear-gradient(180deg, var(--white), var(--slate-50)); box-shadow: var(--ring); }
.benefit::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-tile); }
.benefit__title { font-size: 16px; font-weight: 800; }
.benefit__text { margin-top: 4px; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 540px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* ===== Dark promo (Sieć TEC) + timeline =============================================== */
.promo-dark { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3.4vw, 48px); border-radius: var(--radius-xl); background: var(--surface-dark); color: var(--white); box-shadow: var(--ring-dark); }
.promo-dark h2 { margin: 16px 0 12px; color: var(--white); }
.promo-dark__lead { max-width: 560px; margin-bottom: 24px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .84); }
.promo-dark__media { position: relative; height: 240px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.promo-dark__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .promo-dark { padding: 24px 20px; } }
.timeline { position: relative; display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--teal-500), rgba(13, 176, 181, .15)); }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ""; position: absolute; left: -28px; top: 3px; width: 16px; height: 16px; border-radius: 99px;
  background: var(--white); box-shadow: inset 0 0 0 4px var(--teal-500), 0 0 0 4px rgba(13, 176, 181, .15);
}
.timeline__item--muted::before { box-shadow: inset 0 0 0 4px var(--slate-300); }
.timeline__title { font-weight: 800; }
.timeline__text { font-size: 14px; color: var(--muted); }

/* ===== CTA band (Konfigurator) – brand gradient, grid, light glow ==================== */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px;
  margin-top: var(--section-gap); padding: clamp(28px, 4.4vw, 64px); border-radius: var(--radius-xl); background: var(--grad-cta); color: var(--white);
  box-shadow: 0 40px 80px -40px rgba(2, 108, 182, .7);
}
.cta-band::before {   /* light from the top-right corner */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 340px at 100% 0%, rgba(255, 255, 255, .22), transparent 70%), radial-gradient(520px 320px at 0% 100%, rgba(18, 28, 34, .35), transparent 70%);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 90% at 100% 50%, #000, transparent 75%);
}
.cta-band__text { flex: 1 1 520px; min-width: 0; }
.cta-band__kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .92); }
.cta-band h2 { margin: 10px 0 12px; color: var(--white); }
.cta-band p { max-width: 620px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .94); }
.cta-band .btn { min-height: 54px; padding: 12px 24px; font-size: 16px; }
@media (max-width: 640px) { .cta-band { padding: 28px 20px; } .cta-band .btn { flex: 1 1 100%; } }

/* ===== Full-width dark band (v2) – <section class="band-dark"><div class="wrap">…</div></section>
   Used between .wrap blocks (close the page .wrap before it, reopen after). Same surface as hero/footer. */
.band-dark {
  position: relative; isolation: isolate; overflow: hidden; margin-top: var(--section-gap); padding-block: var(--section-gap);
  background: var(--surface-dark); color: var(--white);
}
.band-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grid-lines); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000, transparent 75%);
}
.band-dark + .wrap > .section:first-child, .band-dark + .wrap > :first-child { padding-top: var(--section-gap); }
.band-dark .h2, .band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .label, .band-dark .label--kicker { color: var(--teal-300); }
.band-dark .muted, .band-dark p { color: rgba(255, 255, 255, .8); }
.band-dark .grad-text { background: linear-gradient(90deg, var(--teal-300), var(--white)); -webkit-background-clip: text; background-clip: text; }
.band-dark .benefit { background: rgba(255, 255, 255, .05); box-shadow: var(--ring-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.band-dark .benefit__title { color: var(--white); }
.band-dark .benefit__text { color: rgba(255, 255, 255, .74); }
.band-dark .step { background: rgba(255, 255, 255, .05); box-shadow: var(--ring-dark); }
.band-dark .step::after { color: rgba(111, 217, 220, .1); }
.band-dark .step__num { color: var(--teal-300); }
.band-dark .step__text { color: rgba(255, 255, 255, .74); }

/* ===== Trust strip (logos right under the home hero) ================================ */
.trust-strip .partners-row { padding: 28px 0 0; }
.trust-strip .partners-row__label { color: var(--muted); }
.trust-strip .partners-row__logo { background: transparent; box-shadow: none; }

/* ===== Partners row ================================================================== */
.partners-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 24px; }
.partners-row__label { flex: 0 0 160px; }
.partners-row__logos { flex: 1 1 600px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; list-style: none; }
.partners-row__logo { display: grid; place-items: center; height: 64px; padding: 8px 12px; border-radius: var(--radius-md); background: var(--slate-50); box-shadow: var(--ring); }
.partners-row__logo img { max-height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .25s, filter .25s; }
.partners-row__logo:hover img { filter: none; opacity: 1; }
.partners-row__logo.ph { min-height: 0; height: 64px; padding: 6px; border-radius: var(--radius-md); font-size: 12px; }
@media (max-width: 899px) { .partners-row__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== Prose (text pages) ============================================================ */
.prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--slate-700); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 40px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.025em; color: var(--slate-900); }
.prose h3 { margin-top: 28px; font-size: 20px; color: var(--slate-900); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--teal-600); }
.prose strong { color: var(--slate-900); }
.prose a { color: var(--brand-700); text-underline-offset: 3px; }
.check-list { display: grid; gap: 12px; list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--grad-tile); box-shadow: 0 6px 12px -6px rgba(2, 108, 182, .7); }
.check-list li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }

/* ===== Tabs (TEC35 …) – segmented control ============================================ */
.tabs__list {
  display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 5px; border-radius: 999px;
  background: var(--white); box-shadow: var(--ring), var(--shadow-card);
}
.tabs__tab { min-height: 44px; padding: 8px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--slate-600); transition: background .25s, color .25s, box-shadow .25s; }
.tabs__tab:hover { background: var(--slate-100); color: var(--slate-900); }
.tabs__tab[aria-selected="true"] { background: var(--navy-900); color: var(--white); box-shadow: 0 8px 18px -10px rgba(18, 28, 34, .8); }
.tabs__panel { padding-top: 28px; }
.tabs__panel:focus { outline: none; }
.tabs__panel:focus-visible { outline: 2px dashed rgba(13, 176, 181, .5); outline-offset: 8px; }
@media (max-width: 640px) { .tabs__list { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: var(--radius-lg); scrollbar-width: none; } .tabs__tab { flex-shrink: 0; } }

/* ===== Accordion / FAQ (details) ===================================================== */
.accordion { display: grid; gap: 10px; }
.accordion details { border-radius: var(--radius-md); background: var(--white); box-shadow: var(--ring); transition: box-shadow .25s; }
.accordion details:hover { box-shadow: inset 0 0 0 1px rgba(13, 176, 181, .4); }
.accordion details[open] { box-shadow: inset 0 0 0 1px rgba(13, 176, 181, .5), var(--shadow-card); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 18px 14px 20px;
  font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; border-radius: var(--radius-md);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--slate-100); font-size: 20px; font-weight: 600; line-height: 1; color: var(--brand-600); transition: transform .25s var(--ease-out), background .25s, color .25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--grad-tile); color: var(--white); }
.accordion__body { padding: 0 20px 20px; line-height: 1.65; color: var(--slate-700); }
.accordion__body > * + * { margin-top: 10px; }

/* ===== Comparison table ============================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--ring), var(--shadow-card); background: var(--white); }
.table { width: 100%; min-width: 600px; font-size: 15px; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--slate-100); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(13, 176, 181, .035); }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--slate-50); }
.table tbody th { font-weight: 700; }
.table .is-highlight { background: rgba(13, 176, 181, .07); }

/* ===== Packages (standards) ========================================================== */
.package { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 32px); }
.package--featured { box-shadow: 0 0 0 2px var(--teal-500), var(--shadow-hover); }
.package__badge { position: absolute; top: -13px; right: 20px; background: #e3f6f6; }   /* solid, so the card border does not show through */
.package__name { font-size: 21px; font-weight: 800; letter-spacing: var(--ls-head); }
.package__price { margin: 10px 0 4px; font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.package__list { margin: 20px 0 24px; flex: 1 1 auto; align-content: start; }

/* ===== Forms ========================================================================= */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; align-content: start; }
.field__label { font-size: 14px; font-weight: 700; color: var(--slate-900); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--slate-300);
  background: var(--slate-50); color: var(--slate-900); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate-400); background: var(--white); }
.textarea { min-height: 140px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal-600); background: var(--white); box-shadow: 0 0 0 4px rgba(13, 176, 181, .18); }
.input::placeholder, .textarea::placeholder { color: #75849a; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 700; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--slate-300); background: var(--white); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.choice span:hover { border-color: var(--teal-600); }
.choice input:checked + span { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); box-shadow: 0 8px 18px -10px rgba(18, 28, 34, .8); }
.choice input:focus-visible + span { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--slate-700); }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--brand-600); }
.form-note { font-size: 13px; color: var(--muted); }

/* ===== Filters (Realizacje) ========================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 18px 20px; }
.filters .field { flex: 1 1 200px; }

/* ===== Configurator ================================================================== */
.configurator { display: flex; flex-wrap: wrap; gap: var(--block-gap); align-items: flex-start; }
.configurator__main { flex: 1 1 560px; min-width: 0; }
.configurator__summary { flex: 1 1 320px; min-width: 0; position: sticky; top: calc(var(--header-h) + 16px); }
.model-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.model-pick legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
@media (max-width: 899px) { .model-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.model-pick__opt { position: relative; }
.model-pick__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.model-pick__card {
  display: block; height: 100%; padding: 16px; border-radius: var(--radius-md); background: var(--slate-50); box-shadow: var(--ring);
  cursor: pointer; transition: box-shadow .25s var(--ease-out), background .25s, transform .25s var(--ease-out);
}
.model-pick__card:hover { background: var(--white); box-shadow: inset 0 0 0 1px rgba(13, 176, 181, .45), 0 16px 32px -20px rgba(2, 108, 182, .5); }
.model-pick__opt input:checked + .model-pick__card { background: var(--white); box-shadow: inset 0 0 0 2px var(--teal-500), 0 16px 32px -20px rgba(2, 108, 182, .55); }
.model-pick__opt input:focus-visible + .model-pick__card { outline: 3px solid var(--teal-500); outline-offset: 2px; }
.model-pick__name { display: block; font-size: 19px; font-weight: 800; letter-spacing: var(--ls-head); }
.summary__price { margin: 8px 0; font-size: clamp(32px, 3vw, 40px); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--slate-100); font-size: 14px; }

/* ===== Gallery (masonry, 2 columns) + lightbox ======================================= */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery__col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gallery__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius-md); }
.gallery__img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.gallery__item:hover .gallery__img, .gallery__item:focus-visible .gallery__img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(10, 16, 20, .92); color: var(--white); }
.lightbox__figure { margin: 0; max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-md); color: var(--white);
  font-size: 40px; line-height: 1; opacity: .85; transition: opacity .2s, background .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; top: 50%; margin-top: -28px; font-size: 56px; }
.lightbox__next { right: 10px; top: 50%; margin-top: -28px; font-size: 56px; }
.lightbox__count { position: absolute; left: 20px; top: 20px; margin: 0; font-size: 14px; opacity: .85; }
@media (max-width: 767px) { .lightbox__figure { max-width: 100vw; } .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; margin: 0; } }

/* ===== Hotspot (plans, facades) – dots positioned in page CSS with --x/--y ===========
     .hotspot--parter .hotspot__spot:nth-of-type(1) { --x: 44.88%; --y: 31.13%; } */
.hotspot { position: relative; }
.hotspot__img { display: block; width: 100%; height: auto; }
.hotspot__spot { position: static; }
.hotspot__dot {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; margin: -9.5px 0 0 -9.5px;
}
.hotspot__dot svg { display: none; }
.hotspot__dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 25px; height: 25px; margin: -12.5px 0 0 -12.5px;
  border-radius: 50%; background: var(--brand-600); animation: th-pulse 1.8s ease infinite;
}
.hotspot__dot::after { content: "+"; position: relative; font-size: 18px; font-weight: 700; line-height: 1; color: var(--white); }
@keyframes th-pulse { 0% { box-shadow: 0 0 0 0 rgba(13, 176, 181, .7); } 100% { box-shadow: 0 0 0 8px rgba(13, 176, 181, 0); } }
.hotspot__tip {
  --tw: min(340px, 100%);
  position: absolute; z-index: 4; bottom: calc(100% - var(--y, 50%) + 10px);
  left: clamp(0px, calc(var(--x, 50%) + 12.5px - var(--tw) / 2), calc(100% - var(--tw)));
  width: var(--tw); padding: 16px 18px; border-radius: var(--radius-md); background: var(--white); color: var(--slate-700);
  box-shadow: 0 20px 50px -12px rgba(18, 28, 34, .35), 0 0 0 1px var(--slate-200); font-size: 14px; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; pointer-events: none;
}
.hotspot__tip-title { display: block; font-size: 15px; font-weight: 800; color: var(--slate-900); }
.hotspot__tip-text { display: block; margin-top: 6px; }
.hotspot__spot:hover .hotspot__tip, .hotspot__dot:focus-visible + .hotspot__tip, .hotspot__dot[aria-expanded="true"] + .hotspot__tip { opacity: 1; visibility: visible; }
.hotspot__spot.is-dismissed .hotspot__tip { opacity: 0; visibility: hidden; }
.hotspot__spot:hover .hotspot__dot, .hotspot__dot:focus-visible { z-index: 3; }
@media (max-width: 575px) { .hotspot__tip { --tw: min(260px, 100%); } }
@media (prefers-reduced-motion: reduce) { .hotspot__dot::before { animation: none; } }

/* ===== Map facade (Google Maps only after a click) ================================== */
.map__frame { position: relative; height: 360px; overflow: hidden; border-radius: var(--radius-lg); background: #e5e3df; }
.map__facade {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--slate-900); font-weight: 700; text-decoration: none;
  background: linear-gradient(0deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)),
    repeating-linear-gradient(0deg, transparent 0 39px, #d6d3cd 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, #d6d3cd 39px 40px), #ebe9e4;
}
.map__facade:hover { color: var(--brand-700); }
.map__pin { width: 36px; height: 36px; color: var(--brand-600); }
.map__label { padding-bottom: 2px; border-bottom: 2px solid currentColor; }
.map__iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ===== Client quote – component('case-quote') (realizacje, studium) ================== */
.case-quote { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.case-quote__icon { width: 26px; height: 26px; color: var(--teal-600); }
.case-quote__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--slate-700); }
.case-quote__author { margin-top: auto; font-size: 14px; }
.case-quote__name { font-weight: 800; color: var(--slate-900); }
.case-quote__place { color: var(--muted); }

/* ===== Reveal on scroll (v2) =========================================================
   Pure CSS (scroll-driven animations): blocks rise in as they enter the viewport. Browsers without
   animation-timeline simply show everything; reduced motion = no animation. The final keyframe is
   explicit (opacity: 1), so the element ends fully visible whatever its own opacity rules are. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    :where(.section-head, .grid > *, .split > *, .steps > li, .cta-band, .table-wrap, .accordion > details, .tabs__list):not([data-anim]) {
      animation: th-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
    }
  }
}
/* uses `translate`, not `transform`, so hover lifts (transform) on revealed cards keep working */
@keyframes th-reveal { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: none; } }
