/* ============================================================
   OdzyskOZE.pl — 2026 redesign (DESIGN PASS 2)
   Premium eco-tech aesthetic (Enpal/Otovo/Octopus Energy inspired)

   DESIGN SYSTEM DECLARATION:
   - Type scale: 64/48/36/24/20/17/15/13/12 (display → caption)
   - Spacing grid: 8/12/16/24/32/40/48/64/80/120
   - Background palette: off-white (#FAFAF9) + dark-green (#0B1F18)
   - Layout rhythm: 120px section padding, 32px component gaps
   - Section headers: eyebrow (uppercase mono) + h2 (clamp) + lead (17px)
   ============================================================ */
:root {
  /* Palette: deep green/emerald + off-white + amber accent */
  --color-primary: #2EAE66;
  --color-primary-dark: #1E8C4E;
  --color-primary-light: #5ECF8F;
  --color-emerald: #34D399;
  --color-emerald-dark: #10B981;

  --color-accent: #F4C430;
  --color-accent-hover: #E5B82E;
  --color-accent-light: #FFF4CC;

  --color-off-white: #FAFAF9;
  --color-cream: #F5F5EF;
  --color-sand: #E8E8E0;

  /* Dark navy-green for alternating sections */
  --color-dark: #1C4636;
  --color-dark-2: #245240;
  --color-dark-3: #2C5E4A;
  --color-dark-overlay: rgba(28, 70, 54, 0.72);

  /* Improved contrast ratios (WCAG AA compliant) */
  --color-text: #1a1a1a;
  --color-text-light: #2a2a2a;
  --color-text-muted: #5a5a5a;
  --color-text-on-dark: #fafaf9;

  --color-border: rgba(11, 31, 24, 0.12);
  --color-border-light: rgba(11, 31, 24, 0.08);

  --color-warning: #DC2626;
  --color-danger: #B91C1C;
  --color-success: #10B981;

  /* Enhanced shadows for depth */
  --shadow-sm: 0 1px 3px rgba(11, 31, 24, 0.08), 0 1px 2px rgba(11, 31, 24, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 31, 24, 0.10), 0 2px 4px rgba(11, 31, 24, 0.06);
  --shadow-lg: 0 12px 32px rgba(11, 31, 24, 0.14), 0 4px 12px rgba(11, 31, 24, 0.08);
  --shadow-xl: 0 20px 48px rgba(11, 31, 24, 0.18), 0 8px 20px rgba(11, 31, 24, 0.10);
  --shadow-green: 0 12px 40px rgba(14, 124, 58, 0.25), 0 4px 16px rgba(14, 124, 58, 0.15);
  --shadow-accent: 0 12px 40px rgba(244, 196, 48, 0.30), 0 4px 16px rgba(244, 196, 48, 0.18);

  /* Glassmorphism support */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-dark: rgba(28, 70, 54, 0.58);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(12px);

  /* Typography - modern stack */
  --font-head: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Spacing & layout - systematic grid */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 120px;

  --maxw: 1240px;
  --header-h: 72px;

  /* Border radius - consistent scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Animation timing - consistent system */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;
}

/* Dark mode support (system preference) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-off-white: #1A1A18;
    --color-cream: #252520;
    --color-sand: #2A2A28;
    --color-text: #F5F5EF;
    --color-text-light: #C5C5C0;
    --color-text-muted: #9CA3AF;
    --glass-bg: rgba(26, 26, 24, 0.72);
  }
}

/* Reset & base */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-off-white);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========================================
   TYPOGRAPHY SCALE - systematic hierarchy
   Display/Hero: 64px
   H1: 56px
   H2: 48px
   H3: 32px
   H4: 24px
   Body lead: 19px
   Body: 17px
   Small: 15px
   Caption: 13px
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: var(--color-text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
}
h3 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}
h4 {
  font-size: clamp(20px, 2.5vw, 24px);
  letter-spacing: -0.02em;
}
h5 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h6 {
  font-size: 15px;
  font-weight: 600;
}

/* Body text with improved readability */
p, li, td, th, label {
  line-height: 1.7;
  margin: 0;
}

/* Lead paragraphs - emphasize intro text */
.lead {
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--color-text-light);
  max-width: 60ch;
  line-height: 1.7;
  margin-top: var(--space-3);
}

/* Links and interactive */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease-out);
}

a:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Monospace with tabular figures */
.mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-feature-settings: "tnum";
  letter-spacing: 0;
}

/* ========================================
   LAYOUT UTILITIES - systematic spacing
   ======================================== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
}

.section {
  padding: var(--space-10) 0;
  position: relative;
}

.section--tight {
  padding: var(--space-9) 0;
}

.section--compact {
  padding: var(--space-7) 0;
}

.section--dark {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-on-dark);
}

.section--dark p,
.section--dark li {
  color: rgba(245, 245, 239, 0.85);
}

.section--dark .lead {
  color: rgba(245, 245, 239, 0.75);
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 var(--space-3);
  }

  .section {
    padding: var(--space-9) 0;
  }

  .section--tight {
    padding: var(--space-7) 0;
  }

  .section--compact {
    padding: var(--space-6) 0;
  }
}

/* ========================================
   EYEBROW BADGE - consistent styling
   ======================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(14, 124, 58, 0.10);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.eyebrow--invert {
  color: var(--color-accent);
  background: rgba(244, 196, 48, 0.15);
}

.eyebrow--light {
  color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.12);
}

/* ========================================
   SECTION HEADINGS - improved hierarchy
   ======================================== */
.section-head {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section-head--center {
  margin: 0 auto var(--space-8);
  text-align: center;
}

.section-head .h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: var(--space-4);
}

.section-head .lead {
  margin-top: var(--space-3);
}

/* ========================================
   BUTTONS - consistent timing and states
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.btn:hover::before {
  opacity: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(14, 124, 58, 0.35);
}

.btn-primary:active {
  box-shadow: var(--shadow-green);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #E5B82E 100%);
  color: var(--color-text);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(244, 196, 48, 0.40);
}

.btn-sm {
  padding: var(--space-3) var(--space-5);
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--color-primary);
  color: white;
  z-index: 9999;
  border-radius: var(--radius-md);
  transition: top 0.2s;
}

.skip-link:focus { top: 16px; }

/* ========================================
   NAVBAR - sticky with glassmorphism
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(28, 70, 54, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  z-index: 1000;
  transition: all var(--duration) var(--ease-out);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(28, 70, 54, 0.94);
}

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

.nav-links {
  display: flex;
  gap: 8px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 250, 249, 0.85);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease-out);
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(52, 211, 153, 0.16);
}

.nav-cta { display: block; }

.nav-burger {
  display: none;
  padding: 8px;
  border-radius: var(--radius-md);
}

.burger { display: flex; flex-direction: column; gap: 5px; }
.burger i {
  width: 24px; height: 2px; background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
}

.nav-burger[aria-expanded="true"] .burger i:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-burger[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger i:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--color-border-light);
  padding: 16px 24px;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile[style*="display: flex"] {
  animation: slideDown 0.2s var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-mobile-link {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--color-text);
  border-radius: var(--radius-md);
}

.nav-mobile-link:hover {
  background: rgba(14, 124, 58, 0.08);
  color: var(--color-primary);
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-mobile { display: flex; }
}

/* ========================================
   HERO - improved composition
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/solar-farm.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-dark-overlay) 0%,
    rgba(14, 124, 58, 0.75) 50%,
    rgba(11, 31, 24, 0.85) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.hero-content {
  color: var(--color-text-on-dark);
  animation: fadeUp var(--duration-slow) var(--ease-out);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(244, 196, 48, 0.2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.hero h1 {
  color: var(--color-text-on-dark);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 19px);
  color: rgba(245, 245, 239, 0.85);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: 14px;
  color: rgba(245, 245, 239, 0.75);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tick {
  width: 20px; height: 20px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

/* ========================================
   GLASSMORPHISM CARDS - consistent styling
   ======================================== */
.hero-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  animation: fadeLeft var(--duration-slow) var(--ease-out) 0.2s backwards;
}

.counter-card {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  color: var(--color-text-on-dark);
}

.counter-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 245, 239, 0.7);
  margin-bottom: var(--space-4);
}

.counter-value {
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text-on-dark);
  font-feature-settings: "tnum";
  letter-spacing: -0.04em;
}

.counter-unit {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-accent);
  margin-left: var(--space-2);
}

.counter-caption {
  margin-top: var(--space-4);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 245, 239, 0.8);
}

.counter-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  margin: var(--space-8) 0;
}

.counter-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.counter-mini-item {
  text-align: center;
}

.counter-mini-item .v {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-emerald);
  margin-bottom: var(--space-2);
}

.counter-mini-item .l {
  font-size: 13px;
  color: rgba(245, 245, 239, 0.7);
  line-height: 1.4;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding-top: var(--space-10);
  }

  .hero-card, .counter-card {
    animation: fadeUp var(--duration-slow) var(--ease-out) 0.4s backwards;
  }

  .counter-mini {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ========================================
   CARDS - standardized styling
   ======================================== */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 124, 58, 0.2);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.section--dark .card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ========================================
   GRID SYSTEMS
   ======================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
}

/* ========================================
   PROBLEM CARDS - improved hierarchy
   ======================================== */
.problem-card {
  text-align: center;
  padding: var(--space-10) var(--space-8);
}

.problem-emoji {
  font-size: 48px;
  margin-bottom: var(--space-5);
  display: block;
}

.problem-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.problem-card p {
  color: var(--color-text-light);
  line-height: 1.6;
}

.em {
  color: var(--color-primary);
  font-weight: 600;
}

/* ========================================
   CALCULATOR SECTION
    ======================================== */
.calc-section {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 100%);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.calc-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.calc-field {
  margin-bottom: 24px;
}

.calc-field:last-child {
  margin-bottom: 0;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
}

.calc-label .val {
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.result-card {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.result-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.result-range {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.result-range .num {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--color-emerald);
  font-family: var(--font-mono);
}

.result-range .dash {
  font-size: 32px;
  color: rgba(245, 245, 239, 0.5);
}

.result-range .cur {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-accent);
}

.result-subnote {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 245, 239, 0.75);
  margin-bottom: 32px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.result-chip {
  font-size: 13px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
}

.calc-disclaimer {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(245, 245, 239, 0.6);
  margin-top: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 960px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========================================
   ATUTY (Differentiators) - consistent styling
   ======================================== */
.atuty-section {
  background: var(--color-off-white);
}

.atuty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.atut-card {
  position: relative;
  padding: var(--space-10);
}

.atut-num {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-emerald) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
}

.atut-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-3);
  padding-right: var(--space-12);
}

.atut-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: var(--space-5);
}

.atut-result {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 14px;
}

@media (max-width: 960px) {
  .atuty-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ========================================
   PRICES SECTION
   ======================================== */
.prices-section {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 100%);
}

.table-scroll-hint {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.prices-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
}

.prices-table th,
.prices-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.prices-table th {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.th-btn {
  background: none;
  border: none;
  color: inherit;
  font-weight: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prices-table tbody tr:hover {
  background: rgba(14, 124, 58, 0.04);
}

.num-col {
  text-align: right;
  font-family: var(--font-mono);
}

.neg { color: var(--color-warning); }
.hot { color: var(--color-danger); }

.note-cell {
  font-size: 14px;
  color: var(--color-text-light);
}

.prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.prices-bullets {
  font-size: 15px;
}

.prices-bullets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prices-bullets li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.pb-ic {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(14, 124, 58, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.prices-example {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.pe-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(244, 196, 48, 0.15);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  display: inline-block;
}

.pe-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
}

.pe-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pe-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(14, 124, 58, 0.04);
  border-radius: var(--radius-md);
}

.pe-label {
  font-size: 14px;
  color: var(--color-text-light);
}

.pe-val {
  font-size: 18px;
  font-weight: 700;
}

.pe-val--low {
  color: var(--color-text-muted);
}

.pe-val--high {
  color: var(--color-primary);
}

.pe-diff {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prices-source {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 24px;
}

.prices-source a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .prices-grid { grid-template-columns: 1fr; }
}

/* ========================================
   TIMELINE (Jak działa)
   ======================================== */
.timeline {
  position: relative;
  margin-top: 64px;
}

.timeline-track {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-emerald) 100%);
  transform: translateX(-50%);
}

.tl-step {
  position: relative;
  padding: 0 56px;
  margin-bottom: 48px;
}

.tl-step:nth-child(odd) {
  text-align: right;
  width: 50%;
  padding-right: 48px;
  padding-left: 0;
}

.tl-step:nth-child(even) {
  text-align: left;
  width: 50%;
  padding-left: 48px;
  padding-right: 0;
  margin-left: 50%;
}

.tl-node {
  position: absolute;
  top: 0;
  width: 56px;
  height: 56px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.tl-step:nth-child(odd) .tl-node {
  right: -28px;
}

.tl-step:nth-child(even) .tl-node {
  left: -28px;
}

.tl-node span:first-child {
  font-size: 24px;
}

.tl-num {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  background: var(--color-accent);
  color: var(--color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.tl-when {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tl-title {
  font-size: 20px;
  margin-bottom: 12px;
}

.tl-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.timeline-vertical {
  display: none;
}

@media (max-width: 960px) {
  .timeline-track { display: none; }
  .timeline-vertical { display: block; }

  .tlv-step {
    position: relative;
    padding-left: 64px;
    margin-bottom: 40px;
  }

  .tlv-rail {
    position: absolute;
    left: 16px;
    top: 24px;
    bottom: -40px;
    width: 2px;
    background: var(--color-border);
  }

  .tlv-step:last-child .tlv-rail {
    display: none;
  }

  .tlv-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--glass-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
  }

  .tlv-when {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
  }

  .tlv-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .tlv-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
  }
}

/* ========================================
   CASE STUDY CARDS - improved hierarchy
   ======================================== */
.case-section {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 100%);
}

.case-card {
  text-align: center;
  padding: var(--space-10);
}

.hypo-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-warning);
  background: rgba(220, 38, 38, 0.1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
  display: inline-block;
}

.case-amount-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.case-amount {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.case-amount .cur {
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 6px;
  opacity: 0.85;
}

.case-amount .cur {
  font-size: 20px;
  color: var(--color-accent);
  margin-left: var(--space-1);
}

.case-title-sm {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.case-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.hypo-disclaimer {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 600px;
  margin: var(--space-10) auto 0;
}

/* ========================================
   PRICING - improved hierarchy and spacing
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.price-card {
  position: relative;
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
}

.price-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent) 0%, #E5B82E 100%);
  color: var(--color-dark);
  font-size: 12px;
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.price-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-align: center;
}

.price-amount {
  text-align: center;
  margin-bottom: var(--space-2);
}

.price-amount .num {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.price-amount .per {
  font-size: 15px;
  color: var(--color-text-light);
  margin-top: var(--space-2);
}

.price-success {
  text-align: center;
  font-size: 14px;
  color: var(--color-emerald);
  margin-bottom: var(--space-8);
  font-weight: 600;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-8) 0;
  flex: 1;
}

.price-list li {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 15px;
  line-height: 1.5;
}

.price-list .pc {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.price-list .fee {
  font-size: 14px;
  color: var(--color-text-muted);
}

.price-list .plus {
  color: var(--color-primary);
}

.pricing-notes {
  margin-top: var(--space-12);
  text-align: center;
}

.pricing-vat {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.pricing-legal {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ========================================
   FAQ
   ======================================== */
.faq-section {
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 100%);
}

.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  padding: 24px 0;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease-out);
}

.faq-q:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--duration) var(--ease-out);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item--open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-a-wrap {
  display: none;
  padding-bottom: 24px;
}

.faq-item--open .faq-a-wrap {
  display: block;
  animation: fadeDown 0.3s var(--ease-out);
}

.faq-a {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   LEGAL LOGOS
    ======================================== */
.legal-section {
  background: var(--color-off-white);
}

.legal-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.legal-logo {
  width: 120px;
  height: 60px;
  background: var(--glass-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.ll-mark {
  font-size: 24px;
}

.legal-membership {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: var(--color-text-on-dark);
}

.contact-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  position: relative;
  z-index: 2;
}

.contact-side h2 {
  color: var(--color-text-on-dark);
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.contact-points li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.cp {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ========================================
   FORMS
    ======================================== */
.form-stack,
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.req {
  color: var(--color-warning);
}

.input,
.textarea,
.calc-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  color: var(--color-text);
  transition: all var(--duration) var(--ease-out);
}

.input:focus,
.textarea:focus,
.calc-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(14, 124, 58, 0.1);
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.range-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  background: var(--color-off-white);
}

.radio-card:hover {
  border-color: var(--color-primary);
  background: rgba(14, 124, 58, 0.04);
}

.radio-card--on {
  border-color: var(--color-primary);
  background: rgba(14, 124, 58, 0.08);
}

.radio-dot {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  position: relative;
}

.radio-card--on .radio-dot {
  border-color: var(--color-primary);
}

.radio-card--on .radio-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.rc-emoji {
  font-size: 24px;
}

.rc-label {
  font-weight: 600;
  font-size: 15px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(14, 124, 58, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  cursor: pointer;
}

.checkbox-row:hover {
  background: rgba(14, 124, 58, 0.06);
}

.checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
}

.cb-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  position: relative;
  background: var(--color-off-white);
  transition: all var(--duration) var(--ease-out);
}

.checkbox-row:hover .cb-box {
  border-color: var(--color-primary);
}

.checkbox-row input:checked + .cb-box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-row input:checked + .cb-box::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.cb-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
}

.cb-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.field-err {
  font-size: 13px;
  color: var(--color-warning);
  display: none;
}

.form-note {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  display: none;
}

.form-note--success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-note--error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  padding: 64px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 245, 239, 0.7);
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-on-dark);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(245, 245, 239, 0.7);
  transition: color var(--duration) var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-emerald);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.fb-line {
  font-size: 13px;
  color: rgba(245, 245, 239, 0.6);
  margin-bottom: 8px;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========================================
   DIALOG (Lead form)
   ======================================== */
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 31, 24, 0.7);
  backdrop-filter: blur(4px);
}

.dialog {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.3s var(--ease-spring);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dialog-head h3 {
  font-size: 24px;
  margin: 0;
}

.dialog-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 31, 24, 0.06);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-text-light);
  transition: all var(--duration) var(--ease-out);
}

.dialog-close:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-warning);
}

.dialog-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.dialog-result-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--color-success);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 600px;
  margin: 0 auto;
  z-index: 1900;
}

.cookie-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.cookie-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cookie-emoji {
  font-size: 24px;
}

.cookie-head h3 {
  font-size: 18px;
  margin: 0;
}

.cookie-text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-cats {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cookie-cat-label {
  font-size: 15px;
  font-weight: 600;
}

.cookie-lock {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.cookie-cat-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.cookie-toggle {
  width: 44px;
  height: 24px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--duration) var(--ease-out);
}

.cookie-toggle--on {
  background: var(--color-primary);
}

.cookie-toggle--locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease-out);
}

.cookie-toggle--on .cookie-knob {
  transform: translateX(20px);
}

.cookie-cats-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.btn-ghost-cookie {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-ghost-cookie:hover {
  border-color: var(--color-text-light);
}

@media (max-width: 640px) {
  .cookie-wrap {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .cookie-card {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px;
  }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-host {
  position: fixed;
  top: 96px;
  right: 24px;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s var(--ease-spring);
  max-width: 320px;
}

.toast--success {
  border-color: var(--color-success);
}

.toast--error {
  border-color: var(--color-warning);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   ANIMATIONS - consistent timing system
   ======================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-left] {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-reveal-left].is-visible {
  opacity: 1;
  transform: translateX(0);
}

[data-reveal-right] {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-reveal-right].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays */
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hl-warn {
  color: var(--color-warning);
  font-weight: 600;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
