/* firmowenarzedzia.pl — Ranking CRM dla firm 2026 */

/* ---------- Fonty ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Zmienne ---------- */
:root {
  --ink: #1D2340;
  --ink-2: #3B4260;
  --ink-3: #545B73;
  --ground: #EEF0F4;
  --surface: #FFFFFF;
  --surface-2: #F6F7FA;
  --line: #D5D9E3;
  --line-soft: #E6E8EE;
  --pill-line: #C3C8D6;
  --highlight: #FFF4BF;
  --highlight-strong: #FFE45C;
  --highlight-line: #E8D98A;
  --link: #2B44B0;
  --plus: #1F7A55;
  --minus: #A3461F;
  --footer-text: #C9CEDD;

  --wrap: 1200px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

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

/* ---------- Typografia ---------- */
.h-section {
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 24px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.btn:hover { color: #fff; background: #2A3157; }
.link-strong { color: var(--ink); font-weight: 600; font-size: 17px; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* ---------- Logo ---------- */
.logo { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; white-space: nowrap; }
.logo span { font-weight: 300; }
.logo .tld { color: var(--ink-3); }

/* ---------- Nagłówek ---------- */
.site-header { background: var(--surface); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}
.main-nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 16px; }
.main-nav a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Baner ---------- */
.banner {
  background: var(--highlight);
  border-top: 1px solid var(--highlight-line);
  border-bottom: 1px solid var(--highlight-line);
  overflow: hidden;
}
.banner .wrap {
  position: relative;
  min-height: 150px; padding-top: 16px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.banner__halo,
.banner__ring { position: absolute; top: 50%; border-radius: 50%; pointer-events: none; }
.banner__halo { left: -36px; width: 200px; height: 200px; margin-top: -100px; background: var(--highlight-strong); }
.banner__ring { left: -70px; width: 268px; height: 268px; margin-top: -134px; border: 2px solid var(--highlight-strong); }
.banner__bars { position: absolute; right: 0; top: 50%; margin-top: -75px; pointer-events: none; }
.banner__trophy, .banner__text, .banner .btn { position: relative; }
.banner__trophy { flex: none; width: 96px; height: 96px; }
.banner__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.banner__title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.banner__sub { font-size: 18px; line-height: 1.35; color: var(--ink-2); }
.banner .btn { flex: none; font-size: 18px; }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 72px;
}
.hero__intro { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.hero h1 { font-size: clamp(44px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; }
.hero__lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }

.summary { background: var(--surface-2); border-radius: var(--radius-lg); padding: 28px 28px 20px; }
.summary h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 8px; }
.summary li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid #DDE1EA;
}
.summary__num { font-size: 26px; font-weight: 300; color: var(--ink-3); }
.summary__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.summary__name { display: flex; align-items: center; gap: 8px; }
.summary__name a { color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.summary__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.summary__name .mark {
  background: linear-gradient(transparent 52%, var(--highlight-strong) 52%, var(--highlight-strong) 92%, transparent 92%);
}
.summary__short { font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.summary__price { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* ---------- Zwycięzca ---------- */
.winner { background: var(--highlight); }
.winner .wrap { display: flex; flex-direction: column; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.winner__head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px; align-items: end;
}
.winner__title { display: flex; align-items: flex-end; gap: 24px; }
.winner__title svg { flex: none; width: 104px; height: 104px; }
.winner__title h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
.winner__head .lead { font-size: 18px; max-width: 34em; }

.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; }
.reasons h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.reasons p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* Galeria */
.gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery h3 { font-size: 24px; letter-spacing: -0.02em; font-weight: 700; }
.window { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--highlight-line); }
.window__bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-3);
}
.window__dots { display: flex; gap: 6px; }
.window__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window__view {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--surface-2);
}
.window__view img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery figcaption { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.gallery figcaption strong { color: var(--ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.thumb {
  font: inherit; color: var(--ink); background: var(--surface);
  padding: 8px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; min-height: 44px; text-align: left;
}
.thumb[aria-pressed="true"] { border-color: var(--ink); }
.thumb__img {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; border-radius: 4px; background: var(--surface-2); overflow: hidden; padding: 6px;
}
.thumb__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.thumb__label { display: block; padding-top: 8px; font-size: 14px; font-weight: 600; }

/* ---------- Tabele ---------- */
.table-box { background: var(--surface); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table caption { text-align: left; padding: 20px 24px 4px; font-size: 18px; font-weight: 700; }
.table thead th { text-align: left; color: var(--ink-3); font-size: 14px; font-weight: 600; padding: 14px 16px; }
.table th, .table td { padding: 16px; vertical-align: middle; }
.table tr > :first-child { padding-left: 24px; }
.table tr > :last-child { padding-right: 24px; }
.table tbody tr { border-top: 1px solid var(--line-soft); }
.table tbody th { text-align: left; }
.table .is-top { background: var(--highlight); }
.table-note { font-size: 14px; color: var(--ink-3); line-height: 1.5; max-width: 60em; }

.plans { min-width: 760px; }
.plans tbody th { font-size: 17px; }
.plans .price { font-weight: 700; }
.plans .desc { color: var(--ink-2); line-height: 1.45; }
.plans-note { padding: 4px 24px 20px; font-size: 14px; color: var(--ink-3); }

.compare { min-width: 1000px; }
.compare td, .compare th { padding-top: 20px; padding-bottom: 20px; }
.compare .rank { font-size: 24px; font-weight: 300; color: var(--ink-3); }
.compare .name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.compare .best { color: var(--ink-2); max-width: 300px; line-height: 1.45; }
.compare .price { display: flex; flex-direction: column; gap: 3px; }
.compare .price strong { white-space: nowrap; }
.compare .price span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.compare .score { font-weight: 700; }
.compare [hidden] { display: none; }

.scores { min-width: 760px; }
.scores td, .scores th { padding-top: 14px; padding-bottom: 14px; }
.scores tbody th { font-weight: 700; }
.scores .total { font-weight: 700; color: var(--ink); }

/* ---------- Porównanie ---------- */
.compare-section .wrap { display: flex; flex-direction: column; gap: 24px; padding-top: 80px; padding-bottom: 24px; }
.compare-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.compare-section__intro { display: flex; flex-direction: column; gap: 8px; max-width: 36em; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font: inherit; font-size: 15px; font-weight: 600;
  padding: 10px 16px; min-height: 44px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--pill-line);
}
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Recenzje ---------- */
.reviews { background: var(--surface); margin-top: 56px; }
.reviews .wrap { padding-top: 80px; padding-bottom: 80px; }
.reviews .h-section { margin-bottom: 24px; }
.review {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px 40px; padding: 36px 0; border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.review__main { display: flex; flex-direction: column; gap: 10px; }
.review__title { display: flex; align-items: baseline; gap: 14px; }
.review__num { font-size: 40px; font-weight: 300; color: var(--ink-3); line-height: 1; }
.review h3 { font-size: 28px; letter-spacing: -0.03em; font-weight: 700; }
.review__verdict { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.review__meta { font-size: 15px; color: var(--ink-3); }
.review__meta strong { color: var(--ink); }
.review h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.review ul { display: flex; flex-direction: column; gap: 8px; }
.review li { display: flex; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.review li svg { flex: none; margin-top: 4px; }
.review__shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.shot { display: flex; flex-direction: column; gap: 8px; }
.shot__img {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; padding: 10px;
  background: var(--surface-2); overflow: hidden;
}
.shot__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.shot figcaption { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.shot figcaption span { color: var(--ink-3); }

/* ---------- Metodologia ---------- */
.method .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px 64px; padding-top: 80px; padding-bottom: 80px;
}
.method__intro { display: flex; flex-direction: column; gap: 14px; }
.criteria > div {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.criteria > div:last-child { border-bottom: 1px solid var(--line); }
.criteria > div { grid-template-rows: auto auto; row-gap: 4px; }
.criteria .weight { grid-column: 1; grid-row: 1 / span 2; font-size: 22px; font-weight: 300; }
.criteria dt { grid-column: 2; grid-row: 1; font-weight: 700; font-size: 17px; }
.criteria dd.desc { grid-column: 2; grid-row: 2; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.method .table-box { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); }
.faq .wrap { max-width: 820px; padding-top: 80px; padding-bottom: 80px; }
.faq .h-section { margin-bottom: 32px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 32px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { flex: none; transition: transform .2s ease; }
.faq details[open] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .faq .chev { transition: none; } }
.faq details p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: var(--footer-text); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding-top: 40px; padding-bottom: 40px; font-size: 14px; line-height: 1.55;
}
.site-footer p { max-width: 46em; }
.site-footer .logo { color: #fff; font-size: 18px; }
.site-footer .logo .tld { color: var(--footer-text); }

/* ---------- Telefon ---------- */
@media (max-width: 900px) {
  .method .wrap, .winner__head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .banner__bars { opacity: 0.5; }
  .banner__trophy { width: 72px; height: 72px; }
  .winner__title { flex-direction: column; align-items: flex-start; gap: 16px; }
  .winner__title svg { width: 80px; height: 80px; }
  .summary { padding: 20px 16px 12px; }
  .faq summary { font-size: 18px; }
}
