/* ==========================================================================
   VARIABLES & THEME
   ========================================================================== */
:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --text: #0b0d12;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, .10);
  --shadow: 0 22px 50px rgba(16, 24, 40, .10);
  --shadow2: 0 10px 25px rgba(16, 24, 40, .08);
  --r: 26px;
  --blue: #2f6bff;
  --blue2: #1a4fff;
  --green: #22c55e;
  --dot: rgba(2, 6, 23, .10);
  --hero-bg: #FAFAFA;
  --hero-dot: #E5E5E5;
  --hero-blue: #4169E1;
  --hero-blue-hover: #3155C9;
  --cardBorder: rgba(15, 23, 42, .10);
  
}

/* ==========================================================================
   RESET & BASE STYLES (CRITICAL FIX)
   Naprawa ucinania strony na dole + Globalne ustawienia
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden; /* Ukrywa tylko poziomy pasek */
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 520px at 50% 180px, #ffffff 0%, var(--hero-bg) 62%), var(--hero-bg);
  /* FIX: Odblokowanie wysokości */
  height: auto;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

.page {
  position: relative;
  min-height: 100vh;
  /* FIX: Zmiana z hidden na visible/clip, aby treść mogła rosnąć */
  overflow: visible; 
  overflow-x: clip; 
  height: auto;
}

/* Dodatkowy selector ID dla pewności nadpisania */
#top.page {
  overflow: visible !important;
  height: auto !important;
  overflow-x: clip !important;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(250, 250, 250, .75);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.navInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0px;
}

.logoMark {
  width: 100%px;
  height: 41px;
  flex: 0 0 auto;
}

.brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-left: 10px;
}

.brandName {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
  color: #1A1A1A;
}

.brandSub {
  font-weight: 400;
  font-size: 11px;
  color: #666;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(11, 13, 18, .55);
  font-size: 13px;
}

.navlinks a {
  color: inherit;
  text-decoration: none;
  padding: 10px;
  border-radius: 12px;
  transition: .2s;
}

.navlinks a:hover {
  background: rgba(2, 6, 23, .04);
  color: var(--text);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s;
  font-family: Inter, system-ui;
  white-space: nowrap;
}

.btnGhost {
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(15, 23, 42, .12);
  color: var(--text);
}

.btnGhost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}

.btnPrimary {
  padding: 14px 18px;
  color: #fff;
  background: var(--hero-blue);
  box-shadow: 0 16px 26px rgba(65, 105, 225, .18);
  border-radius: 12px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
header.hero.heroLum {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.heroCenter {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.heroBadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 13px;
  margin-bottom: 18px;
}

.heroBadgeDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.heroTitle {
  margin: 0;
  font-family: "Space Grotesk", "DM Sans", Inter, system-ui;
  font-size: clamp(52px, 5.6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #1A1A1A;
  text-wrap: balance;
}

.heroType {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  /* DODAJEMY TU: Rezerwujemy miejsce na najdłuższe słowo + kursor */
  min-width: 6.5em; /* Wartość dobrana eksperymentalnie dla słowa "technologiczną" */
  justify-content: flex-start; /* Upewniamy się, że wszystko startuje z lewej */
}

/* 2. Modyfikujemy element z tekstem, żeby był "ciasny" */
#rotWord {
  /* ZMIENIAMY: Zamiast inline-block dajemy inline */
  display: inline;
  
  /* USUWAMY: Tę linię musisz skasować lub zakomentować */
  /* min-width: 5.5em; */ 
  
  text-align: left;
}

.caret {
  width: 10px;
  height: 1.05em;
  border-radius: 999px;
  background: rgba(65, 105, 225, .65);
  box-shadow: 0 0 0 4px rgba(65, 105, 225, .10);
  display: inline-block;
  transform: translateY(2px);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.heroSub {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #666;
  max-width: 640px;
}

.heroCTA {
  margin-top: 36px;
  height: 58px;
  padding: 0 38px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  background: var(--hero-blue);
  color: #fff;
  transition: .2s;
  box-shadow: 0 20px 50px rgba(65, 105, 225, .22);
  position: relative;
}

.heroCTA:hover {
  background: var(--hero-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(65, 105, 225, .28);
}

.heroCTA:after {
  content: "↗";
  font-weight: 900;
  margin-left: 10px;
  display: inline-block;
  transform: translateY(-1px);
  opacity: .95;
}

.heroMeta {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(229, 229, 229, .95);
  background: rgba(255, 255, 255, .82);
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.heroDots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   SECTIONS & UTILS
   ========================================================================== */
section {
  padding: 100px 0;
}

.centerTitle {
  text-align: center;
  margin-bottom: 32px;
}

.h2 {
  font-family: Sora, Inter;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #1A1A1A;
  margin: 0 0 12px;
}

.muted {
  color: rgba(11, 13, 18, .58);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 780px;
}

.fullBleed {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  background: #F8F8F8;
  border-top: 1px solid rgba(229, 229, 229, .70);
  border-bottom: 1px solid rgba(229, 229, 229, .70);
  padding-top: 72px;
  padding-bottom: 72px;
}

.panel {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--cardBorder);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .06);
  padding: 18px;
}

/* ==========================================================================
   PORTFOLIO SYSTEM
   ========================================================================== */
#portfolio {
  padding: 100px 0;
  background: #fff;
}

.mockGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  margin-top: 50px;
}

.mockup {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--cardBorder);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.1);
}

.mockMedia {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.mockImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mockup:hover .mockImg {
  transform: scale(1.08);
}

.mockLinksRow {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  justify-content: center;
}

.mockLink {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--hero-blue);
  transition: opacity 0.2s;
}

.mockLink.demo {
  color: #22c55e;
}

.mockLink:hover {
  opacity: 0.7;
}

.portfolioFooter {
  margin-top: 60px;
  text-align: center;
}

.btnViewAll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--cardBorder);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btnViewAll:hover {
  border-color: var(--hero-blue);
  color: var(--hero-blue);
  box-shadow: var(--shadow2);
}

.mockItem {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
  border-color: rgba(65, 105, 225, 0.2);
}

.card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f8f9fa;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 18, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

.view-demo-badge {
  background: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  color: #1A1A1A;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4169E1;
  margin-bottom: 12px;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
  color: #1A1A1A;
}

.card-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-link {
  font-weight: 700;
  font-size: 13px;
  color: #1A1A1A;
  text-decoration: none;
}

.card-price {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

/* ==========================================================================
   STUDIO CONFIGURATOR
   ========================================================================== */
.configuratorSection {
  padding: 80px 0;
  background-color: #ffffff;
  width: 100%;
}

.builderLayout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  margin-top: 50px;
  align-items: start;
  position: relative;
}

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

.builderContainer {
  max-width: 1000px;
  margin: 40px auto 0;
}

.configStep {
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInStep 0.6s forwards;
}

.configStep:nth-child(1) { animation-delay: 0.1s; }
.configStep:nth-child(2) { animation-delay: 0.2s; }
.configStep:nth-child(3) { animation-delay: 0.3s; }
.configStep:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInStep {
  to { opacity: 1; }
}

.stepHeader {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.stepNum {
  font-size: 18px;
  font-weight: 800;
  color: #E2E8F0;
  border: 2px solid #E2E8F0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.stepHeader h3 {
  margin: 0;
  font-size: 20px;
  color: #0F172A;
}

.gridThree {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gridFour {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (max-width: 768px) {
  .gridThree, .gridFour { grid-template-columns: 1fr; }
}

.selectCard {
  cursor: pointer;
  display: block;
  position: relative;
}

.calcInput {
  display: none;
}

.cardInner {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 25px;
  height: 100%;
  background: #fff;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.selectCard:hover .cardInner {
  border-color: #94A3B8;
  transform: translateY(-3px);
}

.calcInput:checked + .cardInner {
  border-color: #4169E1;
  background: #F8FAFF;
  box-shadow: 0 10px 20px rgba(65, 105, 225, 0.1);
}

.iconSvg {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: #4169E1;
}

.calcInput:checked + .cardInner .iconSvg {
  color: #2563EB;
  filter: drop-shadow(0 4px 6px rgba(65, 105, 225, 0.3));
}

.details h4 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #1E293B;
}

.details p {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 15px;
  flex-grow: 1;
}

.priceTag {
  font-size: 12px;
  font-weight: 700;
  background: #F1F5F9;
  padding: 5px 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.calcInput:checked + .cardInner .priceTag {
  background: #4169E1;
  color: #fff;
}

.checkRow {
  cursor: pointer;
}

.checkContent {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  transition: 0.2s;
}

.checkRow:hover .checkContent {
  border-color: #94A3B8;
}

.calcInput:checked + .checkContent {
  border-color: #4169E1;
  background: #F8FAFF;
}

.checkContent strong {
  font-size: 14px;
  color: #1E293B;
  display: block;
}

.checkContent small {
  font-size: 11px;
  color: #64748B;
  display: block;
}

.cPrice {
  margin-left: auto;
  font-weight: 700;
  font-size: 13px;
  color: #4169E1;
}

.cBox {
  width: 18px;
  height: 18px;
  border: 2px solid #CBD5E1;
  border-radius: 4px;
}

.calcInput:checked + .checkContent .cBox {
  background: #4169E1;
  border-color: #4169E1;
}

.finalBlock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0F172A;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

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

.resultPanel {
  padding: 40px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.resHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

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

.liveBadge {
  background: #22c55e;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.resPrice .label {
  display: block;
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 5px;
}

.bigNum {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.resGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.resItem span {
  display: block;
  font-size: 12px;
  color: #94A3B8;
}

.resItem strong {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-top: 5px;
}

.resFeatures strong {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
  color: #E2E8F0;
}

.resFeatures ul {
  padding: 0;
  list-style: none;
  margin: 0;
  font-size: 13px;
  color: #CBD5E1;
}

.resFeatures li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.resFeatures li::before {
  content: "✓";
  color: #4169E1;
  position: absolute;
  left: 0;
  font-weight: 700;
}

.formPanel {
  padding: 40px;
  background: #1E293B;
}

.formPanel h3 {
  color: #fff;
  margin: 0 0 5px;
  font-size: 20px;
}

.formPanel p {
  color: #94A3B8;
  font-size: 14px;
  margin: 0 0 25px;
}

.inputGroup {
  margin-bottom: 15px;
}

.formPanel input,
.formPanel textarea {
  width: 100%;
  background: #0F172A;
  border: 1px solid #334155;
  color: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 14px;
}

.formPanel textarea {
  height: 80px;
  resize: none;
}

.formPanel input:focus,
.formPanel textarea:focus {
  border-color: #4169E1;
  outline: none;
}

.submitBtn {
  width: 100%;
  background: #4169E1;
  color: #fff;
  border: none;
  padding: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
}

.submitBtn:hover {
  background: #3b82f6;
}

.msg {
  display: none;
  margin-top: 15px;
  font-size: 13px;
  text-align: center;
}

.msg.success {
  color: #4ade80;
}

.msg.error {
  color: #f87171;
}

.legalNote {
  font-size: 10px;
  color: #64748b;
  margin-top: 15px;
  line-height: 1.4;
  text-align: center;
  opacity: 0.7;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */
.trustSection {
  padding: 80px 0;
  background: #fff;
}

.trustGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.trustCard {
  background: #fff;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.trustCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.1);
}

.cardAccent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.cardAccent.green {
  background: #10B981;
}

.cardAccent.blue {
  background: #3B82F6;
}

.cardAccent.purple {
  background: #8B5CF6;
}

.cardIconBox {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cardIconBox svg {
  width: 24px;
  height: 24px;
}

.greenBg {
  background: #ECFDF5;
  color: #059669;
}

.blueBg {
  background: #EFF6FF;
  color: #2563EB;
}

.purpleBg {
  background: #F5F3FF;
  color: #7C3AED;
}

.trustCard h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 12px 0;
}

.trustCard p {
  font-size: 14px;
  line-height: 1.7;
  color: #64748B;
  margin: 0 0 25px 0;
  flex-grow: 1;
}

.trustTag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 99px;
}

.greenTag {
  background: #D1FAE5;
  color: #065F46;
}

.blueTag {
  background: #DBEAFE;
  color: #1E40AF;
}

.purpleTag {
  background: #EDE9FE;
  color: #5B21B6;
}

/* ==========================================================================
   "O MNIE" SECTION
   ========================================================================== */
#o-mnie {
  padding: 80px 0;
  background: rgba(250, 250, 250, .50);
  position: relative;
  overflow: hidden;
}

#o-mnie::before {
  content: "";
  position: absolute;
  inset: -40px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  
  background-repeat: no-repeat;
  background-position: 50% 46%; /* Wyśrodkowanie */
  
  /* ZMIANA 1: Podstawiamy Twój plik */
  background-image: url("/assets/images/logo_omnie.png"); 
  
  /* ZMIANA 2: Dostosuj wielkość (możesz zmienić np. na 500px) */
  background-size: min(360px, 90vw); 
  
  /* ZMIANA 3: Opacity - PNG może być bardziej widoczny, więc warto dostosować */
  opacity: 0.05; 
  
  /* ZMIANA 4: Jeśli nie chcesz, żeby logo było pochylone, usuń tę linię */
  transform: rotate(-7deg); 
}

.oMnieContent {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.oMnieBrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.oMnieLogo {
  width: 40px;
  height: 40px;
}

.oMnieText {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.oMnieName {
  font-weight: 700;
  font-size: 20px;
  color: #1A1A1A;
}

.oMnieSub {
  font-weight: 400;
  font-size: 13px;
  color: #666;
}

.oMnieTitle {
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
}

.oMnieDesc {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.oMnieIcons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.oMnieIcon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255, 255, 255, .80);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #444;
  transition: .2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.oMnieIcon:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.oMnieIcon svg {
  width: 24px;
  height: 24px;
}

.oMnieIconWhatsapp:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

.oMnieIconTelegram:hover {
  background: #0088cc;
  color: white;
  border-color: #0088cc;
}

.oMnieAuthor {
  display: block;
  margin-top: 14px;
  font-size: 12.5px;
  opacity: .75;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testGrid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.tCard {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: .18s;
}

.tCard:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 107, 255, .18);
  box-shadow: 0 22px 60px rgba(16, 24, 40, .10);
}

.tQuote {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(11, 13, 18, .70);
}

.tFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tPerson {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tAvatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(12px 12px at 30% 30%, rgba(255, 255, 255, .85), transparent 55%), linear-gradient(135deg, rgba(47, 107, 255, .22), rgba(47, 107, 255, .10));
  border: 1px solid rgba(47, 107, 255, .20);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  color: rgba(32, 87, 255, .95);
}

.tName {
  font-weight: 900;
  font-size: 13px;
  color: rgba(11, 13, 18, .84);
  margin: 0;
}

.tRole {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(11, 13, 18, .50);
  line-height: 1.3;
}

.tMetric {
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, .22);
  background: rgba(34, 197, 94, .10);
  color: rgba(22, 163, 74, .92);
}

/* ==========================================================================
   FAQ REDESIGN (TOTAL OVERRIDE)
   ========================================================================== */
#faq {
  padding: 80px 0;
  padding-bottom: 120px; /* Zapas na dole */
  background: #fff;
  position: relative;
  z-index: 50; /* Wyższy Z-index niż stopka */
  /* Nie używamy overflow: hidden na sekcji, żeby treść mogła wypychać stronę */
  overflow: visible; 
}

.faqList {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 51;
}

.faqItem {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  /* FIX: Przywrócono hidden, żeby rogi były zaokrąglone */
  overflow: hidden !important; 
  transition: border-color 0.2s ease;
}

.faqItem:hover {
  border-color: #CBD5E1;
}

.faqQ {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.faqQ:hover {
  background: #F8FAFC;
}

.faqQuestion {
  font-size: 16px;
  font-weight: 600;
  color: #1E293B;
  padding-right: 15px;
}

.faqIcon {
  flex-shrink: 0;
  color: #64748B;
  transition: transform 0.3s ease, color 0.3s ease;
}

.faqQ[aria-expanded="true"] .faqIcon {
  transform: rotate(45deg);
  color: #4169E1;
}

.faqQ[aria-expanded="true"] .faqQuestion {
  color: #4169E1;
}

/* FAQ CONTENT - LOGIKA "PANCERNA"
   Używamy display: block zamiast animacji grid, aby zmusić przeglądarkę do przeliczenia wysokości
*/
.faqA {
  display: none; /* Domyślnie ukryte */
  background: #fff;
  border-top: 1px solid #F1F5F9;
}

/* Gdy aria-expanded="true", pokaż jako blok */
.faqQ[aria-expanded="true"] + .faqA {
  display: block;
}

.faqAInner {
  padding: 15px 24px 30px 24px; /* Duży padding na dole dla bezpieczeństwa */
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  border-top: 1px solid rgba(15, 23, 42, .10);
  padding-top: 48px;
  padding-bottom: 32px;
  margin-top: 0;
  background: rgba(248, 248, 248, .80);
  position: relative;
  z-index: 10;
}

.footerContainer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.footerInner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

@media (max-width: 980px) {
  .footerInner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footerBrand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 980px) {
  .footerBrand {
    align-items: center;
  }
}

.footerAbout {
  font-size: 14px;
  color: rgba(11, 13, 18, .58);
  line-height: 1.6;
  max-width: 320px;
}

@media (max-width: 980px) {
  .footerAbout {
    max-width: 100%;
  }
}

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

.footerLinksTitle {
  font-weight: 700;
  font-size: 14px;
  color: rgba(11, 13, 18, .82);
  margin-bottom: 8px;
}

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

@media (max-width: 980px) {
  .footerLinks {
    align-items: center;
  }
}

.footerLinks a {
  font-size: 13px;
  color: rgba(11, 13, 18, .55);
  text-decoration: none;
  transition: .2s;
  font-weight: 500;
}

.footerLinks a:hover {
  color: var(--hero-blue);
}

.footerRight {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 980px) {
  .footerRight {
    align-items: center;
  }
}

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

.footerContactLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(11, 13, 18, .55);
  text-decoration: none;
  transition: .2s;
}

.footerContactLink:hover {
  color: var(--hero-blue);
}

.footerSocial {
  display: flex;
  gap: 12px;
  margin-left: 80px;
}

@media (max-width: 980px) {
  .footerSocial {
    justify-content: center;
    margin-left: 0;
  }
}

.footerSocialLink {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(255, 255, 255, .70);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-blue);
  transition: .2s;
}

.footerSocialLink:hover {
  background: var(--hero-blue);
  border-color: var(--hero-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(65, 105, 225, .25);
}

.footerBottom {
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, .08);
  text-align: center;
  font-size: 12px;
  color: rgba(11, 13, 18, .40);
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Opcjonalnie: Zmniejsz czcionkę Hero na telefonach, żeby się mieściła */
@media (max-width: 768px) {
  .heroTitle {
    font-size: 36px; /* Mniejszy font na mobile */
  }
  #rotWord {
    min-width: auto; /* Na mobile może być auto, jeśli tekst łamie się do nowej linii */
  }
}/* ==========================================================================
   MOBILE & RESPONSIVE FIXES
   ========================================================================== */

/* Ukrywamy hamburgera na desktopie */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

.bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: #1A1A1A;
  transition: all 0.3s ease-in-out;
}

/* --- MEDIA QUERY: TABLETY I TELEFONY (poniżej 980px) --- */
@media (max-width: 980px) {

  /* 1. Hamburger widoczny */
  .hamburger {
    display: block;
  }

  /* 2. Menu mobilne (Slide-in) */
  .navlinks {
    position: fixed;
    top: 0;
    right: -100%; /* Schowane poza ekranem */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.3s ease-in-out;
    padding-top: 60px;
  }

  /* Klasa dodawana przez JS, żeby wysunąć menu */
  .navlinks.active {
    right: 0;
  }

  .navlinks a {
    font-size: 18px;
    font-weight: 600;
  }

  /* 3. Animacja Hamburgera w "X" */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 4. Mniejsze paddingi sekcji (żeby nie marnować miejsca) */
  section {
    padding: 60px 0; /* Zamiast 100px */
  }
  
  header.hero.heroLum {
    padding: 100px 0 60px; /* Mniejszy Hero */
  }

  /* 5. Naprawa Gridów (żeby kafelki nie wyjeżdżały) */
  .mockGrid, .trustGrid, .builderLayout, .footerInner {
    grid-template-columns: 1fr; /* Jedna kolumna na mobile */
    gap: 30px;
  }
  
  /* Naprawa konfiguratora na mobile */
  .builderLayout {
    display: flex;
    flex-direction: column-reverse; /* Panel wyników pod spodem lub nad */
  }
  
  /* Naprawa FAQ */
  .faqQ {
    padding: 15px;
  }
  .faqQuestion {
    font-size: 15px;
  }
}

/* --- TELEFONY BARDZO MAŁE (np. iPhone SE) --- */
@media (max-width: 380px) {
  .heroTitle { font-size: 32px; }
  .btnPrimary { width: 100%; text-align: center; }
}
/* ==========================================================================
   PREMIUM LOADER
   ========================================================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Białe tło */
  z-index: 99999; /* Zawsze na samej górze */
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Płynna animacja wyjazdu w górę (jak kurtyna) */
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Klasa, która zostanie dodana przez JS, żeby schować loader */
#loader.loaded {
  transform: translateY(-100%); /* Wyjazd w górę */
}

/* Stylizacja logo w loaderze */
.loader-logo {
  width: 80px; /* Rozmiar logo - dostosuj wg uznania */
  height: auto;
  
  /* Subtelne pulsowanie "oddechu" */
  animation: logoPulse 2s infinite ease-in-out;
}

@keyframes logoPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
/* ==========================================================================
   PRO COOKIES WIDGET
   ========================================================================== */
.cookies-box {
  position: fixed;
  bottom: 24px;
  right: 24px; /* Prawy dolny róg - standard w nowoczesnym UI */
  width: 360px;
  max-width: calc(100% - 48px); /* Żeby na telefonie nie wyszło poza ekran */
  
  background: rgba(15, 23, 42, 0.95); /* Ciemny granat, prawie nieprzezroczysty */
  backdrop-filter: blur(10px); /* Efekt rozmycia tła pod spodem */
  color: #fff;
  
  padding: 16px 20px;
  border-radius: 12px; /* Nowoczesne zaokrąglenia */
  box-shadow: 0 10px 40px rgba(0,0,0,0.3); /* Mocny, elegancki cień */
  border: 1px solid rgba(255,255,255,0.1); /* Subtelna obwódka */
  
  z-index: 10000; /* Musi być wysoko, ale niżej niż loader */
  
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  
  /* Animacja wejścia */
  transform: translateY(100px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efekt "sprężynki" przy wejściu */
  pointer-events: none; /* Żeby nie klikać jak jest niewidoczny */
}

/* Klasa aktywna - baner wjeżdża */
.cookies-box.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.cookies-text {
  font-size: 13px;
  line-height: 1.4;
  color: #94A3B8; /* Szary, czytelny tekst */
}

.cookies-text a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.cookies-btn {
  background: #4169E1; /* Twój Royal Blue */
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap; /* Żeby się nie złamał */
}

.cookies-btn:hover {
  background: #3658C9; /* Ciemniejszy niebieski po najechaniu */
}

/* Na telefonach dajemy na środek */
@media (max-width: 600px) {
  .cookies-box {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%) translateY(100px); /* Wyśrodkowanie + schowanie */
    left: auto;
    width: calc(100% - 40px);
  }
  
  .cookies-box.show {
    transform: translateX(50%) translateY(0); /* Wyśrodkowanie + pokazanie */
  }
}/* ==========================================================================
   FIX: NAPRAWA TŁA I CZCIONEK (WKLEJ NA SAM DÓŁ PLIKU)
   ========================================================================== */

/* 1. Ustawienie zmiennych (dla pewności) */
:root {
  --bg-gray-fix: #F8FAFC; /* Jasny szary do "zebry" */
  --font-fix: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 2. Globalne wymuszenie czcionki w nagłówkach i treści */
body, h1, h2, h3, h4, h5, button, input, textarea, 
.heroTitle, .card-title, .faqQuestion, .stepHeader h3 {
  font-family: var(--font-fix) !important;
}

/* --- RYTM SEKCJI (ZEBRA) --- */

/* Sekcja O MNIE - Szare tło */
#o-mnie {
  background-color: var(--bg-gray-fix) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Sekcja PORTFOLIO - Białe tło (bez zmian) */
#portfolio {
  background-color: #ffffff !important;
}
/* Poprawka fontów w kartach portfolio */
.card-tag, .case-link, .card-price {
  font-family: var(--font-fix) !important;
}

/* Sekcja WYCENA (KALKULATOR) - Szare tło */
.configuratorSection {
  background-color: var(--bg-gray-fix) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
/* Karty w kalkulatorze muszą być białe, żeby odstawały od szarego tła */
.selectCard .cardInner, 
.checkRow .checkContent {
  background-color: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1);
}
/* Tytuły kroków w kalkulatorze */
.stepHeader h3 {
  color: #0F172A !important;
  font-weight: 800 !important;
}

/* Sekcja STANDARDY (ZAUFALI MI) - Białe tło */
.trustSection {
  background-color: #ffffff !important;
}
.trustCard h3, .trustCard p, .trustTag {
  font-family: var(--font-fix) !important;
}

/* Sekcja FAQ - Szare tło */
#faq {
  background-color: var(--bg-gray-fix) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
/* Karty FAQ muszą być białe */
.faqItem {
  background-color: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.faqQ, .faqA {
  font-family: var(--font-fix) !important;
}
.faqQuestion {
  font-weight: 700 !important;
  color: #1E293B !important;
}