/* ================================================================
   1. NAVBAR - DARK NAVY MODERN
   ================================================================ */

nav {
  background: #1f2b52;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
}

.nav-link-white {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link-white:hover {
  color: #F1E7CD;
}

/* Dropdown hover - gold color */
nav .absolute.top-full a:hover {
  color: #F1E7CD !important;
}

.btn-primary-gold {
  background: #fff;
  color: #1f2b52;
  border: 1.5px solid #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn-primary-gold:hover {
  background: #F1E7CD;
  color: #1f2b52;
  border-color: #F1E7CD;
}

/* ================================================================
   2. BASE STYLES
   ================================================================ */

html {
  scroll-behavior: smooth;
}

body {
  opacity: 1;
  padding-top: 80px;
}


/* ================================================================
   2. LANGUAGE TOGGLE - pure CSS, cannot break
   ================================================================ */

body.lang-pl .en {
  display: none !important;
}

body.lang-en .pl {
  display: none !important;
}


/* ================================================================
   3. PAGE NAVIGATION
   ================================================================ */

.page {
  display: none;
}

.page.active {
  display: block;
}

/* Ukryj wszystko do momentu załadowania JS */
body:not(.js-ready) .page {
  display: none !important;
  visibility: hidden !important;
}
body.js-ready .page {
  display: none;
}
body.js-ready .page.active {
  display: block;
  visibility: visible;
}


/* ================================================================
   4. HERO SECTION & 3D
   ================================================================ */

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: none;
}

.hero-3d {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.hero-content {
  position: relative;
  z-index: 10;
}


/* ================================================================
   5. CARDS & GLASS EFFECT
   ================================================================ */

.card-3d {
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
}

.card-3d:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(31, 43, 82, .15);
}

.stat-glass {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: all .4s;
}

.stat-glass:hover {
  background: rgba(255, 255, 255, .12);
  transform: translateY(-4px);
}


/* ================================================================
   6. SECTIONS WITH BACKGROUND IMAGES
   ================================================================ */

.section-dark {
  background: linear-gradient(rgba(31, 43, 82, .92), rgba(29, 35, 39, .95)),
    url('https://images.unsplash.com/photo-1761073991372-58f6376ea3f4?fm=jpg&q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
}

.page-hero {
  background: linear-gradient(rgba(31, 43, 82, .92), rgba(29, 35, 39, .94)),
    url('https://images.unsplash.com/photo-1779470457779-8dd1d1b649ef?fm=jpg&q=80&w=2000&auto=format&fit=crop') center/cover no-repeat !important;
  position: relative !important;
  padding: 3rem 0 !important;
  min-height: 300px !important;
  display: flex !important;
  align-items: center !important;
}

.page-hero > div {
  padding: 2rem 1rem !important;
}

.page-hero-back {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #F1E7CD !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin-bottom: 1.5rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.page-hero-back:hover {
  gap: 0.75rem !important;
  color: #fff !important;
}

.page-hero-back svg {
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.3s ease !important;
}

.page-hero-back:hover svg {
  transform: translateX(-2px) !important;
}

.page-hero-accent {
  width: 40px !important;
  height: 2px !important;
  background: #F1E7CD !important;
  margin-bottom: 1.5rem !important;
  display: inline-block !important;
}

h1.page-hero {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(2rem, 6vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #fff !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.5px !important;
}

p.page-hero {
  font-size: clamp(15px, 4vw, 18px) !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  max-width: 600px !important;
  font-weight: 400 !important;
  margin-top: 1rem !important;
}

@media (max-width: 640px) {
  .page-hero {
    padding: 2rem 0;
    min-height: 240px;
  }

  .page-hero > div {
    padding: 1.5rem 1rem;
  }

  h1.page-hero {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.75rem;
  }

  p.page-hero {
    font-size: 13px;
    margin-top: 0.5rem;
  }

  .page-hero-back {
    font-size: 12px;
    margin-bottom: 1rem;
  }

  .page-hero-accent {
    margin-bottom: 1rem;
  }
}


/* ================================================================
   7. NAVIGATION LINKS
   ================================================================ */

.nav-link {
  cursor: pointer;
  transition: color .2s;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: #F1E7CD;
}


/* ================================================================
   8. FAQ ACCORDION
   ================================================================ */

.faq-q {
  cursor: pointer;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a.open {
  max-height: 600px;
}


/* ================================================================
   9. ANIMATIONS
   ================================================================ */

.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}


/* ================================================================
   10. MARQUEE / LOGO CAROUSEL
   ================================================================ */

.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 0 1.75rem;
  flex-shrink: 0;
}

.marquee-set img {
  height: 2.25rem;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: all .3s;
}

.marquee-set img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}


/* ================================================================
   11. TYPOGRAPHY: PROSE
   ================================================================ */

.prose-c h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #1f2b52 !important;
  margin-top: 70px !important;
  margin-bottom: 20px !important;
}

.prose-c h4 {
  font-weight: 700;
  color: #1f2b52;
  margin-top: 1.25rem;
  margin-bottom: .4rem;
}

.prose-c p {
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.prose-c ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.prose-c ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.prose-c li {
  margin-bottom: .4rem;
}

.prose-c table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.prose-c .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  width: 100%;
}

.prose-c th {
  background: #1f2b52;
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .9rem;
}

.prose-c td {
  padding: .75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #4b5563;
  font-size: .95rem;
}

.prose-c b,
.prose-c strong {
  color: #1f2b52;
}


/* ================================================================
   12. PRIMARY BUTTON
   ================================================================ */

.btn-primary {
  background: #F1E7CD;
  color: #000;
  font-weight: 500;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 14px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #F1E7CD;
}

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


/* ================================================================
   13. SECONDARY BUTTON - OUTLINE
   ================================================================ */

.btn-secondary {
  background: #fff;
  color: #000;
  font-weight: 500;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 8px;
  border: 2px solid #F1E7CD;
  transition: all .3s;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-2px);
}


/* ================================================================
   14. TRUST BADGES
   ================================================================ */

.trust-badges {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #4b5563;
  flex-wrap: wrap;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* ================================================================
   15. STICKY CTA MOBILE
   ================================================================ */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1f2b52;
  padding: 16px;
  z-index: 40;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sticky-cta button {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}


/* ================================================================
   16. CUSTOM OVERRIDES (Twoje modyfikacje klas Tailwind)
   ================================================================ */

.text-base {
  font-size: 14px !important;
  line-height: 20px !important;
}

/* Przycisk "zarezerwuj konsultacje" i "poznaj nasze usługi" */
.py-4 {
  padding-top: 15px !important;
  padding-bottom: 10px !important;
}

.px-4 {
  padding-left: 0rem !important;
  padding-right: 0rem !important;
}

/* Kolor "Doradztwo biznesowe w Krakowie" */
.text-teal-600 {
  color: #2E1F00 !important;
}

/* Przycisk "bezpłatna konsultacja" w menu */
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Logo w menu */
.h-7 {
  height: 20px !important;
}

.bg-inv-navy {
  background-color: none !important;
}

/* Wysokości tytułów i opisów w sekcji "Co oferujemy?" */
p.mb-4 {
  height: 60px !important;
  font-size: 15px !important;
}

.mb-3 {
  height: 60px !important;
}

.font-white {
  color: #fff !important;
}


/* ================================================================
   17. RESPONSIVE DESIGN
   ================================================================ */

@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary,
  .btn-whatsapp {
    padding: 14px 24px;
    font-size: 14px;
    width: 100%;
  }

  .trust-badges {
    gap: 8px;
    font-size: 12px;
  }

  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .sticky-cta {
    display: none;
  }
}

/* ================================================================
   18. NEW CTA SECTION - MINIMALISTYCZNA
   ================================================================ */

.cta-bg {
  background: #1f2b52;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(241, 231, 205, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(241, 231, 205, 0.04) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}

.accent-line {
  width: 60px;
  height: 1px;
  background: #F1E7CD;
  display: inline-block;
  vertical-align: middle;
}

.cta-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: all 0.3s ease;
}

.cta-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta-input:focus {
  outline: none;
  border-color: #F1E7CD;
  background: rgba(255, 255, 255, 0.08);
}

.cta-button {
  background: #F1E7CD;
  color: #1f2b52;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effects handled by Tailwind classes */

.trust-icon {
  width: 16px;
  height: 16px;
  color: #F1E7CD;
  flex-shrink: 0;
}

/* ================================================================
   18.5. WHY POLAND SECTION - MINIMALISTYCZNA
   ================================================================ */

.why-section {
  background: #1f2b52;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(241, 231, 205, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(241, 231, 205, 0.04) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: #F1E7CD;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-top: 0.75rem;
}

.stat-item {
  position: relative;
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(241, 231, 205, 0.2), transparent);
  }
}

@media (max-width: 767px) {
  .stat-item + .stat-item {
    border-top: 1px solid rgba(241, 231, 205, 0.1);
  }
}

.why-heading {
  color: #fff;
}

/* ================================================================
   SECTION SUBTITLES - UNIFIED STYLE
   ================================================================ */

.section-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.why-description {
  color: rgba(255, 255, 255, 0.7);
}

.section-accent-line {
  width: 40px;
  height: 2px;
  background: #F1E7CD;
}

.why-cta {
  color: #F1E7CD;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid #F1E7CD;
  padding-bottom: 4px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.why-cta:hover {
  color: #fff;
  border-color: #fff;
  gap: 12px;
}

.why-cta svg {
  transition: transform 0.3s ease;
}

.why-cta:hover svg {
  transform: translateX(3px);
}

/* ================================================================
   19. NEW FOOTER - KLASYCZNY ALE ELEGANTSZY
   ================================================================ */

.footer-new {
  background: #0d1429;
  color: #fff;
}

.footer-link {
  position: relative;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #F1E7CD;
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: #F1E7CD;
}

.footer-link:hover::after {
  width: 100%;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.social-btn:hover {
  background: #F1E7CD;
  color: #1f2b52;
  border-color: #F1E7CD;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F1E7CD;
  margin-bottom: 1.5rem;
}

.footer-divider {
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  height: 1px;
}

/* ================================================================
   20. TESTIMONIALS - MODERN CARDS WITH QUOTES
   ================================================================ */

.testimonials-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.testimonials-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #1f2b52;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: #fff;
  border-left: 4px solid #F1E7CD;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(31, 43, 82, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(31, 43, 82, 0.12);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: #FFC107;
  font-size: 14px;
  margin-bottom: 1.25rem;
  letter-spacing: 2px;
}

.testimonial-quote {
  position: relative;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.quote-mark {
  font-size: 48px;
  color: rgba(241, 231, 205, 0.3);
  position: absolute;
  top: -10px;
  left: -5px;
  font-family: 'Georgia', serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  font-style: italic;
  padding-left: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1f2b52;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2b52;
  margin-bottom: 2px;
}

.author-country {
  font-size: 12px;
  color: #999;
}

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

/* ================================================================
   21. BLOG TEASER SECTION - ELEGANCKIE KARTKI
   ================================================================ */

.blog-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.blog-card:hover {
  border-color: #F1E7CD;
  box-shadow: 0 12px 40px rgba(31, 43, 82, 0.08);
  transform: translateY(-4px);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1f2b52;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}

.blog-card-content {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1f2b52;
  background: #F1E7CD;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.blog-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 1rem;
}

.blog-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1f2b52;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  flex-grow: 1;
}

.blog-card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1f2b52;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  width: fit-content;
}

.blog-card:hover .blog-card-arrow {
  background: #F1E7CD;
  color: #1f2b52;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(241, 231, 205, 0.3);
  transform: translateY(-2px);
}

.blog-card-arrow svg {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.blog-card:hover .blog-card-arrow svg {
  transform: translateX(3px);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.blog-header-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #1f2b52;
  margin-bottom: 0.5rem;
}

.blog-header-left p {
  font-size: 15px;
  color: #999;
}

.blog-header-link {
  color: #F1E7CD;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.blog-header-link:hover {
  gap: 12px;
  color: #1f2b52;
}

.blog-header-link svg {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.blog-header-link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-header-link {
    margin-top: 1rem;
  }
}

/* ================================================================
   22. SERVICES SECTION - ELEGANCKIE KARTKI
   ================================================================ */

.service-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  border-color: #F1E7CD;
  box-shadow: 0 12px 40px rgba(31, 43, 82, 0.08);
  transform: translateY(-4px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(241, 231, 205, 0.15);
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: #1f2b52;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(241, 231, 205, 0.3);
}

.service-card:hover .service-icon svg {
  transform: scale(1.1);
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1f2b52;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-description {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1f2b52;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card:hover .service-btn {
  background: #F1E7CD;
  color: #1f2b52;
  gap: 10px;
}

.service-btn svg {
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.service-card:hover .service-btn svg {
  transform: translateX(3px);
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #1f2b52;
  margin-bottom: 0.75rem;
}

/* ================================================================
   23. STATS/TRUST BAR SECTION - DUŻE LICZBY
   ================================================================ */

.stats-section {
  background: #1f2b52;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(241, 231, 205, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(241, 231, 205, 0.03) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.stat-card {
  padding: 3rem 2rem;
  border-bottom: 2px solid rgba(241, 231, 205, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

@media (max-width: 768px) {
  .stat-card {
    padding: 2.5rem 1.5rem;
  }
}

.stat-card:hover {
  border-bottom-color: #F1E7CD;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 700;
  color: #F1E7CD;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

@media (min-width: 769px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-card {
    border-right: 1px solid rgba(241, 231, 205, 0.1);
    border-bottom: none;
    padding: 3rem 2rem;
  }
  .stat-card:last-child {
    border-right: none;
  }
  .stat-card:hover {
    border-right-color: #F1E7CD;
    border-bottom-color: transparent;
  }
}

.stat-card:hover .stat-number {
  color: #fff;
}

.stat-card:hover .stat-label {
  color: #F1E7CD;
}

/* ================================================================
   24. WHY INVESTYA SECTION - KARTKI Z IKONKĄ U GÓRY
   ================================================================ */

.why-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-card:hover {
  border-color: #F1E7CD;
  box-shadow: 0 12px 40px rgba(31, 43, 82, 0.08);
  transform: translateY(-4px);
}

.why-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: rgba(241, 231, 205, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.why-icon svg {
  width: 36px;
  height: 36px;
  color: #1f2b52;
  transition: transform 0.3s ease;
  stroke-width: 1.5;
}

.why-card:hover .why-icon {
  background: rgba(241, 231, 205, 0.3);
}

.why-card:hover .why-icon svg {
  transform: scale(1.2);
}

.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1f2b52;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.why-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.why-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.why-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #1f2b52;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .why-card {
    padding: 2rem 1.5rem;
  }

  .why-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.25rem;
  }

  .why-icon svg {
    width: 32px;
    height: 32px;
  }
}

/* ================================================================
   COMPREHENSIVE MOBILE RESPONSIVE - ALL SCREENS
   ================================================================ */

@media (max-width: 640px) {
  /* General spacing */
  body {
    font-size: 14px;
  }

  /* Sections padding */
  section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .py-32 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .py-24 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  /* Headings */
  h1, h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  /* Hero section */
  .hero-content {
    padding: 2rem 1rem;
  }
  
  .hero-3d .hero-content {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  
  .hero-3d h1 {
    font-size: clamp(40px, 10vw, 56px) !important;
    margin-bottom: 1.25rem;
    line-height: 1.1 !important;
  }
  
  .hero-3d p {
    font-size: 14px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }
  
  .hero-3d .btn-primary,
  .hero-3d .btn-secondary {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 14px;
  }
  
  .hero-3d .trust-badges {
    display: none;
  }

  /* CTA Buttons */
  .flex.flex-col.sm\:flex-row {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .cta-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 13px;
    font-weight: 700;
  }

  /* Stats Grid - 2x2 on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .stat-card {
    padding: 1rem 0.75rem;
    text-align: center;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-card:nth-child(odd):nth-last-child(-n+2),
  .stat-card:nth-child(even):nth-last-child(-n+2) {
    border-bottom: none;
  }

  .stat-number {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .stat-label {
    font-size: 12px;
    font-weight: 500;
  }

  /* Service cards */
  .service-card {
    padding: 1.5rem 1.25rem;
    text-align: center;
  }

  .service-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
  }

  .service-icon svg {
    width: 26px;
    height: 26px;
  }

  .service-title {
    font-size: 16px;
    margin-bottom: 0.75rem;
    font-weight: 600;
  }

  .service-description {
    font-size: 14px;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  .service-btn {
    padding: 0.75rem 1.5rem;
    font-size: 12px;
    width: 100%;
    font-weight: 600;
  }

  /* CTA Section */
  .bg-inv-navy.rounded-2xl h3,
  .bg-inv-navy.rounded-2xl h2 {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 1rem;
  }

  .bg-inv-navy.rounded-2xl p {
    font-size: 14px;
    margin-bottom: 1.5rem;
    line-height: 1.5;
  }

  .bg-inv-navy.rounded-2xl .btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 14px;
  }

  /* Prose content */
  .prose-c {
    padding: 0 1rem;
  }

  .prose-c h2,
  .prose-c h3 {
    padding: 0 0.5rem;
  }

  .prose-c h3 {
    font-size: 22px !important;
    margin-top: 40px !important;
    margin-bottom: 14px !important;
  }

  .prose-c p {
    font-size: 14px;
    margin-bottom: 1.25rem;
  }

  .prose-c table {
    font-size: 12px;
    margin: 1.5rem 0;
    min-width: 400px;
  }

  .prose-c > div > div[style*="overflow-x"],
  .prose-c div[style*="overflow-x:auto"] {
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem;
  }

  .prose-c th,
  .prose-c td {
    padding: 0.6rem 0.5rem;
    font-size: 12px;
  }

  .prose-c th {
    font-size: 13px;
    font-weight: 600;
  }

  /* Blog cards */
  .blog-card {
    padding: 0.75rem;
  }

  .blog-card img {
    height: 140px;
  }

  .blog-header {
    font-size: 14px;
  }

  /* Why cards */
  .why-card {
    padding: 1.25rem 1rem;
  }

  .why-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.75rem;
  }

  .why-icon svg {
    width: 26px;
    height: 26px;
  }

  .why-card h3 {
    font-size: 15px;
    margin-bottom: 0.5rem;
  }

  .why-card p {
    font-size: 13px;
  }

  /* Testimonial cards */
  .testimonial-card {
    padding: 1rem;
  }

  .testimonial-stars {
    font-size: 12px;
    margin-bottom: 1rem;
  }

  .testimonial-text {
    font-size: 13px;
    padding-left: 0.75rem;
  }

  .quote-mark {
    font-size: 36px;
    top: -5px;
  }

  .author-avatar {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .author-name {
    font-size: 12px;
  }

  /* Buttons */
  .btn-primary {
    padding: 0.75rem 1rem;
    font-size: 12px;
  }

  /* FAQ */
  .faq-q {
    padding: 0.75rem 1rem;
    font-size: 13px;
  }

  .faq-a {
    padding: 0.75rem 1rem;
  }

  .faq-a p {
    font-size: 13px;
  }

  /* Grid adjustments */
  .grid {
    gap: 1rem;
  }

  .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid.md\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .grid.lg\:grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .grid.grid-cols-2 {
    grid-template-columns: 1fr;
  }

  /* Section spacing */
  .mb-14 {
    margin-bottom: 1rem;
  }

  .mb-20 {
    margin-bottom: 1.5rem;
  }

  .gap-8 {
    gap: 0.75rem;
  }

  .space-x-6 {
    gap: 0.5rem;
  }

  /* Trust badges */
  .trust-icon {
    width: 13px;
    height: 13px;
  }

  /* Language toggle */
  .lang-btn {
    padding: 0.25rem 0.4rem;
    font-size: 9px;
  }

  /* Sticky CTA */
  .sticky-cta {
    padding: 1rem;
  }

  /* Responsive max-widths */
  .max-w-4xl {
    padding: 0 1rem;
  }

  .max-w-7xl {
    padding: 0 1rem;
  }

  /* Remove hover transforms on mobile */
  .hover\:-translate-y-1:hover {
    transform: none !important;
  }

  /* CTA banner text */
  .cta-bg h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.2;
  }

  .cta-bg p {
    font-size: 13px;
    line-height: 1.5;
  }
}
