.cgb-max4 {
  background-color: #f3f3f3;
  padding: 40px 0;
  box-sizing: border-box;
}
@media (min-width: 920px) {
  .cgb-max4 {
    padding: 60px 0;
  }
}
.cgb-max4 *,
.cgb-max4 *:before,
.cgb-max4 *:after {
  box-sizing: border-box;
}
.cgb-max4__container {
  max-width: 1370px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
@media (min-width: 920px) {
  .cgb-max4__container {
    gap: 50px;
  }
}
.cgb-max4__title {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.06em;
  color: #131313;
  text-align: center;
  margin: 0;
  max-width: 900px;
}
@media (min-width: 620px) {
  .cgb-max4__title {
    font-size: 36px;
  }
}
@media (min-width: 1200px) {
  .cgb-max4__title {
    font-size: 48px;
  }
}
.cgb-max4__row {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1024px) {
  .cgb-max4__row {
    flex-direction: row;
    align-items: stretch;
  }
}
.cgb-max4__video {
  flex: 1 1 auto;
  min-width: 0;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
}
@media (min-width: 620px) {
  .cgb-max4__video {
    padding: 25px;
  }
}
.cgb-max4__video-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
}
.cgb-max4__video-poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}
@media (min-width: 620px) {
  .cgb-max4__video-poster {
    min-height: 320px;
  }
}
.cgb-max4__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(19, 19, 19, 0.1);
  box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, 0.05), 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
@media (min-width: 620px) {
  .cgb-max4__video-play {
    width: 100px;
    height: 100px;
  }
}
.cgb-max4__video-trigger:hover .cgb-max4__video-play {
  transform: translate(-50%, -50%) scale(1.06);
}
.cgb-max4__video-play svg {
  display: block;
  width: 36%;
  height: 36%;
  margin-left: 4%;
}
.cgb-max4__video--pulse .cgb-max4__video-play {
  animation: cgb-max4-pulse 0.5s ease;
}
@keyframes cgb-max4-pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  40% { transform: translate(-50%, -50%) scale(1.18); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.cgb-max4__video--pulse .cgb-max4__video-poster {
  animation: cgb-max4-flash 0.5s ease;
}
@keyframes cgb-max4-flash {
  0% { opacity: 1; }
  40% { opacity: 0.55; }
  100% { opacity: 1; }
}
.cgb-max4__steps {
  width: 100%;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (min-width: 1024px) {
  .cgb-max4__steps {
    flex: 0 0 552px;
    max-width: 552px;
    gap: 20px;
  }
}
.cgb-max4__step {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 0.25s ease;
}
.cgb-max4__step.active {
  opacity: 1;
}
.cgb-max4__step-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}
@media (min-width: 620px) {
  .cgb-max4__step-icon {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }
}
.cgb-max4__step-text h3 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.06em;
  color: #131313;
  margin: 0 0 8px;
}
@media (min-width: 1200px) {
  .cgb-max4__step-text h3 {
    font-size: 22px;
  }
}
.cgb-max4__step-text p {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  color: rgba(19, 19, 19, 0.7);
  margin: 0;
}
@media (min-width: 1200px) {
  .cgb-max4__step-text p {
    font-size: 15px;
  }
}

/* Лайтбокс с видео */
.cgb-max4__lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cgb-max4__lightbox[hidden] {
  display: none;
}
.cgb-max4__lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 19, 0.8);
}
.cgb-max4__lightbox-inner {
  position: relative;
  width: 90%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  z-index: 1;
}
.cgb-max4__lightbox-media {
  width: 100%;
  height: 100%;
}
.cgb-max4__lightbox-media iframe,
.cgb-max4__lightbox-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.cgb-max4__lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
