.cgb-tabsdemo1 {
  background-color: #f2f3f5;
  padding: 40px 0;
  box-sizing: border-box;
}
.cgb-tabsdemo1 *,
.cgb-tabsdemo1 *:before,
.cgb-tabsdemo1 *:after {
  box-sizing: border-box;
}
.cgb-tabsdemo1__container {
  max-width: 1370px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}
.cgb-tabsdemo1__title {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -0.06em;
  text-align: center;
  margin: 0 0 40px;
  color: #131313;
}
@media (max-width: 991px) {
  .cgb-tabsdemo1__title { font-size: 28px; text-align: left; margin-bottom: 24px; }
}
.cgb-tabsdemo1__wrap {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
@media (max-width: 920px) {
  .cgb-tabsdemo1__wrap { flex-direction: column; }
}
.cgb-tabsdemo1__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 330px;
  flex-shrink: 0;
  height: auto;
}
@media (max-width: 920px) {
  .cgb-tabsdemo1__tabs { max-width: none; flex-direction: row; flex-wrap: wrap; }
}
.cgb-tabsdemo1__tab {
  text-align: left;
  border: 1px solid transparent;
  background-color: #fff;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #131313;
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: border-color 0.35s, background-color 0.35s, color 0.35s;
  height: 100%;
}
.cgb-tabsdemo1__tab:hover:not(.active) {
  border-color: rgba(3, 137, 203, 0.3);
}
.cgb-tabsdemo1__tab.active {
  border-color: rgb(3, 137, 203);
  background-color: rgba(3, 137, 203, 0.06);
  color: rgb(3, 137, 203);
}
.cgb-tabsdemo1__panels {
  flex: 1;
  width: 100%;
  display: grid;
}
.cgb-tabsdemo1__panels > * {
  grid-area: 1/1;
}
.cgb-tabsdemo1__panel {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cgb-tabsdemo1__panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 920px) {
  .cgb-tabsdemo1__panel { flex-direction: column; }
}
@media (max-width: 620px) {
  .cgb-tabsdemo1__panel { padding: 20px; }
}
.cgb-tabsdemo1__content {
  flex: 1;
}
.cgb-tabsdemo1__content h3 {
  margin: 0 0 16px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: #131313;
}
.cgb-tabsdemo1__content ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.cgb-tabsdemo1__content ul li {
  position: relative;
  padding-left: 20px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.03em;
  color: rgba(19, 19, 19, 0.7);
  margin-bottom: 10px;
}
.cgb-tabsdemo1__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgb(3, 137, 203);
}
.cgb-tabsdemo1__img {
  flex: 0 1 380px;
  overflow: hidden;
}
.cgb-tabsdemo1__img img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 10px;
  transform: scale(1.3);
}
@media (max-width: 920px) {
  .cgb-tabsdemo1__img { flex: none; }
  .cgb-tabsdemo1__img img { max-width: 320px; margin: 0 auto; }
}

.cgb-tabsdemo1__note {
  margin: 40px 0 0;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-align: center;
  color: #131313;
}
.cgb-tabsdemo1__note a {
  margin-left: 4px;
  color: #0389cb;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cgb-tabsdemo1__note a:hover { text-decoration: none; }
@media (max-width: 767px) {
  .cgb-tabsdemo1__note { margin-top: 24px; font-size: 18px; }
}

/* Режим с фоном карточки (поле «Фон карточки»): фон растянут на всю карточку,
   картинка таба занимает правую половину без масштабирования и обрезки. */
.cgb-tabsdemo1--bg .cgb-tabsdemo1__panel {
  padding: 0;
  gap: 0;
  align-items: stretch;
  min-height: 390px;
  overflow: hidden;
  background: #fff var(--cgb-tabsdemo1-bg) right center / cover no-repeat;
}
.cgb-tabsdemo1--bg .cgb-tabsdemo1__content {
  padding: 30px;
  align-self: center;
}
.cgb-tabsdemo1--bg .cgb-tabsdemo1__img {
  flex: 0 0 50.5%;
  max-width: 506px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.cgb-tabsdemo1--bg .cgb-tabsdemo1__img img {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 0;
  transform: none;
}
@media (max-width: 920px) {
  .cgb-tabsdemo1--bg .cgb-tabsdemo1__panel { min-height: 0; background-position: right bottom; }
  .cgb-tabsdemo1--bg .cgb-tabsdemo1__content { align-self: stretch; }
  .cgb-tabsdemo1--bg .cgb-tabsdemo1__img { flex: none; width: 100%; margin: 0 auto; }
  .cgb-tabsdemo1--bg .cgb-tabsdemo1__img img { max-width: 506px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .cgb-tabsdemo1--bg .cgb-tabsdemo1__content { padding: 20px 20px 0; }
}
