.tabs-section {
  background-color: var(--color-blue-deep);
  color: var(--color-text-invert-main);
  padding: 100px 0;
}
.tabs-section__title {
  text-align: center;
  max-width: 866px;
  margin: 0 auto 72px;
  color: rgba(255, 255, 255, 0.5);
}
.tabs-section__title:first-line {
  color: var(--color-text-invert-main);
}
.tabs-section__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 310px) 1fr;
  gap: 48px;
}
@media (width < 1224px) {
  .tabs-section {
    padding: 64px 0;
  }
  .tabs-section__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tabs-section__title {
    margin-bottom: 56px;
    max-width: 688px;
  }
}
@media (width < 768px) {
  .tabs-section {
    padding: 48px 0;
  }
  .tabs-section__title {
    margin-bottom: 32px;
  }
}

.tabs-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 48px;
}
.tabs-nav__item {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 18px;
  line-height: 24px;
}
.tabs-nav__item:hover {
  background: rgba(255, 255, 255, 0.15);
}
.tabs-nav__item.is-active {
  background: #fff;
  color: var(--color-text-main);
}
@media (width < 1224px) {
  .tabs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tabs-nav__item {
    padding: 12px 24px;
    font-weight: 400;
    font-size: 16px;
  }
}
@media (width < 768px) {
  .tabs-nav {
    gap: 16px 8px;
  }
  .tabs-nav__item {
    font-size: 14px;
    padding: 6px 12px;
  }
}

.tab-pane {
  display: none;
}
.tab-pane.is-active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}
.tab-pane__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tab-pane__grid .tab-card ~ .tab-card .tab-card__body {
  background: rgba(255, 255, 255, 0.15);
}
.tab-pane__grid .tab-card:nth-child(2) ~ .tab-card .tab-card__body {
  background: rgba(255, 255, 255, 0.2);
}
@media (width < 1224px) {
  .tab-pane__grid {
    gap: 24px 16px;
  }
}
@media (width < 768px) {
  .tab-pane__grid {
    grid-template-columns: 1fr;
  }
}

.tab-card {
  display: flex;
  overflow: hidden;
  gap: 24px;
}
.tab-card--half {
  grid-column: span 1;
  flex-direction: column;
}
.tab-card--full {
  grid-column: span 2;
}
.tab-card--left {
  flex-direction: row;
}
.tab-card--right {
  flex-direction: row-reverse;
}
.tab-card__image {
  width: 34%;
  flex-shrink: 0;
}
.tab-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}
.tab-card__body {
  padding: 40px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
}
.tab-card__title {
  color: #fff;
  margin-bottom: 12px;
}
.tab-card__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}
.tab-card__action {
  margin-top: 64px;
  display: flex;
  justify-content: flex-start;
}
@media (width < 1224px) {
  .tab-card {
    gap: 16px;
  }
  .tab-card__body {
    padding: 24px;
    border-radius: 24px;
  }
  .tab-card__text {
    font-size: 16px;
    line-height: 1.6;
  }
  .tab-card__image {
    width: 42%;
  }
  .tab-card__image img {
    border-radius: 24px;
  }
  .tab-card__action {
    margin-top: 40px;
  }
}
@media (width < 768px) {
  .tab-card--half {
    grid-column: span 1;
  }
  .tab-card--full {
    grid-column: span 1;
    flex-direction: column-reverse;
    gap: 24px;
  }
  .tab-card__image {
    width: 100%;
  }
  .tab-card__image img {
    aspect-ratio: 5/4;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
