/* ==========================================================================
   Rivoko – style główne
   Akcent marki: --accent #F34B4B (tekst w kolorze akcentu: --accent-text)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-softer: #fafbfc;
  --ink: #1b1e23;
  --ink-2: #4a515b;
  --ink-3: #7b828c;
  --line: #e3e6ea;
  --accent: #F34B4B;
  --accent-hover: #DE3838;
  --accent-soft: #FEEEEE;
  --accent-text: #C92A2A; /* ciemniejszy odcień dla tekstu – kontrast WCAG AA */
  --accent-ink: #ffffff;
  --danger: #c4302b;
  --danger-soft: #fdf1f0;
  --ok: #18794e;
  --ok-soft: #eaf6ef;
  --todo: #fff3c4;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 12px 32px -14px rgba(16, 24, 40, .2);
  --shadow-lg: 0 30px 70px -28px rgba(16, 24, 40, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 clamp(32px, 4vw, 56px); } }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

mark.todo {
  background: var(--todo);
  color: #6b4e00;
  padding: 0 .3em;
  border-radius: 4px;
  font-weight: 600;
  font-size: .92em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- typografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text);
}
h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; font-weight: 700; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-3); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }

/* ---------- przyciski ---------- */
.btn {
  --_bg: var(--ink); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  background: var(--_bg); color: var(--_fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease),
              box-shadow .25s var(--ease), transform .15s var(--ease);
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: scale(.965); }
.btn--primary { --_bg: var(--accent); --_fg: var(--accent-ink); }
.btn--primary:hover { --_bg: var(--accent-hover); box-shadow: 0 12px 28px -12px rgba(243, 75, 75, .6); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--light { --_bg: #fff; --_fg: var(--ink); }
.btn--outline-light { --_bg: transparent; --_fg: #fff; border-color: rgba(255, 255, 255, .4); }
.btn--outline-light:hover { border-color: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.btn .arrow, .link-arrow .arrow { transition: transform .25s var(--ease); flex: none; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--accent-text); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
  view-transition-name: site-header;
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-scrolled .header-inner { height: 62px; }
.site-header.is-solid { background: #fff; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; flex: none; }
.logo-svg { height: 30px; width: auto; color: var(--ink); transition: height .3s var(--ease); }
.site-header.is-scrolled .logo-svg { height: 26px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }

.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: .9375rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.sub {
  list-style: none;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.sub a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--ink-2); }
.sub a:hover, .sub a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .chev, .has-sub:focus-within .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); }
.lang a {
  padding: 5px 9px; border-radius: 999px; font-size: .8125rem; font-weight: 700; text-decoration: none; color: var(--ink-3);
  transition: color .2s, background-color .2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }

.burger {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--bg-soft); cursor: pointer;
  position: relative;
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); content: "";
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 21px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

@media (max-width: 959px) {
  .header-actions { margin-left: auto; }
  .burger { display: block; }
  .header-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    padding: calc(var(--header-h) + 8px) 20px 32px;
    background: #fff;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { display: flex; padding: 16px 4px; font-size: 1.25rem; font-weight: 700; color: var(--ink); background: none !important; }
  .nav-link .chev { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; min-width: 0; }
  .sub a { font-size: 1.0625rem; padding: 8px 4px; }
  .nav-mobile-extra { display: grid; gap: 12px; margin-top: 24px; }
}
@media (max-width: 420px) {
  .lang a { padding: 5px 7px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(64px, 9vw, 112px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute; right: -12vw; top: -10vw; width: 58vw; max-width: 760px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(243, 75, 75, .16), rgba(243, 75, 75, 0) 62%);
  will-change: transform;
}
.hero-shape--2 { right: auto; left: -18vw; top: 40%; width: 40vw; background: radial-gradient(circle, rgba(243, 75, 75, .08), transparent 60%); }
.hero-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); align-items: start; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: start; } .hero-copy { padding-top: 48px; } }
@media (min-width: 760px) and (max-width: 1099px) { .hero-form { max-width: 640px; } }
.hero-copy { display: grid; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 600; font-size: .9688rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.tick svg { width: 12px; height: 12px; }
.hero-form { scroll-margin-top: calc(var(--header-h) + 16px); }

.page-hero {
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 88px);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  position: relative; overflow: hidden;
}
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.1fr .9fr; } }
.page-hero .hero-copy { gap: 20px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }

/* ---------- placeholder zdjęć ---------- */
.ph {
  position: relative; display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; width: 100%;
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, rgba(27, 30, 35, .035) 0 12px, transparent 12px 24px),
    var(--bg-soft);
  border: 1.5px dashed #cfd3da;
  color: var(--ink-3); font-weight: 700; font-size: .9375rem; padding: 24px;
}
.ph small { display: block; font-weight: 500; margin-top: 6px; }
.ph--wide { aspect-ratio: 16 / 9; }

/* ---------- karty / siatki ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card--link { text-decoration: none; }
.card--link:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--ink-2); }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card-icon svg { width: 26px; height: 26px; }
.section--soft .card { border-color: transparent; }

.steps { counter-reset: step; }
.step { padding: 28px; border-radius: var(--r); background: #fff; display: grid; gap: 12px; align-content: start; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .9375rem;
}
.step p { color: var(--ink-2); }

.extra {
  margin-top: 20px; display: grid; gap: 20px; align-items: center;
  padding: 28px; border-radius: var(--r); background: var(--accent-soft);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.extra p { color: var(--ink-2); margin-top: 6px; }
@media (min-width: 760px) { .extra { grid-template-columns: auto 1fr auto; } }

.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.why-card { display: flex; flex-direction: column; gap: 6px; }
.why-top { margin-bottom: 14px; }
.why-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); transition: background-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease); }
.why-ico svg { width: 24px; height: 24px; }
.why-card:hover .why-ico { background: var(--accent); color: #fff; transform: rotate(-6deg); }
.why-card h3 { font-size: 1.125rem; }
.why-card p { color: var(--ink-2); font-size: .9688rem; }
.note {
  padding: 24px; border-radius: var(--r); background: var(--bg-soft); color: var(--ink-2);
  border-left: 4px solid var(--accent);
}
.note strong { color: var(--ink); display: block; margin-bottom: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
a.chip:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip .arrow { width: 14px; height: 14px; transition: transform .25s var(--ease); }
a.chip:hover .arrow { transform: translateX(3px); }

.checklist { list-style: none; display: grid; gap: 14px; }
@media (min-width: 720px) { .checklist--2 { grid-template-columns: 1fr 1fr; gap: 16px 32px; } }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist .tick { margin-top: 3px; }

.two-col { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--accent-text); }
.faq-icon { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--bg-soft); transition: background-color .3s, transform .35s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--accent); color: #fff; transform: rotate(180deg); }
.faq-item.is-open .faq-icon::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 52px 26px 0; color: var(--ink-2); }
.faq-a a { color: var(--accent-text); }
.js .faq-item:not(.is-open) .faq-a { grid-template-rows: 0fr; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); background: var(--ink); color: #fff;
  padding: clamp(40px, 6vw, 72px);
  display: grid; gap: 28px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 75, 75, .55), transparent 65%); pointer-events: none;
  will-change: transform;
  animation: cta-drift 10s ease-in-out infinite;
}
/* świecenie powoli przesuwa się w kółko, bez zmiany koloru */
@keyframes cta-drift {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-40px, 24px); }
  50%      { transform: translate(-16px, 56px); }
  75%      { transform: translate(20px, 28px); }
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: rgba(255, 255, 255, .72); margin-top: 10px; font-size: 1.125rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- formularz ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow-lg);
}
.form-card h2, .form-card .form-title { font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 800; }
.form-sub { color: var(--ink-2); margin: 6px 0 22px; font-size: .9688rem; }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 520px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }

.field { position: relative; }
.field input, .field select {
  width: 100%; height: 58px; padding: 22px 14px 6px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-size: 1rem; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%237b828c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.field input[type="date"] { min-width: 0; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field label {
  position: absolute; left: 15px; top: 18px; max-width: calc(100% - 30px);
  color: var(--ink-3); font-size: 1rem; pointer-events: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform-origin: left top;
  transition: transform .2s var(--ease), color .2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field--static label { transform: translateY(-10px) scale(.78); }
.field input:focus + label, .field select:focus + label { color: var(--accent-text); }
.field input:hover, .field select:hover { border-color: #c9ced6; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-error { font-size: .8125rem; color: var(--danger); font-weight: 600; min-height: 0; margin-top: 4px; display: none; }
.is-invalid .field-error { display: block; animation: err-in .25s var(--ease); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); background: var(--danger-soft); }
.field.is-invalid label { color: var(--danger); }
.is-invalid.shake { animation: shake .35s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes err-in { from { opacity: 0; transform: translateY(-3px); } }

.seg { border: 0; padding: 0; margin: 16px 0 0; }
.seg legend { font-size: .875rem; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
.seg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; background: var(--bg-soft); border-radius: 14px; }
.seg-opts label { position: relative; }
.seg-opts input { position: absolute; opacity: 0; inset: 0; }
.seg-opts span {
  display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px; border-radius: 10px;
  font-size: .875rem; font-weight: 700; color: var(--ink-2); cursor: pointer; line-height: 1.2;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg-opts input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.seg-opts input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: .875rem; color: var(--ink-2); line-height: 1.5; }
.check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px;
  border: 1.5px solid #c9ced6; background: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .2s var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:active { transform: scale(.9); }
.check a { color: var(--accent-text); }
.check-wrap.is-invalid .check input { border-color: var(--danger); background: var(--danger-soft); }

.addon {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line);
  transition: border-color .2s, background-color .2s;
}
.addon:has(input:checked) { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.addon .check { font-size: .9688rem; color: var(--ink); }
.addon small { display: block; color: var(--ink-3); font-size: .8125rem; }
.form-consent { margin-top: 14px; }
.form-actions { margin-top: 18px; display: grid; gap: 12px; }
.form-note { font-size: .8125rem; color: var(--ink-3); text-align: center; }
.form-alt { font-size: .875rem; color: var(--ink-2); text-align: center; padding-top: 14px; border-top: 1px solid var(--line); }
.form-alt a { color: var(--accent-text); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .875rem; color: var(--danger); font-weight: 600; text-align: center; }

.form-success { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0; animation: err-in .5s var(--ease); }
.form-success .ok-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.form-success .ok-icon svg { width: 30px; height: 30px; }
.form-success p { color: var(--ink-2); }

.form-section { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .form-section { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.form-section .section-head { margin-bottom: 0; }

/* ---------- cennik ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.price-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.price-table th, .price-table td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--bg-softer); }
.price-table tbody tr { transition: background-color .2s; }
.price-table tbody tr:hover { background: var(--bg-softer); }
.price-table tbody tr:last-child td, .price-table tbody tr:last-child th { border-bottom: 0; }
.price-table tbody th { font-weight: 700; }
.price-table td:nth-child(2) { font-weight: 700; white-space: nowrap; }
.price-table td:last-child { color: var(--ink-2); }

/* ---------- kontakt ---------- */
.channels { display: grid; gap: 12px; }
@media (min-width: 560px) { .channels { grid-template-columns: 1fr 1fr; } }
.channel {
  display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.channel .card-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.channel .card-icon svg { width: 22px; height: 22px; }
.channel strong { display: block; }
.channel span { color: var(--ink-3); font-size: .875rem; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list strong { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 2px; }

/* ---------- prose (polityka) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; }
.prose a { color: var(--accent-text); }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); margin-top: clamp(72px, 10vw, 128px); }
.site-footer.no-gap { margin-top: 0; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) and (max-width: 1099px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1fr auto auto auto; column-gap: clamp(48px, 6vw, 96px); } }
.footer-grid h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.footer-grid a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.footer-grid a:hover { color: var(--ink); }
.footer-about p { color: var(--ink-2); margin-top: 14px; max-width: 30em; font-size: .9688rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .8125rem; color: var(--ink-3); }
.linklike { background: none; border: 0; padding: 0; color: var(--ink-2); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--ink); }

/* ---------- pływający pasek (mobile) ---------- */
.float-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.float-bar.is-visible { transform: none; }
.float-bar .btn { min-height: 46px; }
.btn--wa { --_bg: #1fa855; --_fg: #fff; }
@media (min-width: 900px) { .float-bar { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ---------- cookies ---------- */
.cookie {
  position: fixed; z-index: 150; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 460px; margin-left: auto;
  background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  animation: cookie-in .5s var(--ease);
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(24px); } }
.cookie h2 { font-size: 1.0625rem; margin-bottom: 6px; }
.cookie p { font-size: .875rem; color: var(--ink-2); }
.cookie p a { color: var(--accent-text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { flex: 1 1 auto; min-height: 42px; font-size: .875rem; padding: 0 14px; }
.cookie-settings { display: none; gap: 10px; margin-top: 14px; }
.cookie.show-settings .cookie-settings { display: grid; }
.cookie.show-settings [data-cookie="settings"] { display: none; }
.cookie:not(.show-settings) [data-cookie="save"] { display: none; }
.cookie-opt { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.cookie-opt .check { color: var(--ink); font-weight: 700; font-size: .9375rem; }
.cookie-opt small { display: block; font-weight: 500; color: var(--ink-3); font-size: .8125rem; }
.cookie-opt input:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- animacje wejścia ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .6s var(--ease) both; }
.js .hero .reveal-d1, .js .page-hero .reveal-d1 { animation-delay: .06s; }
.js .hero .reveal-d2, .js .page-hero .reveal-d2 { animation-delay: .12s; }
.js .hero .reveal-d3, .js .page-hero .reveal-d3 { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.reveal-d1 { transition-delay: .06s !important; }
.reveal-d2 { transition-delay: .12s !important; }
.reveal-d3 { transition-delay: .18s !important; }

/* płynne przejścia między stronami (View Transitions API, bez JS) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-shape { transform: none !important; }
}

/* numer telefonu w menu */
.nav-phone { color: var(--ink); font-weight: 700; }
.nav-phone svg { width: 16px; height: 16px; color: var(--accent); }

/* menu wyśrodkowane, języki + przycisk po prawej (desktop) */
@media (min-width: 960px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .header-inner .logo { justify-self: start; }
  .nav { margin-left: 0; }
  .header-actions { justify-self: end; }
  .header-actions .lang { margin-right: 16px; }
}

/* duży napis RIVOKO w stopce: litery lekko się kołyszą, reagują na kursor */
.site-footer .container { container-type: inline-size; }
.footer-wordmark {
  display: flex; justify-content: center; align-items: flex-end; gap: .035em;
  margin-top: clamp(72px, 10vw, 150px);
  height: .88em; clip-path: inset(-60% -5% 0 -5%);
  font-family: "Anton", Impact, "Arial Narrow", sans-serif;
  font-size: 33.8cqw; line-height: 1.1;
  color: var(--ink); user-select: none;
}
.wm-l {
  display: inline-block; transform-origin: 50% 100%; margin-bottom: -.17em;
  animation: wm-sway 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.9s);
  animation-duration: calc(5s + var(--i) * .45s);
}
.wm-l > span {
  display: inline-block; transform-origin: 50% 100%;
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1), color .7s ease;
}
@keyframes wm-sway {
  0%   { transform: rotate(-2.2deg) translateY(2%); }
  100% { transform: rotate(2.2deg) translateY(-1%); }
}
@media (hover: hover) {
  .wm-l:hover > span { color: var(--accent); transform: translateY(-4%) rotate(-3.5deg); }
  .wm-l:has(+ .wm-l:hover) > span { color: var(--accent); transform: translateY(-2%) rotate(-1.8deg); }
  .wm-l:hover + .wm-l > span { color: var(--accent); transform: translateY(-2%) rotate(1.8deg); }
}
.footer-wordmark + .footer-bottom { margin-top: 0; }
.to-top { color: var(--ink-2); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; white-space: nowrap; transition: color .2s; }
.to-top:hover { color: var(--accent-text); }
.site-footer { overflow: clip; }

/* usługi: lista wierszy zamiast kart */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list > li { border-bottom: 1px solid var(--line); }
.svc-row {
  position: relative; isolation: isolate; display: grid; align-items: center; gap: 6px 20px;
  grid-template-columns: 40px 1fr 48px; grid-template-areas: "num title go" ". desc go";
  padding: 26px 0; text-decoration: none; color: var(--ink);
}
.svc-row::before {
  content: ""; position: absolute; inset: 6px -20px; border-radius: 18px; z-index: -1;
  background: var(--accent-soft); opacity: 0; transform: scaleY(.85);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.svc-num { grid-area: num; font-size: .875rem; font-weight: 800; color: var(--ink-3); letter-spacing: .04em; }
.svc-title { grid-area: title; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; transition: color .3s; }
.svc-tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.svc-desc { grid-area: desc; color: var(--ink-2); }
.svc-go {
  grid-area: go; justify-self: end; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .45s var(--ease);
}
.svc-go svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.1fr) 56px; grid-template-areas: "num title desc go"; padding: 34px 0; gap: 32px; }
  .svc-go { width: 56px; height: 56px; }
}
.svc-row:hover::before, .svc-row:focus-visible::before { opacity: 1; transform: none; }
.svc-row:hover .svc-title { color: var(--accent-text); }
.svc-row:hover .svc-go, .svc-row:focus-visible .svc-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
.svc-row:hover .svc-tag { background: #fff; }
.muted a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* założyciel */
.founder { margin: 0; display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1040px; margin-inline: auto; }
@media (min-width: 760px) { .founder { grid-template-columns: minmax(200px, 320px) 1fr; } }
.founder-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: #fff; }
@media (max-width: 759px) { .founder-photo { max-width: 260px; } }
.founder-quote { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; color: var(--ink); margin: 0; }
.founder-sign { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.founder-sign strong { font-size: 1.0625rem; }
.founder-sign span { color: var(--ink-3); font-size: .9375rem; }

/* ---------- mobile: poprawki ---------- */
h1, h2, h3 { overflow-wrap: break-word; }
.hero-grid > *, .page-hero-grid > *, .cta-band > *, .founder > * { min-width: 0; }
.lang a { display: inline-grid; place-items: center; min-height: 36px; min-width: 36px; }
@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 32px 22px; }
}
@media (max-width: 420px) {
  .header-inner .logo-svg { height: 24px; }
  .site-header.is-scrolled .logo-svg { height: 22px; }
  .lang a { min-width: 34px; padding: 5px 6px; }
  .header-actions { gap: 8px; }
}
/* cennik jako karty na telefonie */
@media (max-width: 640px) {
  .price-table { min-width: 0; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .price-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table td:nth-child(2) { color: var(--accent-text); text-align: right; }
  .price-table td:last-child { grid-column: 1 / -1; font-size: .9375rem; }
}
@media (max-width: 360px) {
  .header-inner { gap: 10px; }
  .header-inner .logo-svg, .site-header.is-scrolled .logo-svg { height: 20px; }
  .lang a { min-width: 32px; min-height: 34px; padding: 4px 5px; }
  .burger { width: 40px; height: 40px; }
  .burger span, .burger span::before, .burger span::after { left: 11px; }
}

/* ---------- zdjęcie w hero podstrony ---------- */
.hero-photo { display: block; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- poradnik ---------- */
.article-wrap > * { max-width: 760px; }
.article h3 { font-size: 1.125rem; margin: 24px 0 8px; }
.article ol { padding-left: 1.3em; display: grid; gap: 6px; margin-top: 8px; color: var(--ink-2); }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: .9375rem; }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line, #e7e9ee); vertical-align: top; }
.article th { font-weight: 700; color: var(--ink); background: var(--bg-soft); }
.article td:last-child, .article th:last-child { white-space: nowrap; text-align: right; }
.post-byline { color: var(--ink-3); font-size: .9375rem; margin-bottom: 24px; }
.toc { background: var(--bg-soft); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 28px; }
.toc-h { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.toc ol { margin: 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-text); }
.article-figure { margin: 40px 0 0; }
.post-meta { display: block; color: var(--ink-3); font-size: .875rem; margin: 10px 0 4px; }
.article-faq .faq { margin: 0; }
@media (max-width: 520px) { .article th, .article td { padding: 10px 8px; } .article td:last-child { white-space: normal; } }
