:root {
  --rp-bg: #081019;
  --rp-text: #f4f7fb;
  --rp-soft: rgba(255, 255, 255, 0.82);
  --rp-line: rgba(255, 255, 255, 0.10);
  --rp-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --rp-radius-xl: 28px;
  --rp-radius-lg: 22px;
  --rp-maxw: 100%;
  --rp-title-h: 75px;
  --rp-desc-h: 40px;
  --rp-params-h: 60px;
  --rp-corner-target: 28px;
  --rp-accent: #0096ff;
  --rp-accent-soft: rgba(0, 150, 255, 0.22);
  --rp-corner-speed-in: 0.62s;
  --rp-corner-speed-out: 0.34s;
}

/** {
  box-sizing: border-box;
}
*/
.rp-techmosaic {
  position: relative;
  max-width: var(--rp-maxw);
  margin: 0 auto;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--rp-radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), linear-gradient(180deg, rgba(8, 18, 28, 0.88), rgba(7, 12, 18, 0.98));
  box-shadow: var(--rp-shadow);
  isolation: isolate;
}

.rp-techmosaic::before {
  content: "";
  position: absolute;
  top: -118px;
  right: -78px;
  width: 290px;
  height: 290px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(136, 215, 255, 0.14), transparent 68%);
}

.rp-techmosaic::after {
  content: "";
  position: absolute;
  left: -122px;
  bottom: -158px;
  width: 330px;
  height: 330px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(185, 102, 82, 0.10), transparent 72%);
}
.rp-techmosaic__header{
    position: relative;
    z-index: 1;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 4px 18px;
    color: white;
}
.rp-techmosaic__eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin-bottom: 8px;
    font-weight: bold;
}
.rp-techmosaic__eyebrow::before{
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
}

.rp-techmosaic__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.tm-card {
  position: relative;
  display: block;
  min-height: 260px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--rp-radius-lg);
  background: #111a25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.tm-card:hover {
  border-color: rgba(153, 185, 205, 0.28);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.tm-card__media,
.tm-card__media img,
.tm-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tm-card__media img {
  object-fit: cover;
  transform: scale(1.015);
  transition: transform 0.7s ease;
}

.tm-card:hover .tm-card__media img {
  transform: scale(1.06);
}

.tm-card__shade {
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.05) 0%, rgba(4, 8, 14, 0.18) 28%, rgba(4, 8, 14, 0.92) 100%), linear-gradient(122deg, rgba(7, 13, 20, 0) 30%, rgba(7, 13, 20, 0.16) 54%, rgba(7, 13, 20, 0.62) 100%);
}

.tm-card__content {
  position: absolute;
  inset: 10px 16px 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tm-card__text {
  display: grid;
  grid-template-rows: var(--rp-title-h) var(--rp-desc-h) var(--rp-params-h) auto;
  gap: 10px;
  width: 100%;
  max-width: 94%;
  margin-top: auto;
  align-content: end;
}

.tm-card__title {
  display: -webkit-box;
  height: var(--rp-title-h);
  max-height: var(--rp-title-h);
  margin: 0;
  overflow: hidden;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  align-self: start;
}
.tm-card:hover .tm-card__title{
  color: #ffffff;
  text-decoration: underline;
}
.tm-card:focus .tm-card__title{
  color: #ffffff;
}
.tm-card__desc {
  display: -webkit-box;
  height: var(--rp-desc-h);
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.tm-card__params {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-self: end;
  height: var(--rp-params-h);
  gap: 4px 7px;
  overflow: hidden;
}

.tm-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(8, 16, 24, 0.52);
  backdrop-filter: blur(8px);
}

.tm-card__more {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 10px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  color: #dcebf7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.34);
  background: none;
  opacity: 0.92;
}

.tm-card__more::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 150, 255, 0.95), rgba(220, 235, 247, 0.55));
  opacity: 0.9;
  transition: width 0.8s ease, transform 0.8s ease, opacity 0.8s ease;
}

.tm-card:hover .tm-card__more::after {
  width: 44px;
  transform: translateX(6px);
}

.tm-card__corner-wrap {
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  z-index: 3;
  height: 126px;
  pointer-events: none;
  overflow: visible;
}

.tm-card__corner-plate {
  position: absolute;
  top: -14px;
  right: 14px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(220, 236, 248, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(220, 236, 248, 0.060), rgba(220, 236, 248, 0.030));
  transform: rotate(-31deg);
  box-shadow: 0 10px 24px rgba(4, 10, 16, 0.18);
  opacity: 0.86;
  transition: transform 0.72s ease, opacity 0.72s ease, background 0.72s ease, border-color 0.72s ease;
}

.tm-card__corner-line {
  position: absolute;
  top: 27px;
  right: 0;
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(0, 150, 255, 0.98) 58%, rgba(194, 226, 255, 0.98) 100%);
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.20);
  opacity: 0.98;
  transform-origin: 100% 50%;
  transition: width var(--rp-corner-speed-out) ease, opacity 0.28s ease;
}

.tm-card__corner-dot {
  position: absolute;
  top: 23px;
  left: var(--rp-corner-target);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0 !important;
}

.tm-card__corner-ring {
  position: absolute;
  top: 18px;
  left: calc(var(--rp-corner-target) - 5px);
  width: 20px;
  height: 20px;
  border: 1.4px solid rgba(0, 150, 255, 0.00);
  border-radius: 50%;
  opacity: 0;
}

.tm-card:hover .tm-card__corner-line {
  width: calc(100% - var(--rp-corner-target));
  transition-duration: var(--rp-corner-speed-in);
}

.tm-card:hover .tm-card__corner-plate {
  transform: rotate(-35deg) translate(-3px, -3px) scale(1.03);
  border-color: rgba(220, 236, 248, 0.09);
  background: linear-gradient(180deg, rgba(220, 236, 248, 0.072), rgba(220, 236, 248, 0.035));
  opacity: 0.92;
}

.tm-card:hover .tm-card__corner-ring {
  opacity: 1;
  animation: ring-ripple 2.6s ease-out infinite;
}

@keyframes ring-ripple {
  0% {
    transform: scale(0.70);
    opacity: 0.58;
    border-color: rgba(0, 150, 255, 0.44);
  }

  70% {
    transform: scale(2.5);
    opacity: 0;
    border-color: rgba(0, 150, 255, 0.00);
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
    border-color: rgba(0, 150, 255, 0.00);
  }
}

.rp-techmosaic__grid.is-count-5 > .tm-card:nth-child(1) {
  grid-column: span 7;
  min-height: 332px;
}

.rp-techmosaic__grid.is-count-5 > .tm-card:nth-child(2) {
  grid-column: span 5;
  min-height: 332px;
}

.rp-techmosaic__grid.is-count-5 > .tm-card:nth-child(n + 3) {
  grid-column: span 4;
  min-height: 264px;
}

.rp-techmosaic__grid.is-count-4 > .tm-card:nth-child(1) {
  grid-column: span 7;
  min-height: 332px;
}

.rp-techmosaic__grid.is-count-4 > .tm-card:nth-child(2) {
  grid-column: span 5;
  min-height: 332px;
}

.rp-techmosaic__grid.is-count-4 > .tm-card:nth-child(3) {
  grid-column: span 6;
  min-height: 264px;
}

.rp-techmosaic__grid.is-count-4 > .tm-card:nth-child(4) {
  grid-column: span 6;
  min-height: 264px;
}

.rp-techmosaic__grid.is-count-3 > .tm-card:nth-child(1) {
  grid-column: span 7;
  min-height: 332px;
}

.rp-techmosaic__grid.is-count-3 > .tm-card:nth-child(2) {
  grid-column: span 5;
  min-height: 332px;
}

.rp-techmosaic__grid.is-count-3 > .tm-card:nth-child(3) {
  grid-column: span 12;
  min-height: 264px;
}

.rp-techmosaic__grid.is-count-2 > .tm-card:nth-child(1) {
  grid-column: span 7;
  min-height: 332px;
}

.rp-techmosaic__grid.is-count-2 > .tm-card:nth-child(2) {
  grid-column: span 5;
  min-height: 332px;
}

.rp-techmosaic__grid > .tm-card:nth-child(1) .tm-card__media img {
  object-position: center 46%;
}

.rp-techmosaic__grid > .tm-card:nth-child(2) .tm-card__media img {
  object-position: center 42%;
}

.rp-techmosaic__grid > .tm-card:nth-child(3) .tm-card__media img {
  object-position: center 38%;
}

.rp-techmosaic__grid > .tm-card:nth-child(4) .tm-card__media img {
  object-position: center 30%;
}

.rp-techmosaic__grid > .tm-card:nth-child(5) .tm-card__media img {
  object-position: center 44%;
}

.tm-card--all .tm-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 16%, rgba(0, 150, 255, 0.12), transparent 24%), linear-gradient(180deg, rgba(5, 10, 16, 0.20), rgba(5, 10, 16, 0.34));
}

.tm-card--all .tm-card__content {
  inset: 12px 15px 14px;
}

.tm-card--all .tm-card__text {
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  max-width: 100%;
}

.tm-card--all .tm-card__title {
  display: block !important;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
  overflow: visible !important;
  text-align: center;
  font-size: clamp(28px, 2.65vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(12px);
}

.tm-card--all .tm-card__desc,
.tm-card--all .tm-card__params,
.tm-card--all .tm-card__more {
  display: none !important;
}

.tm-card--all__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.24;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 0);
  background-size: 18px 18px;
  mix-blend-mode: soft-light;
}

.tm-card--all__plus {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(194, 224, 246, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(231, 244, 255, 0.06), rgba(231, 244, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tm-card--all__plus::before,
.tm-card--all__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(196, 228, 255, 0.84);
  transform: translate(-50%, -50%);
}

.tm-card--all__plus::before {
  width: 14px;
  height: 1px;
}

.tm-card--all__plus::after {
  width: 1px;
  height: 14px;
}

.tm-card--all__arrow {
  position: absolute;
  left: 16px;
  bottom: 22px;
  z-index: 5;
  width: 22px;
  height: 12px;
  pointer-events: none;
}

.tm-card--all__arrow-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, rgba(0, 150, 255, 0.96) 58%, rgba(194, 226, 255, 0.96) 100%);
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.18);
  transform: translateY(-50%);
  transform-origin: 0 50%;
  transition: width var(--rp-corner-speed-out) ease;
}

.tm-card--all__arrow-head {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(194, 226, 255, 0.96);
  border-right: 2px solid rgba(194, 226, 255, 0.96);
  transform: translateY(-50%) rotate(45deg);
  transition: left var(--rp-corner-speed-out) ease;
}

.tm-card--all:hover .tm-card__media img {
  transform: scale(1.03);
}

.tm-card--all:hover .tm-card--all__arrow-line {
  width: 138px;
  transition-duration: var(--rp-corner-speed-in);
}

.tm-card--all:hover .tm-card--all__arrow-head {
  left: 134px;
  transition-duration: var(--rp-corner-speed-in);
}

.tm-card--all:hover .tm-card--all__plus {
  border-color: rgba(194, 224, 246, 0.18);
}

@media (max-width: 860px) {
  .rp-techmosaic__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-techmosaic__grid > .tm-card,
  .rp-techmosaic__grid.is-count-2 > .tm-card,
  .rp-techmosaic__grid.is-count-3 > .tm-card,
  .rp-techmosaic__grid.is-count-4 > .tm-card,
  .rp-techmosaic__grid.is-count-5 > .tm-card {
    grid-column: span 1;
    min-height: 292px;
  }

  .tm-card__content {
    inset: 10px 14px 14px;
  }

  .tm-card__text {
    max-width: 100%;
    grid-template-rows: 70px 38px 56px auto;
    gap: 8px;
  }

  .tm-card__corner-wrap {
    top: -11px;
    height: 104px;
  }
}

@media (max-width: 767px) {
  .rp-techmosaic {
    padding: 12px;
    border-radius: 24px;
  }

  .rp-techmosaic__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rp-techmosaic__grid > .tm-card,
  .rp-techmosaic__grid.is-count-2 > .tm-card,
  .rp-techmosaic__grid.is-count-3 > .tm-card,
  .rp-techmosaic__grid.is-count-4 > .tm-card,
  .rp-techmosaic__grid.is-count-5 > .tm-card {
    grid-column: auto;
    min-height: 272px;
  }

  .tm-card {
    border-radius: 20px;
  }

  .tm-card__content {
    inset: 10px 13px 13px;
  }

  .tm-card__text {
    grid-template-rows: 64px 38px 56px auto;
    gap: 8px;
  }

  .tm-card__title {
    height: 64px;
    max-height: 64px;
    font-size: 20px;
  }

  .tm-card__desc {
    height: 38px;
    font-size: 12px;
    line-height: 1.38;
  }

  .tm-card__params {
    height: 56px;
  }

  .tm-chip {
    min-height: 26px;
    padding: 0 9px;
    font-size: 10px;
  }

  .tm-card__more {
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .tm-card__more::after {
    width: 24px;
  }

  .tm-card:hover .tm-card__more::after {
    width: 34px;
    transform: translateX(4px);
  }

  .tm-card__corner-wrap {
    top: -8px;
    height: 84px;
  }

  .tm-card__corner-plate {
    top: -10px;
    right: 10px;
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .tm-card__corner-line {
    top: 22px;
  }

  .tm-card__corner-ring {
    top: 13px;
    left: 15px;
  }

  .tm-card--all .tm-card__title {
    max-width: 82%;
    font-size: 24px;
    transform: translateY(16px);
  }

  .tm-card--all__plus {
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
  }

  .tm-card--all__arrow {
    left: 14px;
    bottom: 20px;
  }

  .tm-card--all:hover .tm-card--all__arrow-line {
    width: 118px;
  }

  .tm-card--all:hover .tm-card--all__arrow-head {
    left: 114px;
  }

  @media (hover: none) {
    .tm-card:hover {
      border-color: rgba(255, 255, 255, 0.10);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .tm-card:hover .tm-card__media img {
      transform: scale(1.025);
    }

    .tm-card:hover .tm-card__corner-line {
      width: 46px;
    }

    .tm-card:hover .tm-card__corner-ring {
      opacity: 0;
      animation: none;
    }

    .tm-card--all:hover .tm-card--all__arrow-line {
      width: 22px;
    }

    .tm-card--all:hover .tm-card--all__arrow-head {
      left: 18px;
    }
  }
}

@media (max-width: 420px) {
  .rp-techmosaic {
    padding: 10px;
    border-radius: 20px;
  }

  .rp-techmosaic__grid {
    gap: 10px;
  }

  .rp-techmosaic__grid > .tm-card,
  .rp-techmosaic__grid.is-count-2 > .tm-card,
  .rp-techmosaic__grid.is-count-3 > .tm-card,
  .rp-techmosaic__grid.is-count-4 > .tm-card,
  .rp-techmosaic__grid.is-count-5 > .tm-card {
    min-height: 248px;
  }

  .tm-card__content {
    inset: 9px 11px 11px;
  }

  .tm-card__text {
    grid-template-rows: 58px 34px 52px auto;
    gap: 7px;
  }

  .tm-card__title {
    height: 58px;
    max-height: 58px;
    font-size: 18px;
  }

  .tm-card__desc {
    height: 34px;
    font-size: 11px;
  }

  .tm-card__params {
    height: 52px;
  }

  .tm-chip {
    min-height: 24px;
    padding: 0 8px;
  }

  .tm-card__more {
    font-size: 10px;
  }

  .tm-card__corner-wrap {
    top: -7px;
    height: 74px;
  }

  .tm-card__corner-plate {
    top: -9px;
    right: 8px;
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .tm-card__corner-line {
    top: 19px;
  }

  .tm-card__corner-ring {
    top: 10px;
    left: 11px;
    width: 18px;
    height: 18px;
  }

  .tm-card--all .tm-card__title {
    max-width: 84%;
    font-size: 22px;
    transform: translateY(18px);
  }

  .tm-card--all__plus {
    width: 36px;
    height: 36px;
  }

  .tm-card--all:hover .tm-card--all__arrow-line {
    width: 102px;
  }

  .tm-card--all:hover .tm-card--all__arrow-head {
    left: 98px;
  }
}

.project-module.zatvor .rp-techmosaic__grid{
  display: block;
}