/* -------------------------------------------------------------------------- */
/* DESIGN SYSTEM & STYLESHEET: ALUPAM FINANSE                                  */
/* Style Direction: Modern Corporate (Rounded, Shadowed, Premium)           */
/* Inspired by: kredytwroclaw.pl                                             */
/* -------------------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

/* --- Theme Tokens --- */
:root {
  /* Dark Mode (Default) */
  --bg-primary: #121212;
  --bg-surface: #1e1e1e;
  --bg-darker: #090909;
  --text-primary: #f8fafc;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #0f766e; /* Teal */
  --accent-light: #14b8a6; /* Light Teal */
  --accent-hover: #0d9488;
  --accent-contrast: #121212;
  --border-color: #27272a;
  --border-color-hover: #14b8a6;

  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --oferteo-orange: #f97316;

  --transition-speed: 0.3s;

  /* Geometry & Shadows */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);

  /* Layout */
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.65;
  font-weight: 300; /* Zmniejszona grubość tekstu body */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
  overflow-x: hidden;
}

strong {
  font-weight: 700; /* Zwiększona grubość dla tagu strong */
}

/* --- Global Layout & Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center {
  text-align: center;
}

section {
  padding: 6.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  section,
  .benefits-section,
  .trust-banner,
  .process-section-split {
    border-bottom: none !important;
  }
  section {
    padding: 4.5rem 0;
  }
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.35;
}

.pre-heading {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

p {
  color: var(--text-secondary);
}

/* --- Buttons & UI Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-light);
  color: var(--accent-contrast);
  border-color: var(--accent-light);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --- Form Controls --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent-light);
}

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(9, 9, 9, 0.85); /* #090909 z przezroczystością */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background-color var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

[data-theme="dark"] header {
  background-color: rgba(9, 9, 9, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.logo-text span {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: all var(--transition-speed) ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-light);
}

/* Kontakt Button - bez zaokrągleń w kolorze brandowym */
.nav-links a.nav-btn-kontakt {
  background-color: var(--accent-light);
  color: #090909 !important;
  padding: 0.65rem 1.5rem;
  border-radius: 0 !important;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a.nav-btn-kontakt:hover {
  background-color: transparent;
  color: var(--accent-light) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background-color: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 992px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    background-color: rgba(9, 9, 9, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .header-actions .btn-call {
    display: none;
  }
}

/* --- Hero Section (Bauen Style) --- */
.hero-section {
  padding: 0;
  background-color: var(--bg-surface); /* #1e1e1e */
  height: 800px;
  display: flex;
  overflow: hidden;
}

.hero-banner {
  width: 90%; /* 10% wolnego miejsca z lewej */
  height: 100%; /* Pełna wysokość sekcji */
  margin-left: auto; /* Wyrównanie do prawej */
  position: relative;
  background-image: url("dream_home.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 12rem 5rem; /* Zwiększony padding na górze i na dole wewnątrz zdjęcia */
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  color: #ffffff;
}

.hero-banner-content .pre-heading {
  color: var(--accent-light);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.hero-banner-content h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-banner-content .lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-banner-content .btn-group {
  gap: 1.5rem;
}

.hero-banner-content .btn {
  border-radius: 0 !important;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.1rem 2.5rem;
}

@media (max-width: 768px) {
  .hero-banner,
  .vision-hero-banner,
  .safe-hero-banner {
    width: 100% !important;
    height: auto !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hero-overlay {
    background: rgba(0, 0, 0, 0.85);
  }
  
  .hero-banner-content h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }
  
  .hero-banner-content .lead {
    font-size: 1.05rem !important;
    margin-bottom: 2.25rem !important;
    line-height: 1.55 !important;
  }
  
  .hero-banner-content .btn-group,
  .hero-banner-content .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 1rem !important;
    display: flex !important;
  }
  
  .hero-banner-content .btn-group .btn,
  .hero-banner-content .hero-actions .btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal !important;
    line-height: 1.4 !important;
    padding: 1rem 1.25rem !important;
    text-align: center;
  }
}

/* --- Services/Benefits Section (Bauen Style) --- */
.benefits-section {
  background-color: var(--bg-surface);
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  border-bottom: 1px solid var(--border-color);
}

.benefits-bg-watermark {
  position: absolute;
  right: -2%;
  bottom: -10%;
  width: 65%;
  height: 90%;
  background-image: url("services_bg_toupscale_upscaled.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right bottom;
  pointer-events: none;
  z-index: 1;
}

.benefits-container-inner {
  position: relative;
  z-index: 2;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 5rem;
}

.benefit-column {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color var(--transition-speed) ease;
}

.benefit-column:hover {
  border-top-color: var(--accent-light);
}

.benefit-column-icon {
  font-size: 2rem;
  color: var(--accent-light);
  margin-bottom: 2rem;
}

.benefit-column h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.benefit-column p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.benefit-column-number {
  margin-top: auto;
  padding-top: 2.5rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  text-align: right;
  transition: color var(--transition-speed) ease;
}

.benefit-column:hover .benefit-column-number {
  color: rgba(20, 184, 166, 0.08);
}

@media (max-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

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

/* --- About Me Section --- */
.about-section {
  background-color: var(--bg-surface); /* #1e1e1e */
  color: #ffffff;
  border-bottom: none !important;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-content h2 {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 4rem;
}

.stat-item {
  background-color: var(--bg-primary); /* #121212 */
  padding: 2rem 1.5rem;
  border-radius: 0;
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.stat-number {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.about-image-wrapper {
  border-radius: 0px !important; /* No rounded corners */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); /* Increased box shadow */
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-image-wrapper {
    order: -1;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .benefits-bg-watermark {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem !important;
  }
  
  .about-stats .stat-item {
    padding: 1.25rem 1rem !important;
  }
  
  .about-stats .stat-number {
    font-size: 1.85rem !important;
    margin-bottom: 0.25rem !important;
  }
  
  .about-stats .stat-label {
    font-size: 0.7rem !important;
  }
}

/* --- Trust Banner (Bank Logos) --- */
.trust-banner {
  padding: 6.5rem 0 8rem 0;
  background-color: #1e1e1e;
  border-bottom: 1px solid var(--border-color);
}

.logos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem 4.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.bank-logo {
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: all var(--transition-speed) ease;
}

.bank-logo img {
  max-height: 100%;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* filter: grayscale(1); */ /* Tymczasowo wyłączone */
  transition: all var(--transition-speed) ease;
}

.bank-logo:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.bank-logo:hover img {
  /* filter: grayscale(0); */ /* Tymczasowo wyłączone */
}

@media (max-width: 768px) {
  .logos-container {
    gap: 2.25rem 1.75rem !important;
  }

  .bank-logo {
    height: 2.25rem;
  }

  .process-bg-watermark {
    display: none !important;
  }
}

/* --- Process Section (Krok po kroku - ASYMETRYCZNY SPLIT) --- */
.process-section-split {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  padding: 6.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative; /* Pozwala na pozycjonowanie znaku wodnego */
}

.process-bg-watermark {
  position: absolute;
  left: 0;
  bottom: 0; /* Równo z dołem kontenera */
  width: 50%;
  height: 450px;
  background-image: url("process_bg_toupscale_upscaled.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left bottom;
  pointer-events: none;
  z-index: -1; /* Renderuj za tekstami wewnątrz kontenera */
}

.split-container {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  position: relative;
  z-index: 2; /* Nakłada teksty na znak wodny */
}

.split-left {
  flex: 0 0 40%;
}

.split-left h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 0 0 1.5rem 0;
  color: #ffffff;
}

.split-left p {
  color: #9ca3af;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.split-btn {
  display: inline-block;
  border: 1px solid var(--accent-light);
  color: var(--accent-light);
  text-decoration: none;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  transition: all var(--transition-speed) ease;
  border-radius: 0;
  background: transparent;
}

.split-btn:hover {
  background-color: var(--accent-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.split-right {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
}

.split-step {
  display: flex;
  gap: 2.5rem;
  padding: 3.5rem 0;
  border-top: 1px solid #1f2937;
}

.split-step:first-child {
  padding-top: 0;
  border-top: none;
}

.step-number {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}

.step-content h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: #ffffff;
}

.step-content p {
  color: #9ca3af;
  line-height: 1.65;
  margin: 0;
  font-size: 0.9375rem;
}

@media (max-width: 992px) {
  .split-container {
    flex-direction: column;
    gap: 3rem;
  }
  .split-left {
    position: relative;
    top: 0;
    flex: 1 1 auto;
    text-align: center;
  }
  .split-right {
    flex: 1 1 auto;
    width: 100%;
  }
  .split-step {
    padding: 2.5rem 0;
    gap: 1.5rem;
  }
  .step-number {
    font-size: 2.5rem;
  }
}

.process-link-wrapper {
  margin-top: 2.5rem;
  padding-left: 5.5rem; /* desktop step content align */
}

@media (max-width: 992px) {
  .process-link-wrapper {
    padding-left: 4rem; /* tablet step content align */
  }
}

@media (max-width: 768px) {
  .process-link-wrapper {
    padding-left: 0;
    text-align: center; /* center on mobile */
    margin-top: 1.5rem;
  }
}

/* --- Reviews Section (Oferteo Premium Layout) --- */
.reviews-split-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.reviews-visual {
  border-radius: 0;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.reviews-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.reviews-intro-content {
  display: flex;
  flex-direction: column;
}

.reviews-intro-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.reviews-intro-content h2 span {
  color: var(--oferteo-orange); /* Highlight orange */
}

.oferteo-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.oferteo-brand-logo {
  height: 2.5rem;
}

.oferteo-brand-logo svg {
  height: 100%;
  fill: var(--oferteo-orange);
}

.reviews-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-modern-card {
  background-color: var(--bg-surface);
  border: 1px solid rgba(37, 99, 235, 0.15); /* Cienki, jednolity błękitny border na całości */
  border-radius: 0;
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-speed) ease;
}

.review-modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.review-user-info {
  display: flex;
  flex-direction: column;
}

.user-info-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-info-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card-oferteo-logo {
  height: 1.25rem;
  fill: var(--oferteo-orange);
}

.review-card-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic; /* Editorial quote style */
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-card-footer-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--oferteo-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-speed) ease;
}

.review-card-footer-link:hover {
  color: var(--text-primary);
}

@media (max-width: 992px) {
  .reviews-split-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .oferteo-row {
    justify-content: center;
  }

  .reviews-visual {
    max-width: 500px;
    margin: 0 auto;
  }

  .reviews-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* --- Calculator Section --- */
.calc-section {
  background-color: var(--bg-surface);
}

.calc-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.calc-container {
  background-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.calc-widget-placeholder {
  width: 100%;
  min-height: 560px;
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .calc-container {
    padding: 1.5rem;
  }
}

/* --- FAQ Section (Accordion) --- */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

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

.faq-trigger {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform var(--transition-speed) ease;
  color: var(--accent-light);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
}

.faq-content-inner {
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* --- Contact & CTA Section (Premium Solid Dark Box) --- */
.contact-section {
  background-color: #1e1e1e;
  border-bottom: none;
}

.contact-section .pre-heading {
  color: var(--accent-light);
}

.contact-section h2,
.contact-section p,
.contact-section .form-group label {
  color: #ffffff;
}

.contact-section p {
  opacity: 0.75;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info .lead {
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon {
  color: var(--accent-light);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.contact-item-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
}

.contact-item-link {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.contact-item-link:hover {
  color: var(--accent-light);
}

.contact-item-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

/* Contact Form Overrides for dark background */
.contact-form-container {
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form-container .form-control {
  background-color: rgba(15, 23, 42, 0.3);
  border-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 0;
}

.contact-form-container .form-control:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.contact-form-container .btn-primary {
  background-color: var(--accent-light);
  color: var(--accent-contrast);
  border-color: var(--accent-light);
  width: 100%;
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}

.contact-form-container .btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
}

@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-container {
    padding: 2.25rem;
  }
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-form-container .btn-primary {
    white-space: normal !important; /* Pozwala na zawijanie tekstu na przycisku na mobile */
    height: auto;
    padding: 1.25rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .contact-item-link {
    font-size: 1rem;
    word-break: break-all; /* Zapobiega przepełnieniu przez długi email */
  }

  .contact-info h2 {
    font-size: 1.5rem; /* Zmniejszenie fontu nagłówka na najmniejszych ekranach */
  }
}

/* --- Footer --- */
footer {
  background-color: #090909;
  color: #64748b;
  font-size: 0.75rem;
  padding: 4.5rem 0 3rem 0;
  border-top: 1px solid #1c1c1e;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2.5fr;
  gap: 3.5rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1c1c1e;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

.footer-menu h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-legal p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.footer-bottom-links a:hover {
  color: #94a3b8;
}

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

/* --- Floating Sticky Call Button (Mobile) --- */
.floating-call-btn {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: var(--accent-light);
  color: #ffffff;
  border: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 99;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  text-decoration: none !important;
}

@media (max-width: 992px) {
  .floating-call-btn {
    display: flex;
  }
}

/* --- Vision & Safe Home Additional Sections (Bauen Layout) --- */
.vision-hero-section {
  background-color: #1e1e1e !important;
  border-bottom: none !important; /* Usuwa divider na dole sekcji */
}

.vision-hero-banner {
  margin-left: 0 !important;
  margin-right: auto !important; /* Puste miejsce 10% po prawej stronie */
  background-image: url("vision_home.jpeg") !important;
  padding-left: calc(
    10% + 5rem
  ) !important; /* Wyrównanie początku tekstu z lewej jak w hero */
}

.vision-hero-banner .lead {
  margin-bottom: 3.5rem !important; /* Większy odstęp między opisem a przyciskiem */
}

.safe-hero-section {
  background-color: var(--bg-surface) !important; /* #1e1e1e */
  border-bottom: none !important; /* Usuwa divider na dole sekcji (dolny) */
}

.safe-hero-banner {
  background-image: url("https://images.unsplash.com/photo-1698154050481-7e2d38610ce8?q=80&w=1740&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") !important;
}

/* Usuwamy dolny divider kalkulatora (czyli górny divider sekcji safe) */
.calc-section {
  border-bottom: none !important;
}

@media (max-width: 768px) {
  .vision-hero-banner,
  .safe-hero-banner {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  
  /* Zabezpieczenie przed wyjeżdżaniem tekstu na przyciskach w hero na mobile */
  .hero-banner-content .btn-group .btn,
  .hero-banner-content .hero-actions .btn {
    white-space: normal !important;
    line-height: 1.4 !important;
    padding: 1rem 1.25rem !important;
    text-align: center;
  }
}

/* --- Section Text Links (O mnie, Proces, Kalkulator) --- */
.section-text-link {
  color: var(--accent-light) !important;
  font-weight: 400 !important;
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-light);
  transition: all var(--transition-speed) ease;
  font-size: 1rem;
  display: inline-block;
}

.section-text-link:hover {
  border-bottom-style: solid;
  color: var(--accent-hover) !important;
  border-bottom-color: var(--accent-hover);
}
