.scrolling {
  animation: fadeInDown 0.9s 1;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 5px 2px rgb(0 0 0 / 10%);
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

.scrolling.is-bg-transparent-text-white {
  background: linear-gradient(105deg, rgba(5, 18, 40, 0.97), rgba(8, 39, 76, 0.95));
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(2, 12, 28, 0.28);
}

.scrolling.is-bg-transparent-text-dark {
  background: rgba(255, 255, 255, 0.95);
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  100% {
    opacity: 1;
    transform: translateZ(0);
  }
}

.swiper-wrapper {
  transition-timing-function: linear;
}

.reveal-text {
  display: inline-block;
  position: relative;
  transform: translateY(100%);
  translate-origin: top left;
  animation: text-reveal 2s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

/* Other CSS */
.hero-slider .swiper-slide {
  overflow: hidden;
}
.hero-slider .swiper-slide .hero-bg-img {
  transform: scale(1.25);
  transition: all 1.5s ease;
}
.hero-slider .swiper-slide-active .hero-bg-img {
  transform: scale(1);
}

.section-service .service-list {
  grid-auto-rows: 1fr;
}

.section-service .service-card {
  transform: scale(1);
  transition: transform 240ms ease;
}

.section-service .service-card:hover,
.section-service .service-card:focus-visible {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .section-service .service-card {
    transition: none;
  }

  .section-service .service-card:hover,
  .section-service .service-card:focus-visible {
    transform: none;
  }
}

.hero-slider .swiper-slide h4,
.hero-slider .swiper-slide h1,
.hero-slider .swiper-slide p,
.hero-slider .swiper-slide a {
  transform: translateY(25%);
  opacity: 0;
  transition: all 0.65s ease;
  transition-delay: 1.25s;
}
.hero-slider .swiper-slide h4,
.hero-slider .swiper-slide-active h1,
.hero-slider .swiper-slide-active p,
.hero-slider .swiper-slide-active a {
  transform: translateY(0%);
  opacity: 1;
}

/* Style for the loader */
.fullpage_loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0d0e1d; /* Light background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensure the loader is on top of everything */
}

/* Loader spinner */
.spinner {
  border: 4px solid #fff; /* Light gray */
  border-top: 4px solid #0b4b88; /* Blue color for the spinner */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

/* Animation for the spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* The ripple effect */
.ripple-button .ripple {
  animation: ripple-animation 2s infinite;
}

/* Ripple animation */
@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Contact form */
.contact-form-card {
  align-self: start;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  background: #fff;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 18px 50px rgba(18, 34, 61, 0.09);
}

.section-direct-contact .contact-department-card {
  height: 100%;
  border: 1px solid #e3e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(18, 34, 61, 0.09);
}

@media (min-width: 1200px) {
  .about-banner-copy {
    transform: translateX(-64px);
  }
}

.contact-form-title {
  margin: 0 0 8px;
  color: #101828;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
}

.contact-form-intro {
  margin: 0 0 26px;
  color: #667085;
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form-field {
  display: block;
  color: #182230;
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-form-field input,
.contact-form-field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #d5dce7;
  border-radius: 9px;
  background: #f9fafc;
  padding: 13px 15px;
  color: #182230;
  font: inherit;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #98a2b3;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: #0b4b88;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 116, 209, 0.13);
}

.contact-form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.55;
}

.contact-form-consent input {
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: #0b4b88;
}

.contact-form-card .contact-form .contact-form-submit {
  justify-self: start;
  min-height: 50px;
  border-radius: 9px;
  padding-inline: 24px;
}

@media (max-width: 639px) {
  .contact-form-card .contact-form .contact-form-submit {
    width: 100%;
    justify-content: center;
  }
}


/* Visual service cards on service-details.html */
.service-feature-card {
  overflow: hidden;
  transition: transform 450ms ease, box-shadow 450ms ease, border-color 450ms ease;
}
.service-feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(11, 75, 136, 0.22);
  box-shadow: 0 22px 48px rgba(13, 14, 29, 0.14);
}
.service-feature-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-feature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-feature-card:hover .service-feature-photo {
  transform: scale(1.08);
}
.service-feature-overlay {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(13, 14, 29, 0.58));
  pointer-events: none;
}
.service-feature-icon {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  background: #0b4b88;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(11, 75, 136, 0.24);
}
.service-feature-title {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 300ms ease;
}
.service-feature-card:hover .service-feature-title {
  color: #0b4b88;
}
@media (prefers-reduced-motion: reduce) {
  .service-feature-card,
  .service-feature-photo,
  .service-feature-title {
    transition: none;
  }
}

/* Keep service cards readable at every viewport width. */
.section-about .service-feature-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.section-about .service-feature-card {
  min-width: 0;
}

/* Dymki opisujące usługi w stopce strony głównej */
.footer-service-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.footer-service-link::after {
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 12px);
  left: 0;
  width: max-content;
  max-width: min(300px, 78vw);
  padding: 10px 13px;
  border: 1px solid rgb(137 186 255 / 28%);
  border-radius: 10px;
  background: #071a38;
  box-shadow: 0 12px 32px rgb(0 0 0 / 24%);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.footer-service-link::before {
  position: absolute;
  z-index: 51;
  bottom: calc(100% + 4px);
  left: 15px;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgb(137 186 255 / 28%);
  border-bottom: 1px solid rgb(137 186 255 / 28%);
  background: #071a38;
  content: "";
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px) rotate(45deg);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.footer-service-link:hover::after,
.footer-service-link:focus-visible::after,
.footer-service-link:hover::before,
.footer-service-link:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .footer-service-link::after,
  .footer-service-link::before {
    transition: none;
  }
}

.service-feature-card[id] { scroll-margin-top: 120px; }

/* Alternate horizontal layout for the service page comparison. */
body.service-layout-horizontal .section-about .service-feature-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

body.service-layout-horizontal .service-feature-card {
  display: grid;
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 220px;
}

body.service-layout-horizontal .service-feature-card:hover {
  transform: translateX(6px);
}

body.service-layout-horizontal .service-feature-image {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
}

body.service-layout-horizontal .service-feature-card > .p-7 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3.3vw, 2.75rem);
}

body.service-layout-horizontal .service-feature-title {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

@media (max-width: 680px) {
  body.service-layout-horizontal .service-feature-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.service-layout-horizontal .service-feature-card:hover {
    transform: translateY(-4px);
  }

  body.service-layout-horizontal .service-feature-image {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  body.service-layout-horizontal .service-feature-card > .p-7 {
    padding: 1.5rem;
  }
}

/* Polish horizontal service cards: rounded corners and matching row heights. */
body.service-layout-horizontal .section-about .service-feature-grid {
  grid-auto-rows: 1fr;
}

body.service-layout-horizontal .service-feature-card {
  height: 100%;
  min-height: 230px;
  border-radius: 1.25rem;
}

body.service-layout-horizontal .service-feature-image {
  min-height: 230px;
}

@media (max-width: 680px) {
  body.service-layout-horizontal .service-feature-card {
    min-height: 0;
  }

  body.service-layout-horizontal .service-feature-image {
    min-height: 0;
  }
}

/* Compact 200 px desktop version of the chosen horizontal service cards. */
@media (min-width: 821px) {
  body.service-layout-horizontal .service-feature-card {
    height: 230px;
    min-height: 230px;
  }

  body.service-layout-horizontal .service-feature-image {
    height: 230px;
    min-height: 230px;
  }

  body.service-layout-horizontal .service-feature-card > .p-7 {
    padding-block: 1rem;
    padding-inline: clamp(1.25rem, 2.7vw, 2.25rem);
  }

  body.service-layout-horizontal .service-feature-card p {
    font-size: 18.5px;
    line-height: 1.4;
  }
}

@media (max-width: 820px) {
  body.service-layout-horizontal .service-feature-card {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  body.service-layout-horizontal .service-feature-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 8;
  }
}

/* A consistent navy-to-blue action palette across the site. */
body .btn-primary {
  border: 1px solid rgba(128, 190, 255, 0.3);
  background: linear-gradient(110deg, #08264a 0%, #0b4b88 58%, #0c65ac 100%);
  box-shadow: 0 10px 26px rgba(5, 42, 82, 0.22);
  color: #fff;
  transition: background 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

body .btn-primary:hover {
  background: linear-gradient(110deg, #0a3564 0%, #0d5ca2 58%, #1178c4 100%);
  box-shadow: 0 14px 34px rgba(8, 72, 132, 0.34);
  transform: translateY(-2px);
}

body .btn-primary:focus-visible,
body .btn-white:focus-visible {
  outline: 3px solid rgba(99, 181, 255, 0.72);
  outline-offset: 3px;
}

body .btn-white {
  border: 1px solid rgba(131, 190, 255, 0.55);
  box-shadow: 0 10px 26px rgba(2, 16, 38, 0.16);
  transition: background 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

body .btn-white:hover {
  background: #edf6ff;
  box-shadow: 0 14px 32px rgba(2, 16, 38, 0.22);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  body .btn-primary,
  body .btn-white {
    transition: none;
  }
}

/* Spójna, subtelna poświata na kafelkach z nakładką w całym serwisie. */
.tile-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background:
    radial-gradient(ellipse at 50% 95%, rgba(30, 126, 204, 0.34), transparent 62%),
    linear-gradient(0deg, rgba(5, 18, 40, 0.97) 0%, rgba(8, 39, 76, 0.84) 48%, rgba(9, 42, 78, 0.16) 82%, transparent 100%);
  transform: translateY(100%);
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}

.group:hover .tile-hover-overlay,
.group:focus-within .tile-hover-overlay {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .tile-hover-overlay {
    transition: none;
  }
}

/* Brand blue tints and accessible contrast on the dark homepage hero. */
body .bg-blue-50 {
  background-color: rgba(11, 75, 136, 0.06);
}

body .border-blue-200 {
  border-color: rgba(11, 75, 136, 0.22);
}

body .section-hero .text-colorBlue {
  color: #8ecaff;
}