.etc-services-switcher {
  --etc-switcher-gap: 64px;
  display: flex;
  gap: var(--etc-switcher-gap);
  align-items: stretch;
}

.etc-services-switcher.layout-right {
  flex-direction: row-reverse;
}

.etc-services-switcher__media {
  position: relative;
  flex: 1 1 55%;
  min-height: 360px;
  overflow: hidden;
}

.etc-services-switcher__media-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.etc-services-switcher__media-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.25), rgba(0,0,0,0));
  pointer-events: none;
}

.etc-services-switcher__media-item.is-active {
  opacity: 1; 
  visibility: visible;
}

.etc-services-switcher__panel {
  flex: 1 1 45%;
  background: #fff;
  display: flex;
  align-items: stretch;
}

.etc-services-switcher__panel-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  justify-content: flex-start;
}

.etc-services-switcher__tabs {
  display: flex;
  flex-direction: column;
}

.etc-services-switcher__tab 
{
  border: none !important;
  background: none !important;
  border-bottom: 1px solid !important;
  border-radius: 0 !important;
  align-self: flex-start;
  text-align: left;
  padding: 0 !important;
  margin: 0 !important;
  text-transform: uppercase;
  transition: color .2s ease;
  position: relative;
  cursor: pointer; 
}

.etc-services-switcher__tab:last-child {
  margin-bottom: 0;
}

.etc-services-switcher__tab.is-active 
{
  
}

.etc-services-switcher__tab.is-active::after {
  background: currentColor;
  width: 72px;
}

.etc-services-switcher__tab:hover {
  color: #0e2c69;
}

.etc-services-switcher__detail {
  display: none;
  flex-direction: column;
  gap: 24px;
}

.etc-services-switcher__detail.is-active {
  display: flex;
}

.etc-services-switcher__description {
  font-size: 1rem;
  line-height: 1.8;
  color: #1f2933;
}

.etc-services-switcher__description p {
  margin: 0 0 1em;
}

.etc-services-switcher__description p:last-child {
  margin-bottom: 0;
}

.etc-services-switcher__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0e2c69;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 38px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.etc-services-switcher__cta:hover,
.etc-services-switcher__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(14, 44, 105, 0.25);
}

@media (max-width: 1024px) {
  .etc-services-switcher {
    flex-direction: column;
  }

  .etc-services-switcher__media {
    min-height: 260px;
  }

  .etc-services-switcher__panel {
    border-radius: 20px;
  }

  .etc-services-switcher__tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .etc-services-switcher__tab {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .etc-services-switcher__tabs {
    flex-direction: column;
  }

  .etc-services-switcher__cta {
    width: 100%;
    justify-content: center;
  }
}

