/* ==========================================================================
   KRIP-SERWIS — style strony
   Układ mobile-first: telefon (bazowo) → tablet (760 px) → komputer (1000/1100 px).
   Jasna, spokojna oprawa (biel i chłodna szarość). Fiolet przechodzący w karmin zostaje akcentem marki.
   ========================================================================== */

/* ---------- Czcionki (hostowane lokalnie, bez Google Fonts) ---------- */
@font-face {
  font-family: "Krip Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-017F;
}
@font-face {
  font-family: "Krip Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Krip Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-017F;
}
@font-face {
  font-family: "Krip Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+20AC, U+2122, U+2212;
}

/* ---------- Zmienne ---------- */
:root {
  --paper: #FFFFFF;      /* tło strony */
  --white: #FFFFFF;
  --ice: #EEF3F8;        /* lodowy błękit: jasne pasy */
  --mist: #F2F3F7;       /* jasna szarość: sekcje naprzemienne */
  --lav: #F2F1F7;        /* jasny szaro-fioletowy: panele */
  --ink: #281C36;        /* tekst na jasnym tle */
  --ink-2: #51455E;      /* tekst pomocniczy na jasnym tle */
  --line: #DEE0E8;       /* cienkie linie na jasnym tle */

  --v950: #231C2C;       /* grafit: stopka */
  --v900: #2D2439;       /* grafit: ciemne przyciski */
  --v800: #3F0F66;
  --v600: #6212A1;       /* fiolet marki */
  --plum: #941078;       /* środek gradientu */
  --crimson: #C60046;    /* karmin marki */
  --sky: #8FD3FF;        /* wyświetlacz: temperatura w normie */
  --pink: #FF7A9E;       /* wyświetlacz: alarm */
  --lilac: #E3C9F6;      /* linki i akcenty na ciemnym tle */
  --on-dark: #F5EFFB;    /* tekst na ciemnym tle */
  --on-dark-2: #CDBDE0;  /* tekst pomocniczy na ciemnym tle */
  --line-d: rgba(245, 239, 251, .2);
  --grad: linear-gradient(110deg, #6212A1 0%, #941078 55%, #C60046 100%);

  --f-display: "Krip Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-text: "Krip Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --gutter: 20px;
  --maxw: 1240px;
  --header-h: 68px;
  --focus: #1784DC;
}
@media (min-width: 760px) { :root { --gutter: 32px; --header-h: 76px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --header-h: 84px; } }

/* ---------- Reset i baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 1100px) { body { font-size: 1.125rem; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; text-wrap: balance; }
h1, h2, h3, .service-name, .terms-list dt, .footer-tagline { word-spacing: .08em; }
p { color: var(--ink-2); max-width: 65ch; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
a, button, summary { -webkit-tap-highlight-color: rgba(98, 18, 161, .18); touch-action: manipulation; }
::selection { background: var(--v600); color: #fff; }

.footer { --focus: #8CCBFF; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--v900); color: #fff; padding: 12px 18px; border-radius: 4px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.link {
  color: var(--v600); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
}
.link:hover { color: var(--crimson); }
.fine { font-size: .9375rem; color: var(--ink-2); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 4px;
  font: 600 1.0625rem/1.1 var(--f-text); letter-spacing: .005em; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-lg { min-height: 56px; padding: 0 30px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 6px 20px -6px rgba(98, 18, 161, .55); }
.btn-primary:hover { background: linear-gradient(110deg, #490D7D, #9D0038); box-shadow: 0 8px 24px -6px rgba(98, 18, 161, .7); }
.btn-dark { background: var(--v900); color: #fff; }
.btn-dark:hover { background: var(--v600); }
.btn-outline { border-color: #7D3CA3; color: #581180; background: transparent; }
.btn-outline:hover { background: #F0E5FB; color: #410970; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(245, 239, 251, .6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Nagłówek ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, #6212A1, #C60046) 1;
}
.header-row { display: flex; align-items: center; gap: 12px; min-height: calc(var(--header-h) - 3px); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; fill: none; stroke: var(--v600); stroke-width: 1.7; stroke-linecap: round; }
.brand-name { display: block; font: 700 1.875rem/1 var(--f-text); letter-spacing: -.02em; }
.brand-name span { font-weight: 400; color: #BD004A; }
.brand-text small { display: none; margin-top: 4px; font-size: .75rem; line-height: 1.2; letter-spacing: .01em; color: var(--ink-2); }
@media (min-width: 760px) { .brand-text small { display: block; } }

.header-call { display: none; min-height: 48px; padding: 0 20px; border-radius: 999px; }
@media (min-width: 600px) { .header-call { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink);
  font-weight: 600; cursor: pointer;
}
.menu-toggle:hover { background: var(--ink); color: #fff; }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column;
  padding: 4px var(--gutter) 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 30px -20px rgba(40, 28, 54, .4);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1875rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover { color: var(--v600); }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; gap: 32px; margin-right: 12px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .site-nav a { position: relative; min-height: 44px; border: 0; font-size: 1rem; }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .site-nav a:hover { color: var(--ink); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero: jasne tło, tekst po lewej, zdjęcie kuchni po prawej ---------- */
.hero { display: grid; background: linear-gradient(160deg, #FFFFFF 0%, var(--mist) 62%, #ECEEF3 100%); color: var(--ink); }
.hero-copy { padding: clamp(40px, 7vw, 72px) var(--gutter) clamp(44px, 6vw, 64px); }
.hero h1 {
  max-width: 11em; margin-bottom: 22px; color: var(--ink);
  font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4.4rem); line-height: 1.07; letter-spacing: -.022em;
}
.hero-lead { max-width: 32rem; margin-bottom: 30px; font-size: 1.1875rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 26px; font-size: 1rem; }
.hero-pro { margin-top: 10px; font-size: 1rem; }
@media (min-width: 760px) { .hero-lead { font-size: 1.3125rem; } }

.hero-media { position: relative; aspect-ratio: 4 / 3; background: #D9D5D0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (min-width: 760px) { .hero-media { aspect-ratio: 16 / 9; } }

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(620px, calc(100vh - var(--header-h)), 760px); }
  .hero-copy {
    align-self: center;
    padding: 64px 112px 64px max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  }
  .hero h1 { font-size: clamp(2.9rem, 1rem + 3.1vw, 4.2rem); }
  .hero-media { aspect-ratio: auto; }
  .hero-img { object-position: 58% 50%; }
}
@media (max-width: 479px) {
  .hero-actions .btn, .pro-actions .btn, .contact-actions .btn { width: 100%; }
}

/* ---------- Wyświetlacz temperatury na zdjęciu (motyw przewodni) ---------- */
.readout {
  --seg: var(--sky);
  position: absolute; z-index: 2; left: 12px; bottom: 12px; width: 214px;
  padding: 8px 8px 10px; color: #E9E6F0;
  background: linear-gradient(165deg, #2F2B3A 0%, #1C1A23 100%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  box-shadow: 0 22px 44px -18px rgba(24, 16, 40, .65), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.readout[data-state="alarm"] { --seg: var(--pink); }
.readout-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding-inline: 2px; }
.readout-title { display: none; font-size: .8125rem; line-height: 1.2; color: #CFCBD9; }
.readout-badge { padding: 3px 10px; border-radius: 3px; background: var(--seg); color: #14121A; font: 700 .8125rem/1.3 var(--f-text); transition: background-color .4s; }
.readout-screen { padding: 12px 12px 10px; background: #0E0E13; border-radius: 4px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.segs { display: block; width: 100%; height: auto; overflow: visible; fill: var(--seg); transition: fill .4s; }
.seg-ghost { fill: rgba(255, 255, 255, .075); }
.seg-live { filter: drop-shadow(0 0 5px var(--seg)); }
.seg-unit { fill: #CFCBD9; font: 400 30px var(--f-text); }
.readout-state { margin: 8px 2px 0; max-width: none; font: 600 1rem/1.2 var(--f-display); color: #fff; }
@media (min-width: 760px) {
  .readout { left: var(--gutter); bottom: 24px; width: 280px; padding: 10px 10px 12px; }
  .readout-top { margin-bottom: 10px; }
  .readout-title { display: block; }
  .readout-state { margin-top: 10px; font-size: 1.125rem; }
}
@media (min-width: 1000px) {
  .readout { left: -64px; bottom: 56px; width: 316px; padding: 12px 12px 14px; }
  .readout-state { font-size: 1.25rem; }
}

/* ---------- Pasek narzędzi: diagnoza zaczyna się od pomiaru ---------- */
.tools-band { background: #fff; border-bottom: 1px solid var(--line); }
.tools { display: grid; gap: 22px; padding-block: 34px 30px; }
.tools-title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.65rem); line-height: 1.2; letter-spacing: -.02em; }
.tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; margin: 0; padding: 0; list-style: none; }
.tool-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; align-content: start; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.tool-list li:last-child { grid-column: 1 / -1; }
.tool-list strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); }
.tool-ico { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--v600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 600px) {
  .tool-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-list li:last-child { grid-column: auto; }
}
@media (min-width: 1000px) {
  .tools { grid-template-columns: 14rem minmax(0, 1fr); align-items: center; gap: 40px; padding-block: 38px; }
  .tool-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .tool-list li { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 4px 18px 4px; border-left: 1px solid var(--line); }
  .tool-list .tool-ico { width: 56px; height: 56px; }
}

/* ---------- Pasek faktów ---------- */
.facts-band { background: var(--mist); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: 1fr; margin-block: 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); line-height: 1.4; color: var(--ink-2); }
.facts li:last-child { border-bottom: 0; }
.facts .ico { width: 30px; height: 30px; color: var(--v600); stroke-width: 1.5; }
.facts strong { color: var(--ink); font-weight: 600; }
@media (min-width: 600px) {
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .facts li:nth-last-child(2) { border-bottom: 0; }
}
@media (min-width: 1100px) {
  .facts { grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
  .facts li { border-bottom: 0; padding: 28px 0; }
}

/* ---------- Sekcje: wspólne ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); }
h2 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3.4rem); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lead { margin-top: 20px; font-size: 1.1875rem; color: var(--ink-2); max-width: 34rem; }

.split { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
  .split > .split-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Dla domu: usługi ---------- */
.services { border-top: 2px solid var(--v600); }
.service { border-bottom: 1px solid var(--line); }
.service summary, .faq-list summary { list-style: none; cursor: pointer; }
.service summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.service summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 18px 0; }
.service-name { display: flex; align-items: center; gap: 16px; font: 600 clamp(1.25rem, 1.05rem + .9vw, 1.65rem)/1.2 var(--f-display); letter-spacing: -.02em; transition: color .2s; }
.service summary:hover .service-name { color: var(--v600); }
.service-body { padding: 0 0 30px; max-width: 36rem; }
.service-body .link { display: inline-block; margin-top: 12px; padding-block: 8px; }

.service-name .tool-ico { width: 34px; height: 34px; stroke-width: 2.2; }
.toggle { position: relative; width: 32px; height: 32px; border: 1.5px solid var(--v600); border-radius: 50%; flex: none; color: var(--v600); }
.toggle::before, .toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .2s;
}
.toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

/* marki */
.brands { margin-top: clamp(64px, 8vw, 112px); }
.brands-head h3 { margin-bottom: 8px; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 700; letter-spacing: -.018em; }
.brand-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.brand-list li {
  display: flex; align-items: center; min-height: 78px; padding: 16px 18px 14px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid #6B20A2; border-radius: 4px;
  font: 600 1.2rem/1 var(--f-display); letter-spacing: -.015em; color: #501577;
}
.brand-list li:nth-child(3n+2) { border-top-color: #BA0758; }
.brand-list li:nth-child(3n) { border-top-color: #3985C3; }
.brand-list img { width: auto; max-width: 100%; height: 32px; object-fit: contain; object-position: left center; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.brand-list li:hover img { filter: none; opacity: 1; }
@media (min-width: 600px) { .brand-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .brand-list { grid-template-columns: repeat(5, 1fr); } .brand-list li { font-size: 1.3rem; } }
.brands-help { margin-top: 24px; }
.brands .fine { margin-top: 8px; }

/* ---------- Diagnoza i dojazd ---------- */
.terms { background: var(--mist); border-block: 1px solid var(--line); }
.terms .split-head .btn { margin-top: 32px; }
.terms-list { border-top: 2px solid var(--v600); }
.terms-list > div { display: grid; gap: 8px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.terms-list dt { font: 700 clamp(1.25rem, 1.1rem + .8vw, 1.55rem)/1.2 var(--f-display); letter-spacing: -.02em; color: #3F0F66; }
.terms-list dd { max-width: 38rem; color: var(--ink-2); }
.terms-list strong { color: var(--ink); font-weight: 600; white-space: nowrap; }
.terms-pro { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); max-width: none; }
@media (min-width: 760px) {
  .terms-list > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 24px; align-items: baseline; }
}

/* ---------- Gastronomia i przemysł ---------- */
.pro { background: #fff; padding-block: clamp(64px, 9vw, 128px); }
.pro-hero { display: grid; gap: 32px; width: min(100% - var(--gutter) * 2, var(--maxw)); margin: 0 auto clamp(40px, 6vw, 72px); }
.pro-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 50%; border-radius: 6px; box-shadow: 0 30px 60px -34px rgba(36, 28, 47, .55); }
.pro-hero .pro-hero-inner { display: grid; gap: 28px; width: auto; margin: 0; padding: 0; }
.pro h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); }
.pro-lead { margin-bottom: 28px; font-size: 1.1875rem; color: var(--ink); }
@media (min-width: 1000px) {
  .pro-hero { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: center; }
  .pro-hero .pro-img { grid-column: 2; grid-row: 1; }
  .pro-hero .pro-hero-inner { grid-column: 1; grid-row: 1; }
}

.bank { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--v600); }
.unit { padding: 32px 0; border-bottom: 1px solid var(--line); }
.pro .unit-temp { margin-bottom: 14px; font: 700 clamp(2.9rem, 2.3rem + 2.4vw, 4rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--v600); font-variant-numeric: tabular-nums; max-width: none; }
.pro .unit-temp span { font: inherit; }
.pro .unit-fault .unit-temp { color: var(--crimson); }
.unit h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); }
.unit ul { margin: 18px 0 0; padding: 0; list-style: none; }
.unit li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.45; }
@media (min-width: 1000px) {
  .bank { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .unit { padding: 44px 36px 48px 0; }
  .unit + .unit { padding-left: 36px; border-left: 1px solid var(--line); }
}

.pro-info { display: grid; gap: 56px; padding-top: 64px; }
.pro-info h3 { margin-bottom: 16px; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 700; letter-spacing: -.018em; line-height: 1.14; }
.pro-info .fine { margin-top: 10px; }
.pro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pro-tips ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pro-tips li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; }
.pro-tips strong { color: var(--ink); font-weight: 600; }
@media (min-width: 1000px) {
  .pro-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; padding-top: 80px; }
}

/* ---------- Jak pracujemy ---------- */
/* tło sekcji naprzemiennie: szarość */
.process { background: var(--mist); border-block: 1px solid var(--line); }
.process .link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 2px solid var(--v600); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2; font: 800 3rem/.9 var(--f-display); letter-spacing: -.04em;
  color: var(--plum); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.steps h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); }
.steps p { margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq-list { border-top: 2px solid var(--v600); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 16px 0; font-weight: 600; font-size: 1.125rem; line-height: 1.35; color: var(--ink); }
.faq-list summary:hover { color: var(--v600); }
.faq-list details p { padding: 0 0 24px; max-width: 40rem; }

/* ---------- Kontakt ---------- */
.contact { position: relative; padding-block: clamp(72px, 10vw, 136px); background: linear-gradient(115deg, #EEEAF5 0%, #E9EEF5 100%); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 48px; }
.contact-card { padding: 28px 26px 30px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--v600); border-radius: 6px; box-shadow: 0 30px 60px -38px rgba(36, 28, 47, .45); }
.contact-label { color: var(--ink-2); font-size: 1rem; }
.contact-phone {
  display: block; margin: 6px 0 20px; color: var(--v600); text-decoration: none;
  font: 700 clamp(2.6rem, 1.5rem + 5.2vw, 5rem)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.contact-phone:hover { color: var(--crimson); }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--ink-2); }
.contact-list dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--v600); text-decoration: underline; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 88px; align-items: end; }
  /* Numer ma zmieścić się w połowie szerokości okna (kolumna + marginesy karty). */
  .contact-phone { font-size: clamp(2.6rem, calc((100vw - 260px) / 11.7), 5rem); }
}

/* ---------- Stopka ---------- */
.footer { padding-block: 48px 28px; background: var(--v950); color: var(--on-dark-2); }
.footer a { color: #fff; }
.brand-light { color: #fff; }
.brand-light .brand-mark { stroke: var(--lilac); }
.brand-light .brand-name span { color: #F2A9CF; }
.footer-top { display: grid; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line-d); }
.footer-tagline { font: 700 1.5rem/1.2 var(--f-display); letter-spacing: -.02em; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-dark); }
.footer-nav a:hover, .footer-legal a:hover { color: var(--lilac); }
.footer-bottom { display: grid; gap: 6px; padding-top: 24px; font-size: .9375rem; }
.footer-bottom span { color: var(--on-dark-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-legal a, .linklike { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.linklike { padding: 0; background: none; border: 0; cursor: pointer; font-size: inherit; }
.linklike[hidden] { display: none; }
@media (min-width: 760px) {
  .footer-top { grid-template-columns: auto 1fr; align-items: center; column-gap: 48px; }
  .footer-nav { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .footer-top { grid-template-columns: auto 1fr auto; }
  .footer-nav { grid-column: auto; justify-content: flex-end; }
  .footer-bottom { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer-bottom > :last-child { text-align: right; }
}

/* ---------- Pasek „Zadzwoń” na telefonie ---------- */
.callbar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: linear-gradient(110deg, #6212A1, #BB004A); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -10px 24px -14px rgba(26, 6, 48, .6); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; color: #fff; font-size: 1.0625rem; text-decoration: none; }
  .callbar a:focus-visible { outline-color: #fff; outline-offset: -6px; }
  body.cookie-open .callbar { display: none; }
}

/* ---------- Cookies: pasek i okno ustawień ---------- */
.cookie {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 16px 18px 16px; background: var(--paper); color: var(--ink);
  border: 1px solid #DED6E7; border-top: 3px solid #7D329D; border-radius: 6px;
  box-shadow: 0 8px 32px rgba(40, 28, 54, .25);
  margin-bottom: env(safe-area-inset-bottom);
}
.cookie[hidden] { display: none; }
.cookie-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie h2 { font-size: 1.3rem; line-height: 1.15; letter-spacing: -.015em; }
.cookie-x { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.cookie-x:hover { background: var(--lav); }
.cookie-x .ico { width: 22px; height: 22px; }
.cookie p { margin: 4px 0 14px; font-size: .9375rem; line-height: 1.5; max-width: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; min-height: 46px; padding: 0 18px; font-size: 1rem; }
.cookie .btn-ghost-light, .cookie-dialog .btn-ghost-light { border-color: #7831A0; color: #581180; background: #F2EAFF; }
.cookie .btn-ghost-light:hover, .cookie-dialog .btn-ghost-light:hover { background: #E4D5F9; border-color: #581180; }
@media (min-width: 760px) {
  .cookie {
    left: 24px; right: 24px; bottom: 20px; max-width: 1120px; margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center;
    grid-template-areas: "head actions" "text actions";
    padding: 16px 64px 16px 24px;
  }
  .cookie-head { grid-area: head; justify-content: flex-start; }
  .cookie p { grid-area: text; margin: 4px 0 0; }
  .cookie-actions { grid-area: actions; justify-content: flex-end; max-width: 380px; }
  .cookie-actions .btn { flex: 0 1 auto; }
  .cookie-x { position: absolute; top: 10px; right: 10px; margin: 0; }
}

.cookie-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  padding: 0; background: var(--paper); color: var(--ink); border: 1px solid #DED6E7; border-top: 3px solid #7D329D; border-radius: 8px;
  overflow: auto; --focus: #1784DC;
}
.cookie-dialog::backdrop { background: rgba(35, 28, 44, .6); }
.cookie-dialog form { padding: 24px 24px 22px; }
.cookie-dialog h2 { font-size: 1.6rem; line-height: 1.15; }
.cookie-dialog p { margin-top: 10px; font-size: .9688rem; max-width: none; }
.cookie-dialog .dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cookie-cats { margin-top: 18px; }
.switch { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.switch:last-of-type { border-bottom: 1px solid var(--line); }
.switch input {
  appearance: none; -webkit-appearance: none; position: relative; flex: none;
  width: 52px; height: 30px; margin: 2px 0 0; border-radius: 999px; background: #7B6E88; cursor: pointer; transition: background-color .2s;
}
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--v600); }
.switch input:checked::after { transform: translateX(22px); }
.switch input:disabled { opacity: .65; cursor: not-allowed; }
.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch-text strong { display: block; color: var(--ink); line-height: 1.3; }
.switch-text span { display: block; margin-top: 3px; font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.cookie-file { margin-top: 16px; padding: 12px 14px; background: var(--lav); border-radius: 6px; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.cookie-file code { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.cookie-status { min-height: 1.5em; margin-top: 12px; font-weight: 600; color: var(--v600); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dialog-actions .btn { flex: 1 1 auto; min-height: 46px; padding: 0 18px; font-size: 1rem; }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- Strony tekstowe (polityka, 404) ---------- */
.doc .wrap { width: min(100% - var(--gutter) * 2, 46rem); }
.doc-wrap { padding-block: 48px 104px; }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.022em; margin: 16px 0 16px; }
.doc h2 { margin: 48px 0 10px; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.8rem); line-height: 1.2; letter-spacing: -.02em; }
.doc p { margin-top: 12px; max-width: 65ch; }
.doc-date { color: var(--ink-2); }
.doc-back { margin: 0; }
.table-scroll { overflow-x: auto; }
.doc-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9688rem; min-width: 34rem; }
.doc-table th, .doc-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { border-bottom: 2px solid var(--v600); font-size: .875rem; color: var(--ink-2); }
.doc-table code { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.doc .btn { margin-top: 8px; }
.notfound .hero-actions { margin-top: 28px; }
.nf-code { margin: 0; font: 800 clamp(5rem, 3rem + 10vw, 9rem)/1 var(--f-display); letter-spacing: -.05em; max-width: none; color: var(--plum); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Ograniczony ruch i druk ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .header, .callbar, .cookie, .cookie-dialog, .footer-legal { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
}
