/* Adapt the approved banner to its available width, including nested carousels. */
.rb-home-case .rb-home-case__link {
  container-name: rubik-case;
  container-type: inline-size;
}
.slajder[data-rb-case-slider] {
  container-name: rubik-slider;
  container-type: inline-size;
  padding-bottom: 0 !important;
}
.slajder[data-rb-case-slider] > .slajder__strelka {
  width: 44px;
  height: 44px;
  padding: 0;
  color: #313131;
  font-size: 0;
}
.slajder[data-rb-case-slider] > .slajder__strelka > svg { display: none; }
.slajder[data-rb-case-slider] > .slajder__strelka::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translate(calc(-50% - 2px), -50%) rotate(-45deg);
}
.slajder[data-rb-case-slider] > .slajder__strelka--nazad::after {
  transform: translate(calc(-50% + 2px), -50%) rotate(135deg);
}
.slajder[data-rb-case-slider] > .slajder__strelka:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
@container rubik-slider (max-width: 1199px) {
  .slajder[data-rb-case-slider] > .slajder__lenta { margin-bottom: 64px; }
  .slajder[data-rb-case-slider] > .slajder__strelka {
    top: auto;
    bottom: 10px;
    transform: none;
  }
  .slajder[data-rb-case-slider] > .slajder__strelka--nazad {
    left: calc(50% - 54px);
    right: auto;
  }
  .slajder[data-rb-case-slider] > .slajder__strelka--vpered {
    right: calc(50% - 54px);
    left: auto;
  }
}
@container rubik-case (max-width: 1100px) {
  .rb-home-case .rb-home-case__desktop { display: none; }
  .rb-home-case .rb-home-case__mobile {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    min-height: 0;
    height: auto;
    padding: 24px;
    border-radius: 28px;
    background: var(--rb-bg);
    color: #313131;
    font-family: Helvetica, Arial, sans-serif;
  }
  .rb-home-case .rb-home-case__mobile h3,
  .rb-home-case .rb-home-case__mobile .rk-heading-from-h3 {
    margin: 0;
    font-size: clamp(24px, 5.8cqi, 32px);
    line-height: 1.16;
    font-weight: 400;
    color: #313131;
  }
  .rb-home-case .rb-home-case__mobile p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #313131;
  }
  .rb-home-case .rb-home-case__mobile dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    margin: 0;
  }
  .rb-home-case .rb-home-case__mobile dl > div { min-width: 0; }
  .rb-home-case .rb-home-case__mobile dl > .rb-wide,
  .rb-home-case--gold .rb-home-case__mobile dl > div:first-child { grid-column: 1 / -1; }
  .rb-home-case .rb-home-case__mobile dt {
    margin: 0 0 6px;
    font-size: clamp(23px, 5.5cqi, 30px);
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .rb-home-case .rb-home-case__mobile dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .rb-home-case .rb-home-case__systems {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .rb-home-case .rb-home-case__systems li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
  }
  .rb-home-case .rb-home-case__systems span {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fc3f3f;
    color: white;
  }
  .rb-home-case .rb-home-case__systems svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .rb-home-case .rb-home-case__cta { font-size: 15px; line-height: 1.4; }
  .rb-home-case .rb-home-case__art {
    display: block;
    position: static;
    inset: auto;
    align-self: stretch;
    width: calc(100% + 48px);
    max-width: none;
    height: clamp(150px, 42cqi, 240px);
    margin: 4px -24px -24px;
    object-fit: contain;
    object-position: left bottom;
    border-radius: 0;
    pointer-events: none;
  }
  .rb-home-case .rb-home-case__photo { object-fit: cover; object-position: center 35%; }
}
@container rubik-case (max-width: 300px) {
  .rb-home-case .rb-home-case__mobile dl { grid-template-columns: minmax(0, 1fr); }
}
@container rubik-case (min-width: 680px) and (max-width: 1100px) {
  .rb-home-case .rb-home-case__mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 32px;
    padding: 32px;
    border-radius: 36px;
  }
  .rb-home-case .rb-home-case__mobile h3,
  .rb-home-case .rb-home-case__mobile .rk-heading-from-h3 { grid-column: 1; grid-row: 1; font-size: 30px; }
  .rb-home-case .rb-home-case__mobile > p { grid-column: 1; grid-row: 2; }
  .rb-home-case .rb-home-case__mobile dl { grid-column: 2; grid-row: 1 / 3; align-content: start; }
  .rb-home-case .rb-home-case__systems { grid-column: 2; grid-row: 3; align-self: start; }
  .rb-home-case .rb-home-case__cta { grid-column: 2; grid-row: 4; align-self: end; }
  .rb-home-case .rb-home-case__art {
    grid-column: 1;
    grid-row: 3 / 5;
    width: 100%;
    height: 180px;
    min-width: 0;
    align-self: end;
    margin: 0;
    border-radius: 0 24px 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slajder[data-rb-case-slider] > .slajder__lenta { transition: none; }
}
