/**
 * ITNOW — UI/UX polish (SaaS-grade refinements, same brand identity).
 * Hover / transitions: 250–350 ms. No layout or color palette changes.
 */

/* —— Global typography & spacing —— */
#main > section {
  letter-spacing: -0.01em;
}

.section-lead {
  line-height: 1.65;
}

.prose-body {
  line-height: 1.7;
}

/* —— Header / nav —— */
#site-header .site-logo {
  height: 2.125rem;
  width: auto;
  transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
  #site-header .site-logo {
    height: 2.625rem;
  }
}

#site-header .site-logo:hover {
  opacity: 0.92;
}

#site-header .nav-link {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

#site-header .nav-link::after {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* —— Hero —— */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(5, 10, 20, 0.14);
}

.hero-bg-media .hero-bg-img {
  filter: brightness(0.86) saturate(0.95);
}

.hero-copy {
  padding-top: 0.25rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 1024px) {
  .hero-copy {
    padding-right: 1.5rem;
  }
}

.hero-heading {
  font-size: clamp(2.45rem, 5.5vw, 3.65rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero-heading {
    font-size: clamp(2.75rem, 5vw, 3.85rem) !important;
  }
}

@media (min-width: 1280px) {
  .hero-heading {
    font-size: 3.95rem !important;
  }
}

.hero-lead {
  margin-top: 1.75rem !important;
  line-height: 1.7 !important;
}

.hero-actions {
  margin-top: 2.25rem !important;
  gap: 0.875rem !important;
}

.btn-hero {
  min-height: 3.125rem;
  padding: 0.75rem 1.625rem;
  border-radius: 0.625rem;
  font-size: 1rem;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    filter 0.3s ease;
}

.btn-hero--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 12px 32px rgba(255, 59, 59, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-hero--secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background-color: rgba(5, 10, 18, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-float-card.reveal-visible {
  animation: hero-card-float 5.5s ease-in-out infinite;
  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.hero-float-card.reveal-visible:hover {
  animation-play-state: paused;
  border-color: rgba(255, 59, 59, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 59, 59, 0.15);
}

@keyframes hero-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* —— Service cards —— */
.service-card {
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.32s ease;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 59, 59, 0.22);
    box-shadow:
      0 20px 44px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 59, 59, 0.1),
      0 0 36px rgba(255, 59, 59, 0.1);
  }
}

.service-card.tilt-card:hover {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-4px);
}

.service-card-icon svg {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-icon svg {
  transform: scale(1.08);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card-text {
  line-height: 1.7;
}

/* —— Trust / partners —— */
.trust-panel {
  background: linear-gradient(145deg, #0a1525 0%, #0d1e32 48%, #0a182a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.28);
}

.trust-panel-heading {
  color: #f8fafc;
}

.trust-panel-lead {
  color: #94a3b8;
  line-height: 1.65;
}

.trust-marquee-item img {
  opacity: 0.52;
  filter: grayscale(0.15);
  transition:
    opacity 0.32s ease,
    filter 0.32s ease,
    transform 0.32s ease;
}

.trust-marquee-item:hover img {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.04);
}

/* —— Stats —— */
.stats-grid {
  gap: 0;
}

.stats-item {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 59, 59, 0.1);
  border: 1px solid rgba(255, 59, 59, 0.18);
}

.stats-icon svg {
  width: 1.625rem;
  height: 1.625rem;
}

.stats-value {
  font-size: clamp(2.125rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats-label {
  margin-top: 0.625rem;
}

.stats-desc {
  margin-top: 0.625rem;
  line-height: 1.65;
}

/* —— About —— */
.about-list {
  margin-top: 2.25rem !important;
  gap: 0;
}

.about-list li {
  padding: 0.875rem 0;
}

.about-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-list-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgba(255, 59, 59, 0.14);
  border: 1px solid rgba(255, 59, 59, 0.22);
}

.about-photo-frame {
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 48px rgba(255, 59, 59, 0.08);
  transition: box-shadow 0.35s ease;
}

.about-photo-frame:hover {
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 59, 59, 0.12),
    0 0 56px rgba(255, 59, 59, 0.12);
}

.about-intro {
  line-height: 1.7;
  margin-top: 1.125rem;
}

/* —— CTA banner —— */
.cta-banner-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 80% at 85% 20%,
    rgba(255, 255, 255, 0.14),
    transparent 55%
  );
}

.cta-banner-btn {
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.3s ease;
  min-height: 3.125rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.cta-banner-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 255, 255, 0.12);
}

/* —— Footer —— */
.site-footer {
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.site-footer-grid {
  gap: 2.75rem;
}

@media (min-width: 1024px) {
  .site-footer-grid {
    gap: 3rem;
  }

  .site-footer-col + .site-footer-col {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-footer-col:first-child {
    padding-right: 0.5rem;
  }
}

.site-footer-col h3 {
  letter-spacing: 0.1em;
  margin-bottom: 0.125rem;
}

.site-footer-col ul {
  margin-top: 1.125rem !important;
}

.site-footer-col li {
  line-height: 1.55;
}

.site-footer-col a {
  transition: color 0.3s ease;
}

.site-footer-desc {
  line-height: 1.7;
  margin-top: 1.125rem;
}

.site-footer-bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
}

/* —— Section breathing room —— */
#riesenia,
#o-nas {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  #riesenia,
  #o-nas {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

#blog {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .hero-float-card {
    animation: none !important;
  }

  .btn-hero,
  .service-card,
  .cta-banner-btn,
  .trust-marquee-item img {
    transition: none !important;
  }

  .hero-float-card:hover,
  .service-card:hover,
  .btn-hero:hover,
  .cta-banner-btn:hover {
    transform: none !important;
  }
}
