/* ============================================================
   Lead Group — Księgowość | Main Stylesheet
   Apple-inspired. Tokens from Lead Group Design System.
   Subtle glass on nav only. Clean solid surfaces everywhere else.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Tokens (Lead Group DS) ---- */
:root {
  /* Amber */
  --amber-50:  #fdf6ee;
  --amber-100: #f9e8d2;
  --amber-200: #f3cea2;
  --amber-300: #ebb872;
  --amber-400: #e2a165;
  --amber-500: #d4874a;
  --amber-600: #b86c34;
  --amber-700: #8f5126;
  --amber-800: #64381a;

  /* Neutrals */
  --n-0:   #ffffff;
  --n-50:  #faf9f5;
  --n-100: #f2f0ea;
  --n-200: #e6e3da;
  --n-300: #ccc9bc;
  --n-400: #a8a496;
  --n-500: #7e7a6e;
  --n-600: #575449;
  --n-700: #3a3830;
  --n-800: #252420;
  --n-900: #141413;

  /* Semantic — light mode defaults */
  --accent:        var(--amber-400);
  --accent-hover:  var(--amber-500);
  --accent-active: var(--amber-600);
  --accent-subtle: var(--amber-50);
  --accent-muted:  var(--amber-100);
  --accent-ink:    var(--amber-700);

  --bg:            var(--n-50);
  --bg-elev:       var(--n-0);
  --bg-alt:        var(--n-100);
  --bg-inverse:    var(--n-900);

  --fg:            var(--n-900);
  --fg-2:          var(--n-600);
  --fg-3:          var(--n-500);
  --fg-4:          var(--n-400);
  --fg-inverse:    var(--n-50);

  --border:        rgba(20,20,19,0.08);
  --border-strong: rgba(20,20,19,0.16);
  --divider:       rgba(20,20,19,0.06);

  --nav-bg:        rgba(250, 249, 245, 0.72);
  --nav-border:    rgba(20,20,19,0.06);

  --success: #2d7a4f; --success-bg: #edf7f1;
  --warning: #a67c00; --warning-bg: #fef9e7;
  --error:   #c0392b; --error-bg:   #fdecea;
  --info:    #1a5f8a; --info-bg:    #e8f1f8;

  /* Shadows (warm-tinted) */
  --shadow-xs:  0 1px 2px rgba(20,20,19,0.05);
  --shadow-sm:  0 1px 3px rgba(20,20,19,0.07), 0 1px 2px rgba(20,20,19,0.04);
  --shadow-md:  0 4px 16px rgba(20,20,19,0.07);
  --shadow-lg:  0 12px 40px rgba(20,20,19,0.10);
  --shadow-xl:  0 24px 64px rgba(20,20,19,0.14);

  /* Radii (driven by Tweaks) */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 9999px;

  /* Density (driven by Tweaks) */
  --density: 1;
  --section-y: calc(96px * var(--density));
  --gap: calc(24px * var(--density));

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1.0);
  --dur-micro: 150ms;
  --dur-fast:  200ms;
  --dur-base:  350ms;
  --dur-slow:  500ms;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

[data-theme="dark"] {
  --bg:            var(--n-900);
  --bg-elev:       var(--n-800);
  --bg-alt:        #1b1a18;
  --bg-inverse:    var(--n-50);

  --fg:            var(--n-50);
  --fg-2:          #c9c4b5;
  --fg-3:          var(--n-400);
  --fg-4:          var(--n-500);
  --fg-inverse:    var(--n-900);

  --border:        rgba(250,249,245,0.08);
  --border-strong: rgba(250,249,245,0.16);
  --divider:       rgba(250,249,245,0.06);

  --nav-bg:        rgba(20, 20, 19, 0.72);
  --nav-border:    rgba(250,249,245,0.06);

  --accent-subtle: rgba(226,161,101,0.10);
  --accent-muted:  rgba(226,161,101,0.16);
  --accent-ink:    var(--amber-300);

  --shadow-xs:  0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.5);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.6);
}

/* Accent intensity tweak */
[data-accent="soft"]   { --accent: var(--amber-300); --accent-hover: var(--amber-400); }
[data-accent="strong"] { --accent: var(--amber-500); --accent-hover: var(--amber-600); }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  line-height: 1.625;
  overflow-x: hidden;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---- Type ---- */
h1, h2, h3, h4, h5, h6 { color: var(--fg); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); letter-spacing: -0.025em; line-height: 1.15; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
h5 { font-size: 1rem; font-weight: 600; }

p  { color: var(--fg-2); line-height: 1.7; }
a  { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.muted { color: var(--fg-3); }
.mono  { font-family: var(--font-mono); }

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-y) 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p {
  color: var(--fg-3);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none !important;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(20,20,19,0.08);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226,161,101,0.25);
}
.btn-primary:active { transform: scale(0.98); }

.btn-dark {
  background: var(--n-900);
  color: var(--n-50);
}
.btn-dark:hover { background: var(--n-800); color: var(--n-50); transform: translateY(-1px); }
[data-theme="dark"] .btn-dark { background: var(--n-50); color: var(--n-900); }
[data-theme="dark"] .btn-dark:hover { background: var(--n-100); color: var(--n-900); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg-elev);
  border-color: var(--fg);
  color: var(--fg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--fg); background: var(--bg-alt); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.8125rem; }

/* ---- Cards ---- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.card-lg { padding: 32px; }
.card-md { padding: 24px; }

/* ============================================================
   NAVIGATION (subtle glass — the only glass on the site)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--fg); text-decoration: none; }
.nav-brand .brand-mark {
  width: 32px; height: 32px;
  background: var(--n-900);
  color: var(--n-50);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0;
}
[data-theme="dark"] .nav-brand .brand-mark { background: var(--amber-400); color: var(--n-900); }
.nav-brand .brand-text small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--fg-2);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none !important;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  background: var(--bg-alt);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--fg-2);
  transition: all var(--dur-fast) var(--ease);
  background: transparent;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-cta { margin-left: 4px; }

.nav-hamburger { display: none; }
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  margin: 3px 0;
  transition: all var(--dur-fast) var(--ease);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  .nav-hamburger { display: grid; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease), visibility var(--dur-base);
    overflow-y: auto;
	height: max-content;
  }
  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { padding: 14px 16px; font-size: 1rem; border-radius: var(--r-md); }
}

/* ============================================================
   HERO — four variants switchable via data-hero
   ============================================================ */
.hero {
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}
.hero .container { padding-top: 80px; padding-bottom: 80px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-subtle);
  color: var(--accent-ink);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.hero h1 { margin-bottom: 20px; max-width: 680px; text-wrap: balance; }
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  font-size: 1.1875rem;
  color: var(--fg-2);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 36px;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta-item span {
  font-size: 0.8125rem;
  color: var(--fg-3);
}

/* Variant A — split: copy + form card */
.hero[data-hero="split"] .hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-form-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.hero-form-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.hero-form-card .subtitle {
  font-size: 0.875rem;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.hero-form-card form { display: flex; flex-direction: column; gap: 12px; }
.hero-form-card .form-note {
  font-size: 0.75rem;
  color: var(--fg-4);
  text-align: center;
  margin-top: 8px;
}

/* Variant B — dark hero with stats grid (UI kit style) */
.hero[data-hero="dark"] {
  background: var(--n-900);
  color: var(--n-50);
}
.hero[data-hero="dark"] h1,
.hero[data-hero="dark"] .hero-meta-item strong { color: var(--n-50); }
.hero[data-hero="dark"] .lead { color: rgba(250,249,245,0.7); }
.hero[data-hero="dark"] .hero-eyebrow { background: rgba(226,161,101,0.12); color: var(--amber-300); }
.hero[data-hero="dark"] .hero-meta { border-top-color: rgba(250,249,245,0.1); }
.hero[data-hero="dark"] .hero-meta-item span { color: rgba(250,249,245,0.55); }
.hero[data-hero="dark"] .btn-outline {
  color: var(--n-50);
  border-color: rgba(250,249,245,0.2);
}
.hero[data-hero="dark"] .btn-outline:hover {
  background: rgba(250,249,245,0.08);
  border-color: rgba(250,249,245,0.35);
  color: var(--n-50);
}
.hero[data-hero="dark"] .hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat {
  background: rgba(250,249,245,0.04);
  border: 1px solid rgba(250,249,245,0.08);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: background var(--dur-fast) var(--ease);
}
.hero-stat:hover { background: rgba(250,249,245,0.07); }
.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber-400);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat span {
  font-size: 0.8125rem;
  color: rgba(250,249,245,0.6);
}

/* Variant C — editorial: large text, image below */
.hero[data-hero="editorial"] {
  padding-top: 68px;
}
.hero[data-hero="editorial"] .container { padding-top: 100px; padding-bottom: 0; }
.hero[data-hero="editorial"] h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 900;
  max-width: 960px;
  margin-bottom: 32px;
}
.hero[data-hero="editorial"] .lead { font-size: 1.25rem; max-width: 640px; }
.hero[data-hero="editorial"] .hero-image {
  margin-top: 72px;
  height: clamp(320px, 45vw, 560px);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
}

/* Variant D — centered, minimal */
.hero[data-hero="centered"] .hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero[data-hero="centered"] h1 {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
}
.hero[data-hero="centered"] .lead { margin-left: auto; margin-right: auto; }
.hero[data-hero="centered"] .hero-cta { justify-content: center; }
.hero[data-hero="centered"] .hero-meta { justify-content: center; border-top: none; padding-top: 0; gap: 48px; margin-top: 24px; }

@media (max-width: 900px) {
  .hero[data-hero="split"] .hero-inner,
  .hero[data-hero="dark"] .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: -0.005em;
}
.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
input[type="number"].form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--fg);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form-control::placeholder { color: var(--fg-4); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-muted);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-top: 4px;
}
.form-consent input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--accent);
}
.form-consent label {
  font-size: 0.75rem;
  color: var(--fg-3);
  font-weight: 400;
  line-height: 1.5;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--fg-2);
  font-weight: 500;
}
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--accent-subtle);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.service-card > p {
  color: var(--fg-3);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}
.service-list {
  list-style: none;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: 0.8125rem;
  color: var(--fg-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-subtle) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b86c34' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TIMELINE / PROCESS
   ============================================================ */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
}
.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
  font-size: 0;
}
.timeline-item h4 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.timeline-item .timeline-step {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 4px;
}
.timeline-item p {
  font-size: 0.9375rem;
  color: var(--fg-3);
  margin: 0;
  max-width: 540px;
}

/* ============================================================
   KSeF BANNER
   ============================================================ */
.ksef-banner {
  background: var(--n-900);
  border-radius: var(--r-lg);
  padding: 56px;
  color: var(--n-50);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.ksef-banner .eyebrow { color: var(--amber-300); margin-bottom: 12px; }
.ksef-banner h3 { color: var(--n-50); font-size: 1.875rem; letter-spacing: -0.025em; margin-bottom: 12px; }
.ksef-banner p { color: rgba(250,249,245,0.7); margin-bottom: 24px; }
.ksef-dates {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ksef-date {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(250,249,245,0.1);
  align-items: baseline;
}
.ksef-date:last-child { border-bottom: 1px solid rgba(250,249,245,0.1); }
.ksef-date strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--amber-400);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.ksef-date span {
  font-size: 0.8125rem;
  color: rgba(250,249,245,0.7);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .ksef-banner { grid-template-columns: 1fr; padding: 40px 28px; }
}

/* ============================================================
   TABS — migration
   ============================================================ */
.tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-alt);
  border-radius: var(--r-pill);
  margin: 0 auto 40px;
  gap: 4px;
}
.tabs-wrap { display: flex; justify-content: center; }
.tab-btn {
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-3);
  border-radius: var(--r-pill);
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeInUp 0.4s var(--ease); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  position: relative;
  transition: all var(--dur-base) var(--ease);
}
.step-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.step-num {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.18;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.step-card h4 { font-size: 1.0625rem; margin-bottom: 8px; max-width: 80%; }
.step-card p { font-size: 0.875rem; color: var(--fg-3); margin: 0; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr; } }

/* ============================================================
   UNREG (działalność nierejestrowana) two-col
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col h3 { margin-bottom: 16px; }
.two-col > div > p { font-size: 1rem; margin-bottom: 16px; }
.feature-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.6;
}
.feature-list li svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.side-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.side-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
}
.stat-row {
  padding: 20px 0;
  border-top: 1px solid var(--divider);
}
.stat-row:last-of-type { border-bottom: 1px solid var(--divider); margin-bottom: 24px; }
.stat-row .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 6px;
}
.stat-row .big-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-row .big-num.accent { color: var(--accent); }
.stat-row p {
  font-size: 0.8125rem;
  color: var(--fg-3);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   CLIENTS LOGOS
   ============================================================ */
.clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}
.client-logo {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg-4);
  letter-spacing: 0.02em;
  padding: 8px 12px;
  transition: color var(--dur-fast) var(--ease);
}
.client-logo:hover { color: var(--fg-2); }

/* ============================================================
   SECURITY
   ============================================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.security-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
}
.security-item .icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-subtle);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.security-item .icon-wrap svg { width: 22px; height: 22px; }
.security-item h4 { font-size: 1.0625rem; margin-bottom: 6px; }
.security-item p { font-size: 0.875rem; color: var(--fg-3); margin: 0; }
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; } }

/* ============================================================
   MEETING / CONTACT
   ============================================================ */
.meeting-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.meeting-wrap iframe { width: 100%; height: 600px; border: 0; display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; color: var(--fg-3); font-size: 1rem; }
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--divider);
}
.contact-list li:last-child { border-bottom: 1px solid var(--divider); }
.contact-list .icon-wrap {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-subtle);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-list .icon-wrap svg { width: 18px; height: 18px; }
.contact-list .label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 2px;
}
.contact-list .value {
  font-size: 0.9375rem;
  color: var(--fg);
  font-weight: 500;
}
.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-band {
  background: var(--n-900);
  border-radius: var(--r-lg);
  padding: 72px 48px;
  text-align: center;
  color: var(--n-50);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(226,161,101,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .eyebrow { color: var(--amber-300); margin-bottom: 16px; }
.cta-band h2 { color: var(--n-50); margin-bottom: 16px; max-width: 640px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.cta-band p { color: rgba(250,249,245,0.7); max-width: 540px; margin: 0 auto 32px; font-size: 1.0625rem; }
.cta-band .btn-outline {
  color: var(--n-50);
  border-color: rgba(250,249,245,0.2);
}
.cta-band .btn-outline:hover {
  background: rgba(250,249,245,0.08);
  border-color: rgba(250,249,245,0.35);
  color: var(--n-50);
}

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  letter-spacing: -0.005em;
  transition: color var(--dur-fast) var(--ease);
}
.accordion-header:hover { color: var(--accent); }
.accordion-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent-ink);
  display: grid; place-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform var(--dur-base) var(--ease);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease);
}
.accordion-item.open .accordion-body { max-height: 600px; }
.accordion-body-inner {
  padding: 0 4px 22px;
  font-size: 0.9375rem;
  color: var(--fg-3);
  line-height: 1.7;
  max-width: 680px;
}
.accordion-body-inner a { color: var(--accent-ink); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--n-900);
  color: rgba(250,249,245,0.6);
  padding: 72px 0 28px;
}
[data-theme="dark"] .footer { background: #0d0c0b; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,249,245,0.08);
}
.footer-brand .nav-brand { color: var(--n-50); margin-bottom: 16px; }
.footer-brand .brand-mark { background: var(--amber-400); color: var(--n-900); }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(250,249,245,0.55);
  line-height: 1.65;
  max-width: 320px;
}
.footer h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--n-50);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(250,249,245,0.6);
  font-size: 0.875rem;
  transition: color var(--dur-fast) var(--ease);
  text-decoration: none;
}
.footer-links a:hover { color: var(--amber-400); text-decoration: none; }
.footer-bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: rgba(250,249,245,0.4);
}
.footer-bottom a { color: rgba(250,249,245,0.55); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   BADGES, ALERTS, TABLES, PAGINATION, SLIDER, STATS (elements)
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.badge-accent { background: var(--accent); color: #fff; }
.badge-outline { border: 1px solid var(--accent); color: var(--accent-ink); }
.badge-subtle { background: var(--accent-subtle); color: var(--accent-ink); }
.badge-neutral { background: var(--bg-alt); color: var(--fg-2); }

.alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid;
  font-size: 0.9375rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.alert-info    { background: var(--info-bg);    border-color: #b3d1e3; color: var(--info); }
.alert-success { background: var(--success-bg); border-color: #b5dbc4; color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: #ebddb0; color: var(--warning); }
.alert-danger  { background: var(--error-bg);   border-color: #edc3bd; color: var(--error); }
[data-theme="dark"] .alert-info    { background: rgba(26,95,138,0.15); border-color: rgba(26,95,138,0.3); color: #7cb3d4; }
[data-theme="dark"] .alert-success { background: rgba(45,122,79,0.15); border-color: rgba(45,122,79,0.3); color: #8ed1a9; }
[data-theme="dark"] .alert-warning { background: rgba(166,124,0,0.15); border-color: rgba(166,124,0,0.3); color: #d4b566; }
[data-theme="dark"] .alert-danger  { background: rgba(192,57,43,0.15); border-color: rgba(192,57,43,0.3); color: #e28076; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat-cell {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-cell .num.accent { color: var(--accent); }
.stat-cell .lbl {
  font-size: 0.8125rem;
  color: var(--fg-3);
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

.table-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
  color: var(--fg-2);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--bg-alt); }
.table.table-striped tbody tr:nth-child(even) { background: var(--bg-alt); }

.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-2);
  border: 1px solid var(--border);
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.pagination a:hover { background: var(--bg-alt); color: var(--fg); text-decoration: none; }
.pagination .active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* Slider (minimal, card-based) */
.slider {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform var(--dur-base) var(--ease);
}
.slider-slide {
  flex: 0 0 100%;
  padding: 56px 48px;
}
.slider-slide .eyebrow { margin-bottom: 12px; }
.slider-slide h3 { font-size: 1.5rem; margin-bottom: 8px; }
.slider-slide p { max-width: 560px; margin: 0; }
.slider-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}
.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--fg-2);
  display: grid; place-items: center;
  transition: all var(--dur-fast) var(--ease);
}
.slider-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.slider-dots { display: inline-flex; gap: 6px; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background var(--dur-fast) var(--ease), width var(--dur-fast) var(--ease);
  cursor: pointer;
}
.slider-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ============================================================
   KSeF PAGE specifics
   ============================================================ */
.page-header {
  padding-top: 68px;
  background: var(--n-900);
  color: var(--n-50);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, rgba(226,161,101,0.14) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .container { padding-top: 96px; padding-bottom: 80px; position: relative; }
.page-header .eyebrow { color: var(--amber-300); margin-bottom: 16px; }
.page-header h1 { color: var(--n-50); max-width: 820px; margin-bottom: 20px; }
.page-header h1 .accent { color: var(--amber-400); }
.page-header p.lead {
  font-size: 1.1875rem;
  color: rgba(250,249,245,0.7);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 32px;
}
.page-header-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(250,249,245,0.1);
  max-width: 680px;
}
.page-header-meta .hero-meta-item strong { color: var(--amber-400); }
.page-header-meta .hero-meta-item span { color: rgba(250,249,245,0.6); }

.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.phase-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  position: relative;
  transition: all var(--dur-base) var(--ease);
}
.phase-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.phase-card .phase-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 8px;
}
.phase-card .phase-date {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.phase-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.phase-card p { font-size: 0.875rem; color: var(--fg-3); margin: 0; }
@media (max-width: 900px) { .phases-grid { grid-template-columns: 1fr; } }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.benefit {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  display: flex;
  gap: 16px;
}
.benefit .icon-wrap {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.benefit .icon-wrap svg { width: 20px; height: 20px; }
.benefit h4 { font-size: 1rem; margin-bottom: 4px; }
.benefit p { font-size: 0.875rem; color: var(--fg-3); margin: 0; }
@media (max-width: 680px) { .benefits-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--dur-fast) var(--ease);
  z-index: 900;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 18px; height: 18px; }
.scroll-top:hover { transform: translateY(-2px); }

/* ============================================================
   TWEAKS PANEL (only visible when edit mode active)
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  width: 280px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  font-family: var(--font-sans);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 12px;
}
.tweaks-panel .tweak-group {
  padding: 12px 0;
  border-top: 1px solid var(--divider);
}
.tweaks-panel .tweak-group:first-of-type { border-top: none; padding-top: 0; }
.tweaks-panel .tweak-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 8px;
}
.tweaks-panel .tweak-seg {
  display: flex;
  padding: 3px;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  gap: 2px;
}
.tweaks-panel .tweak-seg button {
  flex: 1;
  padding: 7px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-3);
  border-radius: 4px;
  transition: all var(--dur-fast) var(--ease);
  text-transform: capitalize;
}
.tweaks-panel .tweak-seg button.active {
  background: var(--bg-elev);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}
.tweaks-panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

/* Utility */
.hidden { display: none !important; }


/* ============================================================
   IMAGE SECTIONS — photo cards, full-bleed bands, sliders, carousel
   ============================================================ */
.img { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* — Services with photos — */
.services-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.service-photo-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.service-photo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-photo-card .photo { position: relative; height: 188px; overflow: hidden; }
.service-photo-card .photo .photo-img { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.service-photo-card:hover .photo .photo-img { transform: scale(1.06); }
.service-photo-card .photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(226,161,101,0.05), rgba(20,20,19,0.14));
  pointer-events: none;
}
.service-photo-card .photo .badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(250,249,245,0.94);
  color: var(--n-800);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.service-photo-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-photo-card .body h3 { font-size: 1.1875rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.service-photo-card .body > p { font-size: 0.875rem; color: var(--fg-3); margin: 0 0 16px; line-height: 1.6; }
.service-photo-card .service-list { margin-top: auto; }
@media (max-width: 900px) { .services-photo-grid { grid-template-columns: 1fr; } }

/* — Full background band — */
.fullbg {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  min-height: 520px;
  display: flex;
  align-items: center;
}
.fullbg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,20,19,0.85) 15%, rgba(20,20,19,0.5) 55%, rgba(20,20,19,0.2) 100%);
}
.fullbg .container { position: relative; width: 100%; }
.fullbg-content { max-width: 580px; padding: 88px 0; }
.fullbg-content .eyebrow { color: var(--amber-300); margin-bottom: 14px; }
.fullbg-content h2 { color: #faf9f5; margin-bottom: 16px; text-wrap: balance; }
.fullbg-content p { color: rgba(250,249,245,0.78); font-size: 1.0625rem; margin-bottom: 28px; max-width: 480px; }

/* — Half media (split image + copy) — */
.half-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-elev);
}
.half-media .media { position: relative; min-height: 360px; }
.half-media .copy {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.half-media .copy .eyebrow { margin-bottom: 12px; }
.half-media .copy h3 { margin-bottom: 12px; }
.half-media .copy p { color: var(--fg-3); margin: 0 0 20px; }
.half-media.flip .media { order: 2; }
.half-media.dark { border-color: transparent; }
.half-media.dark .copy { background: var(--n-900); }
.half-media.dark .copy h3 { color: var(--n-50); }
.half-media.dark .copy p { color: rgba(250,249,245,0.7); }
.half-media.dark .copy .eyebrow { color: var(--amber-300); }
@media (max-width: 860px) {
  .half-media { grid-template-columns: 1fr; }
  .half-media.flip .media { order: 0; }
  .half-media .copy { padding: 40px 28px; }
}

/* — Photo slider — */
.photo-slider { position: relative; border: none; }
.photo-slider .slider-slide { padding: 0; position: relative; height: 480px; }
.photo-slider .ph { position: absolute; inset: 0; }
.photo-slider .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 110px 40px 36px;
  background: linear-gradient(180deg, transparent, rgba(20,20,19,0.82));
}
.photo-slider .caption .eyebrow { color: var(--amber-300); margin-bottom: 6px; }
.photo-slider .caption h3 { color: #faf9f5; font-size: 1.375rem; margin-bottom: 4px; letter-spacing: -0.015em; }
.photo-slider .caption p { color: rgba(250,249,245,0.78); font-size: 0.9375rem; margin: 0; max-width: 560px; }
.photo-slider .slider-controls { position: absolute; right: 24px; bottom: 24px; margin: 0; z-index: 3; }
.photo-slider .slider-btn {
  background: rgba(20,20,19,0.45);
  border-color: rgba(250,249,245,0.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-slider .slider-btn:hover { background: rgba(20,20,19,0.7); border-color: rgba(250,249,245,0.45); color: #fff; }
.photo-slider .slider-dot { background: rgba(250,249,245,0.4); }
.photo-slider .slider-dot.active { background: var(--amber-400); }

/* Half slider variant (lives inside .half-media) */
.photo-slider.half { height: 100%; min-height: 420px; border-radius: 0; }
.photo-slider.half .slider-track { height: 100%; }
.photo-slider.half .slider-slide { height: auto; min-height: 420px; }
@media (max-width: 640px) {
  .photo-slider .slider-slide { height: 380px; }
  .photo-slider .caption { padding: 80px 24px 24px; }
}

/* — Center figure — */
.center-figure { max-width: 880px; margin: 0 auto; }
.center-figure .frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: clamp(300px, 42vw, 520px);
}
.center-figure .float-card {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(250,249,245,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
}
.center-figure .float-card strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--n-900); line-height: 1.1; }
.center-figure .float-card span { font-size: 0.8125rem; color: var(--n-600); }
.center-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 8px 0;
  font-size: 0.8125rem;
  color: var(--fg-3);
}

/* — Carousel (scroll-snap) — */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  position: relative;
  height: 380px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.carousel-card .ph { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.carousel-card:hover .ph { transform: scale(1.05); }
.carousel-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,19,0) 45%, rgba(20,20,19,0.78));
  pointer-events: none;
}
.carousel-card .label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.carousel-card .label .eyebrow { color: var(--amber-300); font-size: 0.6875rem; margin-bottom: 2px; }
.carousel-card .label h4 { color: #faf9f5; font-size: 1.125rem; margin: 0; letter-spacing: -0.01em; }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 640px) { .carousel-card { flex-basis: 260px; height: 330px; } }
