.rwe-services-switcher {
  --rwe-accent: #c56a3b;
  --rwe-badge: #4c6b3a;
  --rwe-dark: #111111;
  --rwe-preview-height: 505px;
  --rwe-align: center;
  display: flex;
  flex-flow: row nowrap;
  align-items: var(--rwe-align);
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.rwe-services-switcher *,
.rwe-services-switcher *::before,
.rwe-services-switcher *::after { box-sizing: border-box; }

.rwe-services-list {
  display: flex;
  flex: 0 0 36%;
  flex-direction: column;
  gap: 10px;
  width: 36%;
  min-height: var(--rwe-preview-height);
  margin: 0;
}

.rwe-service-tab {
  display: grid !important;
  grid-template-columns: 1fr 18px !important;
  grid-template-rows: auto auto !important;
  align-content: center !important;
  align-items: center !important;
  column-gap: 14px !important;
  flex: 1 1 0;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  appearance: none;
  background: #fff !important;
  border: 1px solid #e5e1da !important;
  border-radius: 3px !important;
  color: var(--rwe-dark) !important;
  text-align: left !important;
  cursor: pointer;
  text-transform: none !important;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.rwe-service-tab:hover,
.rwe-service-tab:focus-visible,
.rwe-service-tab.is-active {
  border-color: var(--rwe-dark) !important;
  box-shadow: 0 8px 22px rgba(17, 17, 17, .08) !important;
  transform: translateY(-1px);
  outline: none;
}

.rwe-service-number {
  grid-column: 1;
  grid-row: 1;
  display: block;
  margin: 0 0 5px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: var(--rwe-accent);
}

.rwe-service-title {
  grid-column: 1;
  grid-row: 2;
  display: block;
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: none !important;
  color: var(--rwe-dark);
}

.rwe-service-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  font-size: 16px;
  line-height: 1;
  color: var(--rwe-accent);
}

.rwe-service-preview {
  position: relative;
  flex: 1 1 auto;
  width: 64%;
  min-height: var(--rwe-preview-height);
  overflow: hidden;
  background: var(--rwe-dark);
  border-radius: 3px;
  box-shadow: 0 18px 55px rgba(17, 17, 17, .16);
}

.rwe-service-panel {
  position: absolute;
  inset: 0;
  display: none;
  animation: rweFadeIn .25s ease;
}

.rwe-service-panel.is-active { display: block; }

.rwe-service-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rwe-service-image--placeholder {
  background: linear-gradient(135deg, #282828, var(--rwe-dark));
}

.rwe-service-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(17,17,17,.78) 0%, rgba(17,17,17,.55) 48%, rgba(17,17,17,.2) 100%);
}

.rwe-service-panel-content {
  position: absolute;
  right: 42px;
  bottom: 42px;
  left: 42px;
  z-index: 2;
  max-width: 520px;
  color: #fff;
}

.rwe-service-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: var(--rwe-badge);
  border-radius: 2px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.rwe-service-panel-content h3 {
  margin: 0 0 16px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  line-height: .95;
  text-transform: uppercase;
  color: #fff;
}

.rwe-service-panel-content h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 16px;
  background: var(--rwe-accent);
}

.rwe-service-panel-content p {
  max-width: 520px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.84);
}

.rwe-service-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  background: var(--rwe-accent);
  border: 1px solid var(--rwe-accent);
  border-radius: 3px;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-transform: none !important;
  text-decoration: none;
  color: #fff;
  transition: filter .25s ease, transform .25s ease;
}

.rwe-service-card-button:hover,
.rwe-service-card-button:focus-visible {
  filter: brightness(.88);
  transform: translateY(-1px);
  color: #fff;
}

@keyframes rweFadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .rwe-services-switcher * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .rwe-services-switcher { flex-direction: column; align-items: stretch; gap: 28px; }
  .rwe-services-list,
  .rwe-service-preview { flex: 0 0 auto; width: 100%; }
  .rwe-services-list { min-height: 0; }
  .rwe-service-tab { flex: 0 0 auto; min-height: 58px !important; }
  .rwe-service-preview { min-height: min(var(--rwe-preview-height), 430px); }
}

@media (max-width: 767px) {
  .rwe-service-tab { min-height: 56px !important; padding: 11px 15px !important; }
  .rwe-service-panel-content { right: 24px; bottom: 32px; left: 24px; }
  .rwe-service-panel-content h3 { font-size: 38px; }
  .rwe-service-card-button { width: 100%; }
}
