/* ==========================================================================
   Klima-Serwis Wrocław — arkusz stylów
   Jasna baza (biel + chłodna szarość), ciemne pasy granatowe dla kontrastu,
   akcenty z logo: błękit (zimno) + czerwień (ciepło). Kolory i rozmiary zmieniasz w :root.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f2f6fa;
  --surface: #ffffff;
  --line: #e1e8ef;

  --ink: #0c1a2b;             /* ciemny granat — tekst i ciemne sekcje */
  --ink-2: #13263b;
  --text: #1d2b3a;
  --text-2: #4a5a6b;
  --muted: #6b7a8a;

  --accent: #1f78c4;          /* błękit z logo — przyciski, ikony */
  --accent-strong: #1663a6;
  --hot: #e2332d;             /* czerwień z logo — drobne akcenty */
  --brand-line: linear-gradient(90deg, #3a82c4, #3a82c4 45%, #e2332d 55%, #e2332d);
  --accent-soft: #e5f3fc;
  --ice: #6fd3ff;             /* jasny błękit na ciemnym tle */

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 76px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", var(--font);

  --shadow-sm: 0 1px 2px rgba(12, 26, 43, .06), 0 4px 14px rgba(12, 26, 43, .05);
  --shadow: 0 24px 60px -24px rgba(12, 26, 43, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ikony ze sprite'a */
svg:has(> use) { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

/* --- Przyciski ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.4em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(10, 132, 214, .7); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 1.05em 1.6em; font-size: 1.02rem; }
.btn--sm { padding: .7em 1.1em; font-size: .92rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow--light { color: var(--ice); }

/* --- Nagłówek ------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12, 26, 43, .4); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand-line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { width: 58px; height: 58px; border-radius: 50%; background: #fff; }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.logo__text b { color: var(--accent); font-weight: 800; }
.logo__text small { display: block; font-family: var(--font); font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { padding: 8px 14px; font-size: .95rem; font-weight: 500; color: var(--text-2); border-radius: 999px; transition: color .2s, background .2s; }
.nav__link:hover { color: var(--ink); background: var(--bg-alt); }
.nav__link.is-active { color: var(--accent); }
.nav .btn { margin-left: 12px; }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding: calc(var(--header-h) + 56px) 0 72px;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, #f7fbfe, #fff);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 3.9rem); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-2); font-size: .95rem; font-weight: 500; }
.hero__tags li { display: inline-flex; align-items: center; gap: 8px; }
.hero__tags svg { color: var(--accent); stroke-width: 2.6; width: 1.1em; height: 1.1em; }

.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero__badge {
  position: absolute; left: -24px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 14px 18px 14px 14px;
  box-shadow: var(--shadow); font-size: .9rem; line-height: 1.35; color: var(--text-2);
}
.hero__badge b { color: var(--ink); }
.hero__badge-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }

/* --- Pasek atutów (ciemny) ------------------------------------------------ */
.strip { background: var(--ink); color: #c9d6e3; }
.strip__item:nth-child(4) > svg { color: #ff7a70; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { display: flex; gap: 14px; align-items: flex-start; padding: 30px 24px; border-left: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; line-height: 1.45; }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__item > svg { width: 30px; height: 30px; color: var(--ice); }
.strip__item b { display: block; color: #fff; font-size: 1rem; margin-bottom: 3px; }

/* --- Sekcje --------------------------------------------------------------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head p { color: var(--text-2); font-size: 1.08rem; }

/* Usługi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.service__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.service__icon svg { width: 26px; height: 26px; }
.service p { color: var(--text-2); font-size: .97rem; margin: 0; }

/* Czynniki — ciemny pas ze zdjęciem */
.band { position: relative; overflow: hidden; background: var(--ink); color: #c9d6e3; padding: 96px 0; isolation: isolate; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -1; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 25%, rgba(12, 26, 43, .55)); }
.band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.band h2 { color: #fff; }
.band p { font-size: 1.08rem; max-width: 34em; margin: 0; }
.gas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gas__card {
  padding: 30px 26px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gas__card--new { background: rgba(111, 211, 255, .12); border-color: rgba(111, 211, 255, .35); }
.gas__name { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem); color: #fff; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; }
.gas__card--new .gas__name { color: var(--ice); }
.gas__desc { font-size: .95rem; }

/* Pojazdy */
.vehicles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vehicle { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.vehicle img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vehicle__body { position: relative; padding: 34px 26px 28px; }
.vehicle__icon { position: absolute; top: -26px; left: 26px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--ice); box-shadow: var(--shadow-sm); }
.vehicle__icon svg { width: 26px; height: 26px; }
.vehicle p { color: var(--text-2); font-size: .97rem; margin: 0; }

/* Objawy — zdjęcie + lista */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 10 / 11; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.symptoms { display: grid; gap: 12px; margin: 8px 0 22px; }
.symptoms li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: var(--bg-alt); border-radius: var(--radius-sm); font-weight: 500; color: var(--ink); }
.symptoms svg { color: var(--accent); width: 24px; height: 24px; }

/* Kroki */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step__no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.step p { color: var(--text-2); font-size: .97rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-2); }

/* Kontakt — ciemny */
.contact { background: var(--ink); color: #c9d6e3; padding: 104px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: stretch; }
.contact h2 { color: #fff; }
.contact__phone {
  display: inline-flex; align-items: center; gap: 14px; margin: 14px 0 34px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); color: #fff; letter-spacing: -.01em;
  transition: color .2s;
}
.contact__phone svg { color: var(--ice); width: .9em; height: .9em; }
.contact__phone:hover { color: var(--ice); }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { color: var(--ice); width: 24px; height: 24px; margin-top: 2px; }
.contact__list a { color: #fff; text-decoration: underline; text-decoration-color: rgba(111, 211, 255, .5); text-underline-offset: 4px; }
.contact__list a:hover { color: var(--ice); }
.contact__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Stopka */
.footer { background: #08121e; color: #8496a8; padding: 30px 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer p { margin: 0; }
.logo--small .logo__img { width: 44px; height: 44px; }
.logo--small .logo__text { color: #fff; font-size: 1.1rem; }

/* Pasek „Zadzwoń” — tylko na telefonach */
.callbar { display: none; }

/* --- Animacje wejścia ----------------------------------------------------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service:hover { transform: none; }
}

/* --- Responsywność -------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(12, 26, 43, .3);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s, visibility .25s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 14px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; padding: 1em; font-size: 1rem; }

  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
  .hero__grid, .band__grid, .split, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media img { aspect-ratio: 16 / 10; }
  .hero__badge { left: 16px; bottom: 16px; }
  .vehicles { grid-template-columns: 1fr; max-width: 560px; }
  .split__media { order: 2; }
  .split__media img { aspect-ratio: 4 / 3; }
  .section, .contact { padding: 80px 0; }
  .band { padding: 80px 0; }
  .band::after { background: linear-gradient(180deg, rgba(12, 26, 43, .92), rgba(12, 26, 43, .8)); }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .logo__img { width: 48px; height: 48px; }
  .logo__text { font-size: 1.18rem; }
  .hero__cta .btn { width: 100%; }
  .hero__media img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .hero__badge { left: 12px; bottom: 12px; padding: 10px 14px 10px 10px; font-size: .82rem; }
  .hero__badge-icon { width: 36px; height: 36px; }
  .strip__grid { grid-template-columns: 1fr; padding: 8px 0; }
  .strip__item { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .strip__item:first-child { border-top: 0; }
  .services, .steps { grid-template-columns: 1fr; gap: 14px; }
  .service { padding: 22px; }
  .gas { grid-template-columns: 1fr; }
  .section, .contact, .band { padding: 64px 0; }
  .section__head { margin-bottom: 34px; }
  .symptoms li { padding: 12px 14px; font-size: .95rem; }
  .contact__map, .contact__map iframe { min-height: 300px; }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .footer__inner { flex-direction: column; text-align: center; }

  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    height: 60px; padding-bottom: env(safe-area-inset-bottom);
    background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem;
    box-shadow: 0 -8px 24px -10px rgba(12, 26, 43, .45);
  }
}
