.stat {
  display: flex;
  flex-direction: column;
}

.stat__number {
    color: var(--yellow);
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 600;
    line-height: 54px;
    text-transform: uppercase;
}

.stat__label {
    color: rgba(255, 255, 255, .6);
    font-size: 15px;
    line-height: 30px;
}

.category-slider {
  position: relative;
}

.category-slider .swiper {
  overflow: visible;
}

.category-slider .swiper-slide {
  width: 341px !important;
}

.category-card,
.service-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: box-shadow .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.category-card h3,
.service-card h3 {
  transition: color .28s ease;
}

.category-card:hover,
.category-card:focus-visible,
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 28, 76, .18);
}

.category-card:hover .category-card__body::before,
.category-card:focus-visible .category-card__body::before,
.service-card:hover .service-card__body::before,
.service-card:focus-visible .service-card__body::before {
  animation: card-blue-in .42s cubic-bezier(.22, 1, .36, 1) both;
}

.category-card.is-hover-leaving .category-card__body::before,
.service-card.is-hover-leaving .service-card__body::before {
  animation: card-blue-out .42s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes card-blue-in {
  from { transform: translateY(101%); }
  to { transform: translateY(0); }
}

@keyframes card-blue-out {
  from { transform: translateY(0); }
  to { transform: translateY(-101%); }
}

.category-card:hover h3,
.category-card:focus-visible h3,
.service-card:hover h3,
.service-card:focus-visible h3 {
  color: var(--white);
}

.category-card:hover .category-card__arrow,
.category-card:focus-visible .category-card__arrow,
.service-card:hover .service-card__arrow,
.service-card:focus-visible .service-card__arrow {
  color: var(--yellow);
  transform: translateX(3px);
}

.category-card {
  width: 341px;
}

.category-card__media {
  width: 100%;
  height: 217px;
  overflow: hidden;
  background: rgba(255, 255, 255, .2);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.category-card__body,
.service-card__body {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--yellow);
  isolation: isolate;
}

.category-card__body::before,
.service-card__body::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--navy);
  content: '';
  transform: translateY(-101%);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

.category-card__body {
  min-height: 79px;
  padding: 0 10px 0 21px;
}

.category-card h3,
.service-card h3,
.gallery-card h3 {
  color: var(--navy-dark);
  font-size: 24px;
  line-height: 30px;
}

.category-card__arrow,
.service-card__arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--navy);
  transition: color .28s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.category-card:hover .category-card__media img,
.category-card:focus-visible .category-card__media img,
.service-card:hover .service-card__media img,
.service-card:focus-visible .service-card__media img {
  transform: scale(1.045);
}

.category-slider__nav {
  display: none;
}

.scroll-row {
  display: flex;
  gap: 20px;
  margin-right: -25px;
  padding-right: 25px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.service-card {
  width: 341px;
}

.service-card__media {
  position: relative;
  height: 181px;
  overflow: hidden;
}

.service-card__media::after {
  position: absolute;
  inset: 0;
  background: rgba(2, 28, 76, .3);
  content: '';
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.service-card__body {
  min-height: 66px;
  padding: 0 10px 0 21px;
}

.scroll-row__track {
  position: relative;
  display: none;
  height: 2px;
  margin-top: 40px;
  background: var(--line-gray);
}

.scroll-row__thumb {
  width: 102px;
  height: 2px;
  background: var(--yellow);
}

.realizacje-gallery .scroll-row__track {
  display: block;
}

.gallery-card {
  position: relative;
  width: 341px;
  height: 347px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}

.gallery-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(0, 51, 153, .28);
  content: '';
  opacity: 0;
  transition: opacity .38s ease;
}

.gallery-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.gallery-card__label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 22px;
  border-left: 4px solid var(--yellow);
  color: var(--white);
  background: var(--navy);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .28s ease, transform .42s cubic-bezier(.22, 1, .36, 1);
  z-index: 2;
}

.gallery-card__label h3 {
  color: var(--white);
}

.gallery-card__label .theme-icon {
  width: 24px;
  height: 24px;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 28, 76, .22);
}

.gallery-card:hover::after,
.gallery-card:focus-visible::after {
  opacity: 1;
}

.gallery-card:hover > img,
.gallery-card:focus-visible > img {
  transform: scale(1.06);
}

.gallery-card:hover .gallery-card__label,
.gallery-card:focus-visible .gallery-card__label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card:hover .gallery-card__label .theme-icon,
.gallery-card:focus-visible .gallery-card__label .theme-icon {
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .service-card,
  .gallery-card,
  .category-card__body::before,
  .service-card__body::before,
  .category-card__media img,
  .service-card__media img,
  .gallery-card > img,
  .gallery-card::after,
  .gallery-card__label,
  .category-card__arrow,
  .service-card__arrow,
  .gallery-card__label .theme-icon {
    transition-duration: .01ms;
  }
}

.testimonial-card {
  width: 341px;
  min-height: 254px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.testimonial-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-card__name {
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.testimonial-card__time {
  color: var(--gray);
  font-size: 14px;
  line-height: 20px;
}

.testimonial-card__stars {
  margin: 20px 0 12px;
  color: #ffb800;
  font-size: 18px;
  letter-spacing: 1px;
  line-height: 20px;
}

.testimonial-card__stars span {
  color: var(--line-gray);
}

.testimonial-card > p:last-child {
  color: rgba(2, 28, 76, .8);
  font-size: 16px;
  line-height: 20px;
}

.testimonials__footer {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.testimonials__more {
  min-width: 190px;
}

body.has-testimonials-modal {
  overflow: hidden;
}

.testimonials-modal {
  position: fixed;
  z-index: 10000;
  display: none;
  inset: 0;
  place-items: center;
}

.testimonials-modal.is-open {
  display: grid;
}

.testimonials-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 28, 76, .88);
  backdrop-filter: blur(5px);
}

.testimonials-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow: hidden;
  padding: 28px 20px 22px;
  background: var(--light-gray);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.testimonials-modal__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  border: 0;
  color: var(--navy);
  background: var(--yellow);
  cursor: pointer;
  place-items: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.testimonials-modal__close:hover,
.testimonials-modal__close:focus-visible {
  background: var(--yellow-hover);
  transform: scale(1.05);
}

.testimonials-modal__header {
  padding: 0 54px 22px 0;
}

.testimonials-modal__header h2 {
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 38px;
  text-transform: uppercase;
}

.testimonials-modal__header > p:last-child {
  margin-top: 8px;
  color: rgba(2, 28, 76, .72);
  font-size: 14px;
  line-height: 20px;
}

.testimonials-modal__track {
  display: grid;
  max-height: calc(100dvh - 250px);
  padding: 4px 12px 18px 4px;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  scrollbar-color: var(--yellow) var(--line-gray);
  scrollbar-width: thin;
}

.testimonial-card--modal {
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

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

.faq-item {
  background: var(--light-gray);
}

.faq-item h3 {
  margin: 0;
}

.faq-item__trigger {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  color: rgba(2, 28, 76, .8);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  text-align: left;
  text-transform: uppercase;
}

.faq-item__trigger .theme-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--navy);
  transition: transform var(--transition-base);
}

.faq-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item__panel p {
  padding: 0 22px 22px;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 20px;
}

.faq-item.is-open {
  color: var(--white);
  background: var(--gray);
}

.faq-item.is-open .faq-item__trigger {
  color: var(--white);
}

.faq-item.is-open .faq-item__trigger .theme-icon {
  color: var(--white);
  transform: rotate(90deg);
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
}

.feature-item__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--navy-dark);
  background: var(--yellow);
}

.feature-item__icon .theme-icon {
  width: 24px;
  height: 24px;
}

.feature-item h4 {
  color: var(--white);
  font-size: 18px;
  line-height: 24px;
}

.feature-item p {
  margin-top: 2px;
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
  line-height: 20px;
}

.contact-form {
  position: relative;
  width: 100%;
  padding: 44px 32px 40px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.contact-form__head {
  margin-bottom: 35px;
}

.contact-form__head .section-label {
  margin-bottom: 20px;
}

.contact-form h3 {
  color: var(--navy);
  font-size: 32px;
  line-height: 40px;
}

.contact-form__head > p:last-child {
  margin-top: 3px;
  color: var(--muted-slate);
  font-size: 15px;
  line-height: 20px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__field {
  position: relative;
  min-height: 62px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--line-gray);
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.contact-form input {
  height: 54px;
  padding: 19px 0 5px;
}

.contact-form textarea {
  height: 112px;
  padding: 28px 0 6px;
  resize: none;
}

.contact-form label {
  position: absolute;
  top: 18px;
  left: 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 20px;
  pointer-events: none;
  transition: transform var(--transition-base), font-size var(--transition-base);
}

.contact-form textarea + label {
  top: 25px;
}

.contact-form input:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:focus + label,
.contact-form textarea:not(:placeholder-shown) + label {
  font-size: 11px;
  transform: translateY(-15px);
}

.contact-form .btn {
  width: 100%;
  margin-top: 34px;
}

.branch-photo-card {
  overflow: hidden;
  border-left: 4px solid var(--yellow);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.branch-photo-card__media {
  height: 192px;
  margin-left: -4px;
  overflow: hidden;
}

.branch-photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-photo-card__body {
  padding: 38px 31px 36px;
}

.branch-photo-card h3 {
  margin-bottom: 19px;
  color: var(--navy);
  font-size: 30px;
  line-height: 40px;
}

.branch-photo-card ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.branch-photo-card li {
  display: block;
  color: var(--slate);
  font-size: 16px;
  line-height: 24px;
}

.branch-photo-card li > .theme-icon {
  display: none;
}

.branch-photo-card li a {
  font-weight: 600;
}

.map-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  border-bottom: 2px solid var(--yellow);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

.map-link .theme-icon {
  width: 16px;
  height: 16px;
}

.branch-info-card {
  border-top: 3px solid var(--yellow);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.branch-info-card__body {
  padding: 24px;
}

.branch-info-card h3 {
  margin-bottom: 18px;
  color: var(--navy-dark);
  font-size: 24px;
  line-height: 30px;
}

.branch-info-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--slate);
  font-size: 14px;
  line-height: 20px;
}

.branch-info-card li .theme-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.branch-info-card__map {
  height: 220px;
  overflow: hidden;
  background: #eee;
}

.branch-info-card__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

@media (min-width: 992px) {
  .stat__label {
    font-size: 16px;
  }

  .category-slider .swiper-slide {
    width: 346px !important;
  }

  .category-card {
    width: 346px;
  }

  .category-card__media {
    height: 220px;
  }

  .category-card__body {
    min-height: 80px;
    padding: 0 10px 0 21px;
  }

  .category-slider__nav {
    position: absolute;
    z-index: 5;
    top: 110px;
    right: -90px;
    left: -90px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }

  .category-slider__btn {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    background: var(--yellow);
    color: var(--navy);
    pointer-events: auto;
  }

  .category-slider__btn--next {
    color: var(--yellow);
    background: rgba(0, 51, 153, .8);
  }

  .category-slider__btn .theme-icon {
    width: 9px;
    height: 16px;
  }

  .scroll-row {
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }

  .service-card {
    width: 413px;
  }

  .service-card__media {
    height: 220px;
  }

  .service-card__body {
    min-height: 80px;
    padding: 0 10px 0 21px;
  }

  .gallery-card {
    width: 347px;
    height: 347px;
  }

  .realizacje-gallery .scroll-row {
    width: 1448px;
  }

  .scroll-row__track {
    display: none !important;
  }

  .testimonial-card {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 200px;
    flex: 1 1 0;
    padding: 24px;
  }

  .testimonial-card__stars {
    margin: 8px 0 8px;
  }

  .testimonials-modal__dialog {
    padding: 42px 42px 28px;
  }

  .testimonials-modal__header {
    padding-bottom: 28px;
  }

  .testimonials-modal__header h2 {
    font-size: 48px;
    line-height: 48px;
  }

  .testimonial-card--modal {
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 30px;
  }

  .faq-item__trigger {
    min-height: 62px;
    padding: 14px 20px;
    font-size: 18px;
  }

  .faq-item__panel p {
    padding: 0 22px 22px;
    font-size: 16px;
  }

  .feature-item {
    grid-template-columns: 48px 1fr;
  }

  .contact-form {
    width: 560px;
    height: auto;
    min-height: 560px;
    padding: 44px 56px 40px;
  }

  .contact-form h3 {
    font-size: 36px;
    line-height: 44px;
  }

  .branch-photo-card {
    display: grid;
    min-height: 374px;
    grid-template-columns: 260px 1fr;
  }

  .branch-photo-card__media {
    height: 100%;
    min-height: 374px;
    margin-left: -4px;
  }

  .branch-photo-card__body {
    padding: 36px 40px 30px;
  }

  .branch-photo-card h3 {
    margin-bottom: 18px;
    font-size: 36px;
    line-height: 40px;
  }

  .branch-photo-card li {
    font-size: 16px;
  }

  .branch-info-card__body {
    min-height: 306px;
    padding: 32px;
  }

  .branch-info-card__map {
    height: 220px;
  }
}
