/* ═══════════════════════════════════════════════════════
   Technik w Terenie – style.css
   Kompletny, produkcyjny arkusz stylów
   Paleta: #2cc590 (brand), #FF6B35 (CTA), #1a1a2e (dark)
   Czcionka: Nunito (zachowana z oryginału)
═══════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --c-brand:        #2cc590;
  --c-brand-dark:   #22a878;
  --c-brand-light:  #e8faf4;
  --c-brand-mid:    #c8f0e0;

  --c-cta:          #FF6B35;
  --c-cta-dark:     #e55a26;
  --c-cta-light:    #fff3ee;

  --c-dark:         #1a1a2e;
  --c-dark-2:       #16213e;
  --c-dark-3:       #0f3460;

  --c-white:        #ffffff;
  --c-gray-50:      #f8fafb;
  --c-gray-100:     #f0f4f8;
  --c-gray-200:     #dde3ea;
  --c-gray-400:     #94a3b8;
  --c-gray-500:     #64748b;
  --c-gray-700:     #334155;

  --font:           'Nunito', sans-serif;

  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      20px;
  --radius-pill:    9999px;

  --shadow-sm:      0 1px 3px rgba(0,0,0,.07);
  --shadow:         0 4px 20px rgba(0,0,0,.09);
  --shadow-lg:      0 16px 56px rgba(0,0,0,.14);
  --shadow-cta:     0 6px 22px rgba(255,107,53,.42);
  --shadow-brand:   0 6px 22px rgba(44,197,144,.35);

  --transition:     .22s cubic-bezier(.4,0,.2,1);

  /* Layout */
  --container:      1160px;
  --nav-h:          72px;
  --bar-h:          42px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + var(--bar-h));
}

body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-gray-700);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accessibility: focus visible only for keyboard */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--c-cta);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Honeypot – absolutely hide */
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--c-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); }
h4 { font-size: 1rem; font-weight: 700; }

p { line-height: 1.7; }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ─── SECTION ─── */
.section { padding: 88px 0; }
.section-alt { background: var(--c-gray-50); }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 { margin-bottom: 14px; }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-brand-dark);
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-mid);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--c-gray-500);
  max-width: 560px;
  margin: 0 auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 800;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition), color var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:active { transform: scale(.98); }

/* CTA – pomarańczowy, dominujący */
.btn-cta {
  background: var(--c-cta);
  color: var(--c-white);
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover, .btn-cta:focus-visible {
  background: var(--c-cta-dark);
  color: var(--c-white);
  box-shadow: 0 8px 28px rgba(255,107,53,.52);
  transform: translateY(-2px);
}

/* Ghost – na ciemnym tle */
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  color: var(--c-white);
}

/* Ghost – na jasnym tle (CTA band) */
.btn-cta-ghost {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-cta-ghost:hover, .btn-cta-ghost:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  color: var(--c-white);
}

/* Plan free – outline brand */
.btn-plan-free {
  background: transparent;
  color: var(--c-brand-dark);
  border: 2px solid var(--c-brand);
  width: 100%;
  justify-content: center;
}
.btn-plan-free:hover, .btn-plan-free:focus-visible {
  background: var(--c-brand);
  color: var(--c-white);
  transform: translateY(-1px);
}

/* Sizes */
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── ANNOUNCEMENT BAR ─── */
.announcement-bar {
  background: var(--c-brand);
  color: var(--c-white);
  text-align: center;
  padding: 10px 48px 10px 16px;
  font-size: .86rem;
  font-weight: 700;
  position: relative;
  z-index: 1001;
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Shimmer – subtelny pasek światła przesuwający się co 3.5s */
.announcement-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,.18) 50%,
    transparent 60%
  );
  animation: bar-shimmer 3.5s ease infinite;
  pointer-events: none;
}

@keyframes bar-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.announcement-bar p {
  line-height: 1.4;
  color: var(--c-white);
  position: relative;
  z-index: 1; /* nad shimmerem */
}

.announcement-link {
  color: var(--c-white);
  text-decoration: underline;
  margin-left: 8px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.announcement-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 1;
}
.announcement-close:hover { color: var(--c-white); }

/* ─── NAVIGATION ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-gray-200);
  transition: box-shadow var(--transition);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.09); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.nav-logo img {
  width: 180px;
  height: auto;
  display: block;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu .nav-link {
  font-size: .9rem;
  font-weight: 700;
  color: var(--c-gray-500);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  display: block;
}
.nav-menu .nav-link:hover, .nav-menu .nav-link.active {
  color: var(--c-brand-dark);
  background: var(--c-brand-light);
}

.nav-sep { margin-left: 8px; }

.nav-login {
  font-size: .88rem;
  font-weight: 700;
  color: var(--c-gray-400);
  padding: 8px 10px;
  transition: color var(--transition);
  display: block;
}
.nav-login:hover { color: var(--c-dark); }

/* CTA in nav – uses .btn .btn-cta already, but smaller */
.nav-menu .btn-cta {
  padding: 9px 20px;
  font-size: .88rem;
  margin-left: 4px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
/* Open state */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Responsive nav */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    /* Animacja slideDown – max-height trick */
    display: flex;          /* zawsze flex, ukrywamy max-height */
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-gray-200);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
    padding: 0 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height .32s cubic-bezier(.4,0,.2,1),
      opacity .25s ease,
      padding .3s ease;
  }
  .nav-menu.is-open {
    max-height: 520px;  /* wystarczy dla wszystkich elementów */
    opacity: 1;
    pointer-events: auto;
    padding: 12px 16px 16px;
  }

  .nav-menu li { width: 100%; }
  .nav-menu .nav-link { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--c-gray-100); }
  .nav-menu .nav-link:hover { background: var(--c-brand-light); border-radius: var(--radius); }
  .nav-sep { margin-left: 0; }
  .nav-login { display: block; padding: 12px 8px; border-bottom: 1px solid var(--c-gray-100); }
  .nav-menu .btn-cta { margin: 12px 0 0; width: 100%; justify-content: center; border-radius: var(--radius-pill); }
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(145deg, var(--c-dark) 0%, var(--c-dark-2) 55%, var(--c-dark-3) 100%);
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-content { padding-bottom: 80px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-brand);
  flex-shrink: 0;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(44,197,144,.5); }
  50% { opacity: .6; box-shadow: 0 0 0 8px rgba(44,197,144,0); }
}

.hero h1 {
  color: var(--c-white);
  font-weight: 900;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--c-brand);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--c-dark-2);
  font-size: .65rem;
  font-weight: 800;
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: -8px;
}
.avatar:first-child { margin-left: 0; }
.av-green  { background: linear-gradient(135deg, var(--c-brand), #16a34a); }
.av-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.av-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }

.hero-trust-text {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.hero-trust-text strong { color: var(--c-white); }

/* Hero visual: zrzut ekranu aplikacji */
.hero-visual {
  align-self: center;
  position: relative;
}

.hero-visual picture,
.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}


/* Numbers bar */
.numbers-bar {
  background: var(--c-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 -24px;
}

.number-item {
  flex: 1;
  min-width: 140px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
}
.number-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--c-brand);
  transition: width .4s ease;
}
.number-item:hover::after { width: 50%; }

.number-item strong {
  display: block;
  font-weight: 900;
  font-size: 2rem;
  color: var(--c-brand);
  line-height: 1.1;
}
.number-item span {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  margin-top: 3px;
  display: block;
}

.number-divider {
  width: 1px;
  background: rgba(255,255,255,.08);
  align-self: stretch;
}

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1.5px solid var(--c-gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-brand), #75eb92);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: .9rem; color: var(--c-gray-500); }

.feature-badge {
  display: inline-block;
  margin-top: 12px;
  font-size: .7rem;
  font-weight: 800;
  background: var(--c-brand-light);
  color: var(--c-brand-dark);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

/* ─── HOW IT WORKS ─── */
.steps-track {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0 12px;
  list-style: none;
  margin-bottom: 2.5rem;
}

.step-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.step-card:hover {
  border-color: var(--c-brand-mid);
  box-shadow: var(--shadow);
}

.step-card.is-active {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px var(--c-brand-light);
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 20px;
  color: var(--c-gray-300);
  flex-shrink: 0;
}

.step-tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-brand-dark);
  margin: 0 0 10px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-dark);
  margin: 0 0 10px;
  line-height: 1.3;
}

.step-desc {
  font-size: .88rem;
  color: var(--c-gray-500);
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.step-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 800;
  color: var(--c-brand-dark);
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-mid);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.step-cta.btn-sm { align-self: flex-start; padding: 8px 18px; font-size: .82rem; }

/* Mobile: stack vertically, arrows rotate to point down between steps */
@media (max-width: 860px) {
  .steps-track {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-card { margin-bottom: 20px; }
  .step-arrow {
    width: auto;
    align-self: center;
    margin-bottom: 20px;
    transform: rotate(90deg);
  }
}

/* ─── INDUSTRIES ─── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
}

.industry-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.industry-card:hover {
  border-color: var(--c-brand);
  background: var(--c-brand-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,197,144,.18);
}

.industry-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--c-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  transition: background var(--transition);
  flex-shrink: 0;
}
.industry-card:hover .industry-icon { background: var(--c-brand-dark); }

.industry-card span:last-child {
  font-weight: 800;
  font-size: .85rem;
  color: var(--c-dark);
}

/* ─── TESTIMONIALS ─── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testi-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--c-gray-200);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--c-brand-mid);
}

.testi-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testi-card blockquote {
  font-size: .92rem;
  color: var(--c-gray-700);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  margin-bottom: 18px;
  quotes: none;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .85rem;
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testi-name { font-weight: 800; font-size: .88rem; color: var(--c-dark); display: block; }
.testi-role { font-size: .77rem; color: var(--c-gray-400); display: block; margin-top: 1px; }

/* ─── PRICING ─── */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.billing-label { font-weight: 700; font-size: .9rem; color: var(--c-gray-500); }

.toggle-switch {
  position: relative;
  width: 50px;
  height: 27px;
  cursor: pointer;
  display: block;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--c-gray-200);
  border-radius: 100px;
  transition: background var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--c-white);
  top: 3px;
  left: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--c-brand); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(23px); }

.billing-save {
  background: #dcfce7;
  color: #15803d;
  font-size: .75rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 100px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 780px;
  margin: 0 auto;
}

.plan-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 2px solid var(--c-gray-200);
  position: relative;
  transition: all var(--transition);
}
.plan-card:hover:not(.plan-featured) {
  border-color: var(--c-gray-400);
  box-shadow: var(--shadow);
}

.plan-featured {
  background: var(--c-dark);
  border-color: var(--c-brand);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-brand);
  color: var(--c-white);
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
}

.plan-name {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  margin-bottom: 8px;
}
.plan-featured .plan-name { color: rgba(255,255,255,.5); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.plan-amount {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--c-dark);
  line-height: 1;
}
.plan-featured .plan-amount { color: var(--c-white); }

.plan-unit {
  font-size: .85rem;
  color: var(--c-gray-400);
  font-weight: 600;
}
.plan-featured .plan-unit { color: rgba(255,255,255,.5); }

.plan-desc {
  font-size: .85rem;
  color: var(--c-gray-500);
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-gray-200);
}
.plan-featured .plan-desc { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.1); }

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  color: var(--c-gray-700);
  line-height: 1.4;
}
.plan-featured .plan-features li { color: rgba(255,255,255,.82); }

.feat-yes::before {
  content: '✓';
  color: var(--c-brand);
  font-weight: 900;
  flex-shrink: 0;
  display: inline-block;
  width: 16px;
  text-align: center;
}
.feat-no { opacity: .35; }
.feat-no::before {
  content: '✕';
  color: var(--c-gray-400);
  font-weight: 700;
  flex-shrink: 0;
  display: inline-block;
  width: 16px;
  text-align: center;
}

.pricing-note {
  text-align: center;
  margin-top: 20px;
  font-size: .83rem;
  color: var(--c-gray-400);
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--c-gray-200); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font);
  font-weight: 800;
  font-size: .97rem;
  color: var(--c-dark);
  cursor: pointer;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--c-brand-dark); }

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-mid);
  color: var(--c-brand-dark);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: var(--c-white);
  transform: rotate(45deg);
}

/* FAQ animacja – grid trick: grid-template-rows: 0fr → 1fr */
.faq-answer {
  font-size: .9rem;
  color: var(--c-gray-500);
  line-height: 1.7;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease, padding-bottom .3s ease;
  overflow: hidden;
  padding-bottom: 0;
}
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 18px;
}
/* Usuwamy atrybut hidden przez JS – CSS obsługuje pokazywanie */

/* ─── CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, var(--c-dark), var(--c-dark-2));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 50% 50%, rgba(44,197,144,.1), transparent);
  pointer-events: none;
}

.cta-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(44,197,144,.8);
  background: rgba(44,197,144,.12);
  border: 1px solid rgba(44,197,144,.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cta-band h2 {
  color: var(--c-white);
  margin-bottom: 14px;
}

.cta-sub {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 12px; }
.contact-info > p { font-size: .92rem; color: var(--c-gray-500); margin-bottom: 28px; }

.contact-points { list-style: none; display: flex; flex-direction: column; gap: 18px; }

.contact-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cpoint-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-mid);
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.contact-point strong { font-weight: 800; font-size: .88rem; color: var(--c-dark); display: block; margin-bottom: 2px; }
.contact-point span   { font-size: .83rem; color: var(--c-gray-500); display: block; }

/* Form */
.contact-form-wrap {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid var(--c-gray-200);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 { margin-bottom: 12px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-group { margin-bottom: 8px; }

.form-group label {
  display: block;
  font-weight: 800;
  font-size: .82rem;
  color: var(--c-dark);
  margin-bottom: 3px;
}

.required { color: var(--c-cta); }
.optional  { font-weight: 400; color: var(--c-gray-400); font-size: .78rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 14px;
  border: 2px solid var(--c-gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--c-gray-700);
  background: var(--c-gray-50);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-gray-400);
  opacity: 1;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-brand);
  background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(44,197,144,.15);
}

.form-group textarea { resize: vertical; min-height: 72px; }

.form-note {
  font-size: .74rem;
  color: var(--c-gray-400);
  text-align: center;
  margin-top: 5px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--c-dark);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 44px;
}

/* Social media ikony w stopce */
.footer-social-icon {
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

.footer-brand img { margin-bottom: 14px; }
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  line-height: 1.65;
  max-width: 270px;
}

.footer-nav h4 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-nav ul a {
  font-size: .87rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: block;
}
.footer-nav ul a:hover { color: var(--c-brand); }

.footer-contact-col h4 {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}

.recall-form { display: flex; flex-direction: column; gap: 10px; }

.recall-form input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: var(--c-white);
  font-family: var(--font);
  font-size: .88rem;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.recall-form input[type="tel"]::placeholder { color: rgba(255,255,255,.35); opacity: 1; }
.recall-form input[type="tel"]:focus { border-color: var(--c-brand); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p  { font-size: .79rem; color: rgba(255,255,255,.3); }
.footer-bottom a  { font-size: .79rem; color: rgba(255,255,255,.3); transition: color var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--c-brand);
  color: var(--c-white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  transition: all var(--transition);
}
.back-to-top:hover {
  background: var(--c-brand-dark);
  transform: translateY(-2px);
  color: var(--c-white);
}
/* hidden via [hidden] attribute in HTML; shown by JS */
.back-to-top[hidden] { display: none; }

/* ─── RESPONSIVE ─── */

/* Tablet landscape */
@media (max-width: 1100px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr 1fr; }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .hero-grid        { grid-template-columns: 1fr; }
  .hero-visual      {
    max-width: 600px;
    width: 100%;
    margin: 32px auto 0;
  }
  .hero-content     { padding-bottom: 0; }
  .hero             { padding-bottom: 0; }
  .numbers-bar      { margin: 0; }

  .industries-grid  { grid-template-columns: repeat(3, 1fr); }
  .testi-grid       { grid-template-columns: 1fr 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; max-width: 420px; }
  .contact-grid     { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* Mobile */
@media (max-width: 600px) {
  .features-grid    { grid-template-columns: 1fr; }
  .industries-grid  { grid-template-columns: repeat(2, 1fr); }
  .testi-grid       { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }

  .form-row         { grid-template-columns: 1fr; }

  .hero-actions     { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .cta-actions      { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }

  .number-divider   { display: none; }
  .number-item      {
    min-width: 50%;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  .numbers-bar      { flex-wrap: wrap; }

  .back-to-top      { bottom: 16px; right: 16px; width: 40px; height: 40px; }

  .section { padding: 48px 0; }
}

/* ─── TECHNIK PHONE MOCKUP ─── */
.tech-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.tech-phone {
  width: 260px;
  max-height: 542px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 12px 7px 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.07);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tech-notch {
  width: 60px; height: 7px;
  background: #0d1117;
  border-radius: 4px;
  margin: 0 auto 10px;
  flex-shrink: 0;
}
.tech-screen {
  background: #f4f6f8;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Topbar */
.tech-topbar {
  background: #fff;
  padding: 7px 13px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f3;
  flex-shrink: 0;
}
.tech-logo {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: -.01em;
  color: var(--c-dark);
}
.tech-logo span { color: var(--c-brand); }
.tech-topbar-right {
  display: flex; align-items: center; gap: 7px;
  color: var(--c-gray-400);
}
.tech-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: #d1fae5;
  color: var(--c-brand-dark, #1a9e72);
  font-size: 8px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #a7f3d0;
}

/* View tabs - unified with Manager style */
.tech-tabs {
  background: var(--c-white, #fff);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #edf0f3;
  flex-shrink: 0;
}
.tech-tabs-inner {
  display: flex;
  gap: 2px;
  background: var(--c-gray-100, #f0f4f8);
  padding: 3px;
  border-radius: 8px;
  flex: 1;
}
.tech-tab {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700;
  color: var(--c-gray-500, #64748b);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s;
  background: none;
  border: none;
  font-family: var(--font, system-ui);
}
.tech-tab:hover { background: #fff; color: var(--c-dark, #1a1a2e); }
.tech-tab-on {
  background: #fff !important;
  color: var(--c-dark, #1a1a2e) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.tech-tab-sep { display: none; }
.tech-add-btn {
  margin-left: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-brand, #2cc590);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(44,197,144,.4);
  flex-shrink: 0;
}

/* Search */
.tech-search-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px 3px;
  flex-shrink: 0;
}
.tech-search {
  flex: 1;
  display: flex; align-items: center; gap: 5px;
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 20px;
  padding: 5px 9px;
  font-size: 10px;
  color: var(--c-gray-400);
}
.tech-filter-ico {
  width: 30px; height: 30px;
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--c-gray-500);
  flex-shrink: 0;
}

/* Section title */
.tech-section-title {
  font-weight: 800;
  font-size: 12px;
  color: var(--c-dark);
  padding: 5px 10px 3px;
  flex-shrink: 0;
}
.tech-section-title span { color: var(--c-gray-400); font-weight: 600; }

/* Cards */
.tech-cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 7px 5px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.tech-card {
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  flex-shrink: 0;
}
.tech-card-top {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 4px;
}
.tech-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: #e6faf3;
  color: var(--c-brand-dark, #1a9e72);
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
}
.tech-card-time {
  font-size: 9px;
  color: var(--c-gray-400);
  margin-left: auto;
  white-space: nowrap;
}
.tech-card-more {
  font-size: 11px;
  color: var(--c-gray-300);
  letter-spacing: .05em;
  cursor: pointer;
  width: 22px; height: 22px;
  border: 1px solid #edf0f3;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tech-card-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--c-dark);
  border-bottom: 2px solid var(--c-gray-200);
  padding-bottom: 2px;
  margin-bottom: 3px;
  display: inline-block;
}
.tech-card-type {
  font-size: 10px;
  color: var(--c-gray-400);
  margin-bottom: 3px;
}
.tech-card-addr {
  font-size: 10.5px;
  color: var(--c-dark);
  line-height: 1.4;
  margin-bottom: 3px;
}
.tech-link { color: var(--c-brand); }
.tech-card-who {
  font-size: 10px;
  color: var(--c-gray-500);
  margin-bottom: 5px;
}
.tech-card-phone-row {
  display: flex; gap: 5px;
  margin-bottom: 5px;
}
.tech-phone-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid #edf0f3;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--c-dark);
  cursor: pointer;
  background: #fff;
  transition: background .1s;
}
.tech-phone-btn:hover { background: var(--c-gray-50); }
.tech-ico-btn {
  width: 30px; height: 30px;
  border: 1px solid #edf0f3;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gray-500);
  cursor: pointer; flex-shrink: 0;
  background: #fff;
}
.tech-card-footer {
  display: flex; gap: 5px;
}
.tech-footer-btn {
  flex: 1;
  border: 1px solid #edf0f3;
  border-radius: 20px;
  padding: 4px 6px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--c-gray-600);
  text-align: center;
  cursor: pointer;
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom nav */
.tech-bottom-nav {
  display: flex;
  background: #fff;
  border-top: 1px solid #edf0f3;
  padding: 5px 0 3px;
  flex-shrink: 0;
}
.tech-bnav {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--c-gray-400);
  padding: 2px 4px;
  cursor: pointer;
}
.tech-bnav-on { color: var(--c-brand); }

/* ─── PRINT ─── */
/* ─── FAITHFUL APP MOCKUP (fam-*) ─── */
.app-mockup-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.fam-shell {
  width: 100%;
  max-width: 660px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  border: 1px solid var(--c-gray-200);
  background: #f8fafb;
  font-size: .72rem;
  font-family: var(--font);
  color: var(--c-dark);
}

/* Top nav */
.fam-topbar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-200);
  display: flex;
  align-items: center;
  padding: 8px 14px;
  gap: 16px;
}
.fam-logo { font-weight: 900; font-size: .78rem; letter-spacing: -.01em; }
.fam-logo-t { color: var(--c-dark); }
.fam-logo-g { color: var(--c-brand); }
.fam-topnav { display: flex; align-items: center; gap: 14px; flex: 1; }
.fam-topnav-item { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: .7rem; color: var(--c-gray-400); padding: 4px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.fam-topnav-active { color: var(--c-dark); border-bottom-color: var(--c-brand); }
.fam-topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fam-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--c-brand); color: #fff; font-weight: 800; font-size: .6rem; display: flex; align-items: center; justify-content: center; }

/* Sub toolbar */
.fam-toolbar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-200);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  flex-wrap: wrap;
}
.fam-view-tabs { display: flex; gap: 2px; background: var(--c-gray-100); padding: 3px; border-radius: 8px; }
.fam-view-btn { background: none; border: none; padding: 4px 8px; border-radius: 6px; font-family: var(--font); font-size: .65rem; font-weight: 700; color: var(--c-gray-500); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: all .15s; }
.fam-view-btn:hover { background: var(--c-white); color: var(--c-dark); }
.fam-view-btn-active { background: var(--c-white) !important; color: var(--c-dark) !important; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.fam-search { display: flex; align-items: center; gap: 5px; border: 1px solid var(--c-gray-200); border-radius: 8px; padding: 4px 8px; font-size: .65rem; color: var(--c-gray-400); background: var(--c-gray-50); min-width: 90px; }
.fam-filter-btn { display: flex; align-items: center; gap: 4px; border: 1px solid var(--c-gray-200); border-radius: 8px; padding: 4px 8px; font-size: .65rem; font-weight: 700; color: var(--c-gray-500); cursor: pointer; white-space: nowrap; }
.fam-add-btn { background: var(--c-brand); color: #fff; border: none; border-radius: 8px; padding: 4px 10px; font-family: var(--font); font-size: .65rem; font-weight: 800; cursor: pointer; white-space: nowrap; }

/* View switcher */
.fam-view { animation: fam-fade .2s ease; }
.fam-hidden { display: none !important; }
@keyframes fam-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* LIST VIEW */
.fam-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 4px;
}
.fam-list-title { font-weight: 800; font-size: .75rem; color: var(--c-dark); }
.fam-count { color: var(--c-gray-400); font-weight: 600; }
.fam-col-btn { display: flex; align-items: center; gap: 4px; border: 1px solid var(--c-gray-200); border-radius: 7px; padding: 3px 7px; font-size: .62rem; font-weight: 700; color: var(--c-gray-500); cursor: pointer; }

.fam-table { width: 100%; padding: 0 14px 4px; }
.fam-thead {
  display: grid;
  grid-template-columns: 70px 100px 1fr 80px 90px 130px;
  gap: 6px;
  padding: 5px 8px;
  font-size: .6rem;
  font-weight: 700;
  color: var(--c-gray-400);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--c-gray-200);
}
.fam-tbody { }
.fam-row {
  display: grid;
  grid-template-columns: 70px 100px 1fr 80px 90px 130px;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--c-gray-100);
  align-items: center;
  font-size: .65rem;
  transition: background .12s;
  cursor: default;
}
.fam-row:hover { background: var(--c-brand-light); }
.fam-row:last-child { border-bottom: none; }
.fam-addr { line-height: 1.4; }
.fam-addr small { color: var(--c-brand); display: block; margin-top: 1px; }
.fam-date-cell { color: var(--c-gray-500); font-size: .6rem; }

.fam-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: .6rem;
  font-weight: 700;
  white-space: nowrap;
}
.fam-badge-norm { background: #dcfce7; color: #15803d; }
.fam-badge-low  { background: #f1f5f9; color: #475569; }
.fam-badge-crit { background: #fee2e2; color: #991b1b; }
.fam-badge-high { background: #fff7ed; color: #c2410c; }

.fam-assign-btn, .fam-plan-btn {
  background: var(--c-gray-100);
  border: 1px solid var(--c-gray-200);
  border-radius: 6px;
  padding: 3px 6px;
  font-family: var(--font);
  font-size: .6rem;
  font-weight: 700;
  color: var(--c-gray-500);
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.fam-assign-btn:hover, .fam-plan-btn:hover { background: var(--c-brand-light); border-color: var(--c-brand); color: var(--c-brand-dark); }

.fam-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-top: 1px solid var(--c-gray-100);
  justify-content: center;
}
.fam-page-btn { font-size: .62rem; font-weight: 700; color: var(--c-gray-500); cursor: pointer; padding: 2px 6px; border-radius: 5px; }
.fam-page-btn:hover { background: var(--c-brand-light); color: var(--c-brand-dark); }
.fam-page-num { font-size: .62rem; font-weight: 700; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 5px; cursor: pointer; }
.fam-page-num:hover { background: var(--c-gray-100); }
.fam-page-active { background: var(--c-brand); color: #fff; }
.fam-page-ellipsis { font-size: .62rem; color: var(--c-gray-400); }
.fam-page-info { font-size: .6rem; color: var(--c-gray-400); margin-left: auto; }

/* TIMELINE VIEW */
.fam-tl-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray-200);
}
.fam-tl-arrow { background: none; border: 1px solid var(--c-gray-200); border-radius: 6px; width: 22px; height: 22px; font-size: .7rem; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--c-gray-500); }
.fam-tl-date { font-weight: 800; font-size: .72rem; color: var(--c-dark); }
.fam-tl-wrap { overflow-x: auto; padding-bottom: 4px; }

.fam-tl-grid {
  display: flex;
  min-width: 640px;
}
.fam-tl-names {
  width: 110px;
  flex-shrink: 0;
  border-right: 1px solid var(--c-gray-200);
}
.fam-tl-name-head {
  height: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  font-size: .6rem;
  font-weight: 700;
  color: var(--c-gray-400);
  border-bottom: 1px solid var(--c-gray-200);
  background: var(--c-gray-50);
}
.fam-tl-name {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: .63rem;
  font-weight: 700;
  border-bottom: 1px solid var(--c-gray-100);
  background: var(--c-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fam-tl-av { width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: .55rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fam-tl-canvas { flex: 1; position: relative; }
.fam-tl-hours {
  height: 24px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-bottom: 1px solid var(--c-gray-200);
  background: var(--c-gray-50);
  padding: 0;
}
.fam-tl-hours span { font-size: .55rem; color: var(--c-gray-400); display: flex; align-items: center; justify-content: flex-start; padding-left: 4px; border-left: 1px solid var(--c-gray-100); }
.fam-tl-row {
  height: 46px;
  position: relative;
  border-bottom: 1px solid var(--c-gray-100);
  background: var(--c-white);
  overflow: hidden;
}
/* Each hour column = 1/12 of canvas width */
:root { --fam-col: 8.333%; } /* 100% / 12 hours */
.fam-tl-event {
  position: absolute;
  top: 6px;
  height: 34px;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: .55rem;
  overflow: hidden;
  cursor: pointer;
  transition: filter .12s;
}
.fam-tl-event:hover { filter: brightness(.93); }
.fam-tl-event strong { display: block; font-size: .58rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-tl-event small { display: block; font-size: .52rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* MAP VIEW */
.fam-map-wrap { display: flex; height: 300px; }
.fam-map-sidebar { width: 170px; flex-shrink: 0; overflow-y: auto; border-right: 1px solid var(--c-gray-200); background: var(--c-white); }
.fam-map-card { padding: 8px 10px; border-bottom: 1px solid var(--c-gray-100); cursor: pointer; transition: background .12s; }
.fam-map-card:hover { background: var(--c-brand-light); }
.fam-map-card-top { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.fam-map-card-time { font-size: .55rem; color: var(--c-gray-400); margin-left: auto; }
.fam-map-card-title { font-weight: 800; font-size: .68rem; color: var(--c-dark); }
.fam-map-card-type { font-size: .58rem; color: var(--c-gray-500); margin-bottom: 2px; }
.fam-map-card-addr { font-size: .58rem; color: var(--c-gray-500); line-height: 1.4; margin-bottom: 2px; }
.fam-map-card-sub { font-size: .58rem; color: var(--c-gray-500); font-style: italic; }
.fam-map-card-phone { font-size: .58rem; color: var(--c-gray-500); margin: 3px 0; }
.fam-map-card-btns { display: flex; gap: 4px; margin-top: 5px; }

.fam-map-canvas { flex: 1; position: relative; overflow: hidden; }
.fam-map-bg { width: 100%; height: 100%; position: relative; background: #e8f0e8; }

.fam-pin { position: absolute; transform: translate(-50%, -50%); cursor: pointer; }
.fam-pin-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.3); border: 2px solid #fff; transition: transform .15s; }
.fam-pin:hover .fam-pin-dot { transform: scale(1.4); }

.fam-cluster { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--c-gray-400); display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; color: var(--c-gray-700); box-shadow: 0 2px 6px rgba(0,0,0,.18); cursor: pointer; }
.fam-cluster-lg { width: 28px; height: 28px; border-color: var(--c-gray-500); font-size: .65rem; }

/* Responsive: on mobile hide the big mockup */
@media (max-width: 860px) {
  .app-mockup-wrap { display: none; }
}

.panel-grid:has(.app-mockup-wrap) {
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media print {
  .announcement-bar,
  .site-header,
  .back-to-top,
  .hero-visual,
  .nav-toggle { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: underline; }
}

/* ─── SCROLL REVEAL (dodawane przez main.js) ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── FORM NOTICES (dodawane przez main.js po redirect PHP) ─── */
.form-notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.5;
}
.form-notice.msg-success {
  background: rgba(44,197,144,.1);
  border: 1px solid rgba(44,197,144,.35);
  color: #166534;
}
.form-notice.msg-error {
  background: rgba(255,107,53,.1);
  border: 1px solid rgba(255,107,53,.35);
  color: #9a3412;
}

/* ─── FEATURES LIST item fix (::before na li) ─── */
.feat-yes, .feat-no {
  padding-left: 0;
}

/* ─── NAV – dopasowanie wysokości gdy bar jest ukryty ─── */
html {
  scroll-padding-top: calc(var(--nav-h) + var(--bar-h));
}


/* ─── POPRAWKA: FAQ – usunięcie hidden attr obsługi przez CSS ─── */
/* hidden już nie potrzebne – CSS grid-template-rows:0fr ukrywa */
.faq-answer[hidden] { display: grid; }

/* ─── POPRAWKA: Select w formularzu ─── */
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--c-gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--c-gray-700);
  background: var(--c-gray-50);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group select:focus {
  border-color: var(--c-brand);
  background-color: var(--c-white);
  box-shadow: 0 0 0 3px rgba(44,197,144,.15);
}

/* ─── PANELS SECTION: Manager / Technik / Klient ─── */
/* HeroUI Tabs style: pill container + white active indicator */
.panels-tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 40px;
  flex-wrap: nowrap;
  background: var(--c-gray-100);
  border-radius: var(--radius-pill);
  padding: 4px;
  /* wyśrodkowanie całości */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.panel-tab {
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--c-gray-500);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.panel-tab:hover {
  color: var(--c-dark);
  background: rgba(255,255,255,.55);
}
.panel-tab.is-active {
  background: var(--c-white);
  color: var(--c-dark);
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.04);
}

.panel-content { display: none; }
.panel-content.is-active { display: block; }
/* Dla elementów z hidden – JS zarządza klasą i hidden atrybutem */
.panel-content[hidden] { display: none; }

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.panel-desc h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin-bottom: 14px;
}
.panel-desc > p {
  font-size: 1rem;
  color: var(--c-gray-500);
  margin-bottom: 28px;
  line-height: 1.7;
}

.panel-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.panel-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-mid);
  display: inline-grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}

.panel-features li strong {
  display: block;
  font-weight: 800;
  font-size: .9rem;
  color: var(--c-dark);
  margin-bottom: 2px;
}
.panel-features li span {
  font-size: .83rem;
  color: var(--c-gray-500);
  line-height: 1.5;
  display: block;
}

/* Panel mockup */
.panel-visual {}

.panel-mockup {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--c-gray-200);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-mockup-header {
  background: var(--c-dark);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.panel-mockup-title { font-weight: 800; font-size: .85rem; color: var(--c-white); }
.panel-mockup-date  { font-size: .73rem; color: rgba(255,255,255,.45); }

.panel-mockup-map {
  background: #e3f8ef;
  height: 120px;
  position: relative;
  overflow: hidden;
}
.panel-mockup-map .map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44,197,144,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,197,144,.15) 1px, transparent 1px);
  background-size: 18px 18px;
}
.panel-mockup-map .map-pin {
  position: absolute;
  font-size: 16px;
  line-height: 1;
}
.panel-mockup-map .map-pin[data-pos="1"] { top: 14px; left: 28%; }
.panel-mockup-map .map-pin[data-pos="2"] { top: 40px; left: 54%; }
.panel-mockup-map .map-pin[data-pos="3"] { bottom: 10px; left: 70%; }

.panel-mockup-tasks { padding: 14px; }

.panel-mockup-mobile .panel-mockup-tasks { padding: 14px; }

/* Btn row in mobile mockup */
.panel-btn-row {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}
.panel-mock-btn {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 800;
  background: var(--c-gray-100);
  color: var(--c-gray-700);
  border: 1px solid var(--c-gray-200);
}
.panel-mock-btn-cta {
  background: var(--c-cta);
  color: var(--c-white);
  border-color: var(--c-cta);
}

/* Client form mockup */
.panel-mockup-form { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.pmf-field { display: flex; flex-direction: column; gap: 3px; }
.pmf-field span { font-size: .72rem; font-weight: 800; color: var(--c-gray-500); }
.pmf-input {
  background: var(--c-gray-50);
  border: 1px solid var(--c-gray-200);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: .82rem;
  color: var(--c-gray-700);
  font-family: var(--font);
}
.pmf-select { display: flex; justify-content: space-between; color: var(--c-gray-700); }
.pmf-textarea { min-height: 52px; line-height: 1.5; }
.pmf-submit {
  background: var(--c-cta);
  color: var(--c-white);
  border-radius: 6px;
  padding: 11px;
  text-align: center;
  font-weight: 800;
  font-size: .85rem;
  margin-top: 4px;
}



/* ─── STICKY MOBILE CTA BAR (Priorytet 1-A) ─── */
.mobile-cta-bar {
  display: none; /* ukryte na desktopie */
}

@media (max-width: 768px) {
  /*
   * POPRAWKA: Elementy z position:fixed mogą wychodzić poza viewport,
   * gdy strona ma poziomy overflow (jakiś element szerszy niż ekran).
   * Rozwiązanie dwupoziomowe:
   * 1. Na html+body ucinamy poziomy overflow – strona nigdy nie jest
   *    szersza niż ekran, więc left:0/right:0 zawsze = szerokość ekranu.
   * 2. Na samym pasku używamy width:100vw zamiast polegać na left+right,
   *    co gwarantuje dokładną szerokość niezależnie od layoutu rodzica.
   */
  html, body {
    overflow-x: hidden;
  }

  .mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    /* width:100vw = dokładna szerokość ekranu, niezależnie od overflow strony */
    width: 100vw;
    box-sizing: border-box;
    z-index: 9999;
    background: var(--c-white);
    border-top: 1px solid var(--c-gray-200);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(0);
    transition: transform var(--transition);
  }

  .mobile-cta-bar.hidden {
    transform: translateY(110%);
  }

  .mobile-cta-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* flex:1 + min-width:0 = button wypełnia dostępną przestrzeń,
       ale nigdy nie przekroczy kontenera */
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    font-size: .9rem;
    font-weight: 800;
    border-radius: var(--radius-pill);
    box-sizing: border-box;
  }

  .mobile-cta-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--c-gray-100);
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--c-gray-500);
    display: grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
  }

  /* Zapobiegaj zasłonięciu ostatnich elementów przez pasek */
  body {
    padding-bottom: 80px;
  }
}



/* ─── COOKIE CONSENT – dolny pasek ──────────────────────────────
   NIE blokuje scrollowania, NIE bluruje strony. RODO-compliant.
─────────────────────────────────────────────────────────────────*/

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  /* Brak overlay/blur – nie blokuje strony */
  background: transparent;
  padding: 0 0 12px;
  pointer-events: none;   /* kliknięcia przechodzą przez padding */
  animation: cookie-fade-in .3s ease;
}

@keyframes cookie-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Karta – zwarta, pozioma */
.cookie-modal {
  background: var(--c-white, #fff);
  border: 1px solid var(--c-gray-200, #e4e4e7);
  border-radius: 14px;
  box-shadow: 0 -2px 24px rgba(0,0,0,.1), 0 4px 16px rgba(0,0,0,.06);
  padding: 14px 20px;
  width: calc(100% - 32px);
  max-width: 1160px;
  margin: 0 auto;
  pointer-events: auto;  /* karta jest klikalna */

  /* Grid: [tekst] [toggles] [przyciski] */
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px 20px;
}

/* Nagłówek – teraz inline, bez osobnej sekcji */
.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  grid-column: 1;
  min-width: 0;
}

.cookie-modal-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9px;
  background: var(--c-brand-light, #e8faf4);
  border: 1px solid var(--c-brand-mid, #c8f0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-modal-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--c-brand-dark, #22a878);
  display: block;
}

.cookie-modal-title {
  font-size: .88rem;
  font-weight: 800;
  color: var(--c-dark, #18181b);
  margin-bottom: 2px;
  line-height: 1.3;
}

.cookie-modal-desc {
  font-size: .78rem;
  color: var(--c-gray-500, #64748b);
  line-height: 1.5;
  margin: 0;
}
.cookie-modal-desc a {
  color: var(--c-brand-dark, #22a878);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  white-space: nowrap;
}

/* Kategorie – poziomo obok tekstu */
.cookie-categories {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  margin-bottom: 0;
  background: transparent;
}

.cookie-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
}
.cookie-category:hover { background: transparent; }

.cookie-category-info { flex: none; }

.cookie-category-name {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-gray-700, #334155);
  margin-bottom: 0;
  white-space: nowrap;
}

/* Ukryj opis kategorii w poziomym layoucie – za mało miejsca */
.cookie-category-desc { display: none; }

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  display: block;
}
.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-toggle .cookie-toggle-knob {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--c-gray-200, #e4e4e7);
  border: 1px solid var(--c-gray-300, #d1d5db);
  transition: background .2s ease, border-color .2s ease;
}
.cookie-toggle .cookie-toggle-knob::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s ease;
}
.cookie-toggle input:checked + .cookie-toggle-knob {
  background: var(--c-brand, #2cc590);
  border-color: var(--c-brand, #2cc590);
}
.cookie-toggle input:checked + .cookie-toggle-knob::before {
  transform: translateX(16px);
}
.cookie-toggle input:focus-visible + .cookie-toggle-knob {
  outline: 2px solid var(--c-brand, #2cc590);
  outline-offset: 2px;
}

/* Niezbędne – zawsze włączone */
.cookie-toggle-disabled {
  width: 40px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
  cursor: not-allowed;
  opacity: .45;
}
.cookie-toggle-disabled .cookie-toggle-knob {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: var(--c-brand, #2cc590);
  border: 1px solid var(--c-brand, #2cc590);
}
.cookie-toggle-disabled .cookie-toggle-knob::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transform: translateX(16px);
}

/* Przyciski */
.cookie-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  grid-column: 3;
  align-items: stretch;
  min-width: 160px;
}
.cookie-modal-actions .btn {
  justify-content: center;
  white-space: nowrap;
}
.cookie-btn-secondary {
  color: var(--c-brand-dark, #22a878) !important;
  border-color: var(--c-brand, #2cc590) !important;
  background: transparent !important;
}
.cookie-btn-secondary:hover {
  background: var(--c-brand, #2cc590) !important;
  color: #fff !important;
}

/* ─── COOKIE TRIGGER ─── */
.cookie-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  /* Zielone tło – identyczne z .back-to-top */
  background: var(--c-brand, #2cc590);
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(44,197,144,.35);
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.cookie-trigger:hover {
  background: var(--c-brand-dark, #22a878);
  box-shadow: 0 6px 20px rgba(44,197,144,.5);
  transform: translateY(-2px);
}
/* Ikona z pliku assets/images/cookie-icon.svg */
.cookie-trigger img {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
  /* Optyczne dosunięcie jeśli SVG ma nierówne pady wewnętrzne */
  margin: auto;
}

/* display:none – zarządzane przez cookie-consent.js */
.cookie-banner  { display: none; }
.cookie-trigger { display: none; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .cookie-modal {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    padding: 16px;
  }
  .cookie-modal-header  { grid-column: 1 / -1; grid-row: 1; }
  .cookie-categories    { grid-column: 1;       grid-row: 2; gap: 16px; }
  .cookie-modal-actions { grid-column: 2;       grid-row: 2; min-width: 0; }
}

@media (max-width: 560px) {
  .cookie-banner { padding: 0; }
  .cookie-modal {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 18px 16px 20px;
    gap: 14px;
  }
  .cookie-modal-header  { grid-column: 1; grid-row: 1; }
  .cookie-categories {
    grid-column: 1; grid-row: 2;
    flex-direction: row;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--c-gray-200, #e4e4e7);
    border-bottom: 1px solid var(--c-gray-200, #e4e4e7);
  }
  .cookie-category-desc { display: block; font-size: .72rem; color: var(--c-gray-400); text-align: center; margin-top: 3px; }
  .cookie-modal-actions {
    grid-column: 1; grid-row: 3;
    flex-direction: row;
    min-width: 0;
  }
  .cookie-modal-actions .btn { flex: 1; }
}

/* ─── PAIN → SOLUTION SECTION (pkt C) ─── */
.pain-section {
  background: var(--c-dark, #18181b);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
/* Subtelny dot-pattern spójny z hero */
.pain-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Tag na ciemnym tle */
.section-tag-dark {
  color: rgba(44,197,144,.8);
  background: rgba(44,197,144,.1);
  border-color: rgba(44,197,144,.2);
}

.pain-section .section-header h2 {
  color: #fafafa;
}
.pain-section .section-sub {
  color: rgba(250,250,250,.55);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.pain-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--c-radius-lg, 20px);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: border-color .22s ease, background .22s ease;
}
.pain-card:hover {
  border-color: rgba(44,197,144,.3);
  background: rgba(44,197,144,.05);
}

.pain-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(44,197,144,.12);
  border: 1px solid rgba(44,197,144,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pain-icon svg {
  stroke: #2cc590;
  display: block;
}

.pain-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fafafa;
  margin-bottom: 8px;
  line-height: 1.3;
}

.pain-problem {
  font-size: .875rem;
  color: rgba(250,250,250,.5);
  line-height: 1.65;
  margin-bottom: 12px;
}

.pain-solution {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: #2cc590;
  font-weight: 700;
  line-height: 1.5;
}
.pain-solution svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #2cc590;
}

/* ─── URGENCY – pricing activity (pkt G) ─── */
.pricing-activity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--c-gray-500, #64748b);
  font-weight: 600;
  margin-top: 10px;
}
.pricing-activity svg { flex-shrink: 0; animation: pulse-dot 2s ease-in-out infinite; }

/* ─── GUARANTEE – plan gwarancja (pkt H) ─── */
.plan-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: .78rem;
  color: rgba(250,250,250,.45);
  font-weight: 600;
  margin-top: 12px;
  line-height: 1.5;
  text-align: center;
  justify-content: center;
}
.plan-guarantee svg {
  flex-shrink: 0;
  margin-top: 1px;
  stroke: #2cc590;
}

/* ─── RESPONSIVE pain grid ─── */
@media (max-width: 860px) {
  .pain-section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .pain-grid { grid-template-columns: 1fr; gap: 14px; }
  .pain-card { padding: 20px 16px; gap: 14px; }
}

/* ─── Cookie banner/trigger – display zarządzany przez nowy blok cookie CSS powyżej ─── */

/* ═══════════════════════════════════════════════════════
   VIDEO DIALOG — fixed overlay, zero layout shift
   Otwiera się jako <dialog> poza layoutem strony.
   Działa identycznie na desktop, tablecie i mobile.
   Natywna obsługa: Escape, focus trap, backdrop.
═══════════════════════════════════════════════════════ */

/* Reset natywnych stylów <dialog> */
.video-dialog {
  position: fixed;
  inset: 0;
  z-index: 9000;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  /* Ukryty dopóki nie otwarty przez showModal() */
  display: none;
}
.video-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Backdrop – ciemne tło za dialogiem */
.video-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Wewnętrzny kontener – karta dialogu */
.video-dialog-inner {
  width: 90vw;
  max-width: 960px;
  background: var(--c-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 96px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  animation: dialog-in .25s cubic-bezier(.4,0,.2,1) both;
  display: flex;
  flex-direction: column;
}
@keyframes dialog-in {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Nagłówek dialogu */
.video-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.video-dialog-title {
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  font-family: var(--font);
}

/* Przycisk zamknięcia X */
.video-dialog-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.video-dialog-close:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.video-dialog-close:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
}

/* Obszar wideo – aspect-ratio 16:9 */
.video-dialog-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  flex-shrink: 0;
}

/* Natywny element video */
.video-dialog-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Responsive – mobile */
@media (max-width: 600px) {
  .video-dialog-inner {
    width: 100vw;
    max-width: 100vw;
    border-radius: var(--radius) var(--radius) 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    /* Slide up z dołu na mobile */
    animation: dialog-in-mobile .28s cubic-bezier(.4,0,.2,1) both;
  }
  @keyframes dialog-in-mobile {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .video-dialog[open] {
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-dialog-inner { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   BOOKING DIALOG — "Umów konfigurację"
   ─────────────────────────────────────────────────────
   Fixed overlay <dialog>, ten sam mechanizm co video-dialog
   (zero layout shift). Dwie kolumny: lewa = kontekst rozmowy
   (dlaczego warto, jak przebiega), prawa = formularz leadowy.
   Na mobile: kolumny się składają, lewa (kontekst) jest
   domyślnie zwinięta do accordion – widoczny tytuł, lead
   i przycisk rozwijania – tak, żeby pola formularza były
   widoczne bez przewijania całej treści. Przycisk submit
   jest sticky do dołu ekranu na mobile.
═══════════════════════════════════════════════════════ */
.booking-dialog {
  position: fixed;
  inset: 0;
  z-index: 9000;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  display: none;
}
.booking-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-dialog::backdrop {
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.booking-dialog-inner {
  position: relative;
  width: 92vw;
  max-width: 940px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow-x: hidden;
  box-shadow: 0 32px 96px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  animation: dialog-in .25s cubic-bezier(.4,0,.2,1) both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.booking-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.booking-dialog-close:hover { background: rgba(255,255,255,.28); color: #fff; }
.booking-dialog-close:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

/* Lewa kolumna – kontekst rozmowy, ciemne tło spójne z resztą serwisu */
.booking-info {
  background: linear-gradient(160deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: var(--c-white);
  padding: 32px 36px;
}

.booking-info-eyebrow {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 10px;
}

.booking-info-title {
  color: var(--c-white);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 10px;
}

.booking-info-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}

/* Toggle – domyślnie ukryty; pokazywany tylko na mobile (media query niżej) */
.booking-info-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--c-brand);
  font-family: var(--font);
  font-weight: 800;
  font-size: .85rem;
  padding: 4px 0;
  margin-top: 16px;
  cursor: pointer;
}
.booking-info-toggle svg {
  transition: transform var(--transition);
  flex-shrink: 0;
}
.booking-info-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Na desktopie treść szczegółowa jest zawsze widoczna */
.booking-info-details { margin-top: 18px; }

.booking-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.booking-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.booking-feature-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 1px;
}
.booking-feature-icon svg {
  display: block;
  flex-shrink: 0;
}

.booking-feature strong {
  display: block;
  font-weight: 800;
  font-size: .85rem;
  color: var(--c-white);
  margin-bottom: 1px;
}
/* Zawężone do opisu (span zagnieżdżony w div), żeby NIE łapać
   .booking-feature-icon (też jest spanem, ale bezpośrednim dzieckiem
   .booking-feature) i nie nadpisywać mu display:flex wyższą specyficznością. */
.booking-feature div span {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
  display: block;
}

.booking-agenda-title {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  padding-top: 14px;
  margin-bottom: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.booking-agenda {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.booking-agenda-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.booking-agenda-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 8px;
  background: rgba(44,197,144,.15);
  border: 1px solid rgba(44,197,144,.35);
  color: var(--c-brand);
  font-weight: 800;
  font-size: .8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 1px;
}

.booking-agenda-item strong {
  display: block;
  font-weight: 800;
  font-size: .85rem;
  color: var(--c-white);
  margin-bottom: 1px;
}
/* Zawężone do opisu (span zagnieżdżony w div), żeby NIE łapać
   .booking-agenda-num (też jest spanem, ale bezpośrednim dzieckiem
   .booking-agenda-item) i nie nadpisywać mu display:flex wyższą specyficznością. */
.booking-agenda-item div span {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.45;
  display: block;
}

/* Prawa kolumna – formularz */
.booking-form-col {
  padding: 32px 36px;
}

.booking-form-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.booking-form-sub {
  font-size: .85rem;
  color: var(--c-gray-500);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Formularz w modalu jest celowo bardziej zwarty niż formularz kontaktowy
   w sekcji #contact – mniej odstępów między polami = niższy modal,
   mniejsza szansa na wewnętrzny scrollbar na typowych ekranach. */
.booking-form .form-group { margin-bottom: 12px; }

/* Social proof przy formularzu – kompaktowa wersja .contact-social-proof */
.booking-social-proof { padding: 10px 14px; margin-top: 2px; margin-bottom: 0; }

/* Kontener na przycisk – na desktopie zwykły blok w normalnym flow */
.booking-form-actions { margin-top: 14px; }

/* ─────────────────────────────────────────────────
   RESPONSIVE: mobile – karta pełnoekranowa,
   lewa kolumna zwinięta (accordion), sticky submit
───────────────────────────────────────────────── */
@media (max-width: 760px) {
  .booking-dialog-inner {
    grid-template-columns: 1fr;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .booking-info { padding: 36px 24px 20px; }

  /* Szczegóły (4 punkty + agenda) domyślnie zwinięte na mobile.
     max-height trick zamiast grid-rows: 0fr, żeby uniknąć
     "wyciekania" marginesów wewnętrznych przy stanie zwiniętym. */
  .booking-info-details {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height .3s ease, margin-top .3s ease;
  }
  .booking-info.is-expanded .booking-info-details {
    max-height: 900px;
    margin-top: 22px;
  }

  .booking-info-toggle { display: flex; }

  .booking-form-col {
    padding: 24px 24px 0;
    /* Miejsce na sticky pasek z przyciskiem na dole */
    padding-bottom: 100px;
  }

  /* Przycisk zawsze widoczny na dole ekranu – sticky względem
     scrollującego .booking-dialog-inner, żeby użytkownik zawsze
     widział CTA, nawet przewijając treść formularza wyżej. */
  .booking-form-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 24px -24px 0;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--c-white);
    border-top: 1px solid var(--c-gray-200);
    box-shadow: 0 -8px 20px rgba(0,0,0,.06);
  }
  .booking-form-actions .form-note { margin-top: 8px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-dialog-inner { animation: none; }
  .booking-info-details { transition: none; }
}

/* ═══════════════════════════════════════════════════════
   MID-PAGE CTA — po sekcji "Jak to działa"
   HeroUI: gradient dark + brand accent, spójny z cta-band
═══════════════════════════════════════════════════════ */
.mid-cta-section {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-3) 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.mid-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 80% 50%, rgba(44,197,144,.08), transparent);
  pointer-events: none;
}
.mid-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}
.mid-cta-eyebrow {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin-bottom: 10px;
}
.mid-cta-title {
  color: var(--c-white);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 8px;
  line-height: 1.2;
}
.mid-cta-sub {
  color: rgba(255,255,255,.55);
  font-size: .92rem;
}
.mid-cta-actions { flex-shrink: 0; }
.mid-cta-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.mid-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.mid-cta-trust-item svg { stroke: var(--c-brand); flex-shrink: 0; }
@media (max-width: 860px) {
  .mid-cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .mid-cta-section { padding: 44px 0; }
  .mid-cta-actions .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   SOCIAL PROOF przy formularzu kontaktowym
═══════════════════════════════════════════════════════ */
.contact-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-mid);
  border-radius: var(--radius);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.csp-avatars {
  display: flex;
}
.csp-avatars .avatar {
  width: 30px; height: 30px;
  font-size: .6rem;
  border: 2px solid var(--c-white);
  margin-left: -7px;
}
.csp-avatars .avatar:first-child { margin-left: 0; }
.csp-text {
  font-size: .83rem;
  color: var(--c-gray-700);
  font-weight: 600;
  flex: 1;
  min-width: 120px;
  line-height: 1.4;
}
.csp-text strong { color: var(--c-brand-dark); }
.csp-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.csp-stars { color: #f59e0b; font-size: .9rem; letter-spacing: 1px; }
.csp-rating-text { font-size: .75rem; color: var(--c-gray-500); font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   FIELD ERRORS — custom komunikaty walidacji PL
═══════════════════════════════════════════════════════ */
.field-error {
  display: block;
  font-size: .78rem;
  color: var(--c-cta);
  font-weight: 700;
  margin-top: 2px;
  min-height: 1em;
  line-height: 1.3;
}
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: var(--c-cta);
  background: #fff8f6;
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}
.form-group.has-success input,
.form-group.has-success textarea {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(44,197,144,.12);
}

/* Submit button – loading state */
.btn-loading {
  opacity: .7;
  pointer-events: none;
  position: relative;
}
.btn-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   BILLING TOGGLE – oszczędności w PLN
═══════════════════════════════════════════════════════ */
.billing-save strong {
  color: #15803d;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════
   RECALL FORM – field-error pod polem tel w footer
═══════════════════════════════════════════════════════ */
.recall-form .field-error {
  color: rgba(255,255,255,.6);
}

/* ═══════════════════════════════════════════════════════
   VIDEO DIALOG – MIKRO-CTA po zakończeniu filmu
   Pojawia się z animacją slide-up gdy video.ended.
   HeroUI-spójny design: ciemne tło, brand accent, pill CTA.
═══════════════════════════════════════════════════════ */
.video-dialog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg,
    rgba(44,197,144,.12) 0%,
    rgba(44,197,144,.06) 100%);
  border-top: 1px solid rgba(44,197,144,.25);
  flex-wrap: wrap;
  animation: vdc-slidein .35s cubic-bezier(.4,0,.2,1) both;
}
@keyframes vdc-slidein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* hidden zarządzany przez JS – hidden attr */
.video-dialog-cta[hidden] { display: none; }

.vdc-left { flex: 1; min-width: 180px; }

.vdc-label {
  font-size: .92rem;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 3px;
  line-height: 1.3;
}

.vdc-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}

.vdc-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.vdc-btn {
  white-space: nowrap;
  /* Lekki pulse żeby przyciągnąć uwagę po zakończeniu */
  animation: vdc-pulse 2s ease-in-out 1s 2;
}
@keyframes vdc-pulse {
  0%, 100% { box-shadow: var(--shadow-cta); }
  50%       { box-shadow: 0 8px 32px rgba(255,107,53,.65); }
}

.vdc-note {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 600px) {
  .video-dialog-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }
  .vdc-actions {
    align-items: stretch;
    width: 100%;
  }
  .vdc-btn {
    justify-content: center;
    width: 100%;
  }
  .vdc-note { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .video-dialog-cta { animation: none; }
  .vdc-btn          { animation: none; }
}

