.technologies {
  padding-block: 4rem 6rem;
  color: #1d2141;
}
.technologies__heading {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 45px;
  line-height: 1.1;
  color: #1d2141;
  margin-bottom: 1rem;
  max-width: 56rem;
}
.technologies__description {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #1d2141;
  max-width: 61.25rem;
  margin-bottom: 5rem;
}
.technologies__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .technologies__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .technologies__grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .technologies__grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.technologies__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 1rem 0;
}
.technologies__media {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  isolation: isolate;
  transition: filter 0.4s ease;
}
.technologies__media::before {
  content: "";
  position: absolute;
  inset: 5%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--tech-glow, #c7a2e0) 0%, rgba(255, 255, 255, 0) 60%);
  filter: blur(24px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.technologies__card:hover .technologies__image {
  transform: scale(1.08);
}
.technologies__card:hover .technologies__media::before {
  transform: scale(1.3);
}
.technologies__grid:has(.technologies__card:hover) .technologies__card:not(:hover) .technologies__media {
  filter: grayscale(1);
}
@media (prefers-reduced-motion: reduce) {
  .technologies__image, .technologies__media {
    transition: none;
  }
  .technologies__card:hover .technologies__image {
    transform: none;
  }
}
.technologies__number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  top: 50%;
  right: 60%;
  transform: translateY(-50%);
  z-index: 2;
  font-family: "STIX Two Text", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: #1d2141;
}
.technologies__number-line {
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 1px;
  background: #1d2141;
  border-radius: 1px;
}
.technologies__number-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -3px;
  margin-left: -3px;
  width: 6px;
  height: 6px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1d2141;
}
.technologies__image {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  z-index: 3;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.technologies__marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 67%;
  z-index: 2;
  max-width: 7rem;
  font-family: "STIX Two Text", Georgia, "Times New Roman", serif;
  color: #1d2141;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-align: left;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 95%;
  color: #1d2141;
}
.technologies__marker::before {
  content: "";
  display: flex;
  flex-shrink: 0;
  margin-right: 0.5rem;
  width: 1.5rem;
  height: 1px;
  background: #1d2141;
}
.technologies__title {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 2.25rem;
  line-height: 1;
  color: #1d2141;
  text-transform: uppercase;
  margin-bottom: 1.625rem;
}
.technologies__text {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  color: #1d2141;
  font-weight: 500;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 23.75rem;
  text-wrap: balance;
}
.technologies__cta.btn {
  margin-top: auto;
  width: 12rem;
  height: 3rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 2rem;
}

.tech-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tech-popup[hidden] {
  display: none;
}
.tech-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}
.tech-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.tech-popup__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 70rem;
  max-height: calc(100vh - 2rem);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #e6f0fb;
  border-radius: 1.75rem;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-popup.is-open .tech-popup__panel {
  transform: scale(1);
}
.tech-popup__body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2.5rem 2.5rem 3rem;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tech-popup__body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.tech-popup__close.btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: auto;
  min-width: 7.5rem;
  height: 2.5rem;
  gap: 0.5rem;
  padding-inline: 1.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 999px;
}
.tech-popup__close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  line-height: 1;
}
.tech-popup__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 2rem;
}
@media (min-width: 768px) {
  .tech-popup__inner {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 2rem 2rem;
    align-items: start;
  }
}
.tech-popup__watermark {
  position: absolute;
  inset: 30% 0 auto 0;
  z-index: 0;
  pointer-events: none;
  font-family: "STIX Two Text", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  color: rgba(29, 33, 65, 0.07);
  text-align: center;
  white-space: nowrap;
}
.tech-popup__logo {
  grid-column: 1/-1;
  width: 8rem;
  height: auto;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .tech-popup__logo {
    grid-column: 1/2;
  }
}
.tech-popup__left-text {
  position: relative;
  z-index: 1;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1d2141;
  max-width: 18rem;
}
@media (min-width: 768px) {
  .tech-popup__left-text {
    grid-column: 1/2;
  }
}
.tech-popup__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  height: auto;
  margin: 0 auto;
  -o-object-fit: contain;
     object-fit: contain;
}
@media (min-width: 768px) {
  .tech-popup__image {
    grid-column: 2/3;
    grid-row: 1/span 3;
  }
}
.tech-popup__right-text {
  position: relative;
  z-index: 1;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #1d2141;
  max-width: 18rem;
}
@media (min-width: 768px) {
  .tech-popup__right-text {
    grid-column: 3/4;
    align-self: end;
  }
}
.tech-popup__number {
  position: relative;
  z-index: 1;
  font-family: "STIX Two Text", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.5rem;
  color: rgba(29, 33, 65, 0.4);
}
@media (min-width: 768px) {
  .tech-popup__number {
    grid-column: 1/2;
  }
}
.tech-popup__title {
  position: relative;
  z-index: 1;
  grid-column: 1/-1;
  margin: 1rem 0 1rem;
  font-family: "STIX Two Text", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  color: #1d2141;
}
.tech-popup__cta.btn {
  grid-column: 1/-1;
  justify-self: center;
  width: auto;
  min-width: 11rem;
  height: 2.75rem;
  padding-inline: 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.tech-popup__cases {
  margin-top: 3.5rem;
}
.tech-popup__cases-title {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #1d2141;
  margin-bottom: 1.5rem;
}
.tech-popup__swiper {
  padding-bottom: 3rem;
}
.tech-popup__case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 767px) {
  .tech-popup__case {
    grid-template-columns: 1fr;
  }
}
.tech-popup__case-figure {
  margin: 0;
  text-align: center;
}
.tech-popup__case-figure img {
  width: 100%;
  aspect-ratio: 4/3;
  -o-object-fit: cover;
     object-fit: cover;
  background: #d8dde6;
  border-radius: 1.25rem;
}
.tech-popup__case-figure figcaption {
  margin-top: 0.5rem;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: #1d2141;
}
.tech-popup__case-caption {
  grid-column: 1/-1;
  margin-top: 0.75rem;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  color: rgba(29, 33, 65, 0.7);
}
.tech-popup .swiper-pagination {
  bottom: 0;
}
.tech-popup .swiper-pagination-bullet {
  width: 2rem;
  height: 4px;
  border-radius: 2px;
  background: rgba(29, 33, 65, 0.2);
  opacity: 1;
  transition: background 0.2s ease;
}
.tech-popup .swiper-pagination-bullet-active {
  background: #1d2141;
}

html:has(.tech-popup.is-open) {
  overflow: hidden;
}