.tms-services-module,
.tms-services-module * {
  box-sizing: border-box;
}

.tms-services-module {
  --tms-bg: #F3FAFD;
  --tms-card: #ffffff;
  --tms-navy: #004475;
  --tms-blue: #004C7F;
  --tms-deep: #062A46;
  --tms-ink: #082C49;
  --tms-muted: #627391;
  --tms-copy: #51627E;
  --tms-gold: #F4B51F;
  --tms-cyan: #00A2C7;
  --tms-border: #EAF2F7;
  --tms-radius-lg: 32px;
  --tms-radius-md: 28px;
  --tms-radius-sm: 22px;

  width: 100%;
  background: var(--tms-bg);
  color: var(--tms-ink);
  font-family: 'Gothic A1', Arial, sans-serif;
  font-size: 16px;
  padding: 64px 20px;
  overflow: hidden;
}

.tms-services-module h1,
.tms-services-module h2,
.tms-services-module h3,
.tms-services-module .tms-title {
  font-family: 'Fira Sans', Arial, sans-serif;
  font-weight: 400;
}

.tms-services-module p,
.tms-services-module .tms-body {
  font-family: 'Gothic A1', Arial, sans-serif;
  font-size: 16px;
}

.tms-services-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.tms-services-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.tms-lang-toggle {
  display: inline-flex;
  gap: 8px;
  width: fit-content;
  padding: 4px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(8, 44, 73, 0.06);
}

.tms-lang-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tms-muted);
  cursor: pointer;
  font-family: 'Gothic A1', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 16px;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.tms-lang-btn:hover {
  background: var(--tms-bg);
  color: var(--tms-navy);
}

.tms-lang-btn.is-active {
  background: var(--tms-navy);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(0, 68, 117, 0.16);
}

.tms-services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: stretch;
}

.tms-services-list {
  display: grid;
  gap: 16px;
}

.tms-service-card {
  position: relative;
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid #ffffff;
  border-radius: var(--tms-radius-md);
  background: #ffffff;
  color: var(--tms-ink);
  padding: 24px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(8, 44, 73, 0.04);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, background 260ms ease, color 260ms ease;
}

.tms-service-card:hover {
  transform: translateY(-4px);
  border-color: #DDEAF2;
  box-shadow: 0 22px 38px rgba(8, 44, 73, 0.10);
}

.tms-service-card.is-active {
  border-color: var(--tms-gold);
  background: var(--tms-blue);
  color: #ffffff;
  box-shadow: 0 26px 60px rgba(0, 68, 117, 0.20);
}

.tms-service-card.is-active::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 176px;
  height: 176px;
  border-radius: 999px;
  background: rgba(244, 181, 31, 0.20);
  filter: blur(28px);
  pointer-events: none;
}

.tms-service-card-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}

.tms-service-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--tms-bg);
  color: var(--tms-blue);
  transition: background 240ms ease, color 240ms ease;
}

.tms-service-card:hover .tms-service-icon {
  background: var(--tms-blue);
  color: #ffffff;
}

.tms-service-card.is-active .tms-service-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--tms-gold);
}

.tms-service-icon svg,
.tms-preview-icon svg,
.tms-check-icon svg,
.tms-card-arrow svg,
.tms-cta-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tms-service-icon svg {
  width: 32px;
  height: 32px;
}

.tms-service-text {
  min-width: 0;
  flex: 1;
}

.tms-service-title {
  display: block;
  margin: 0;
  color: inherit;
  font-family: 'Fira Sans', Arial, sans-serif;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700 !important;
}

.tms-service-short {
  display: block;
  margin: 8px 0 0;
  color: var(--tms-muted);
  font-size: 16px;
  line-height: 1.75;
  transition: color 240ms ease;
}

.tms-service-card.is-active .tms-service-short {
  color: rgba(239, 247, 255, 0.86);
}

.tms-card-arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #C7D7E4;
  transition: color 240ms ease, transform 240ms ease;
}

.tms-service-card:hover .tms-card-arrow {
  color: var(--tms-blue);
  transform: translateX(4px);
}

.tms-service-card.is-active .tms-card-arrow {
  color: var(--tms-gold);
}

.tms-service-preview {
  position: relative;
  min-height: 520px;
  border-radius: var(--tms-radius-lg);
  background: #ffffff;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(169, 201, 216, 0.25);
}

.tms-orb,
.tms-ring {
  position: absolute;
  pointer-events: none;
}

.tms-orb-gold {
  right: -96px;
  top: -96px;
  width: 288px;
  height: 288px;
  border-radius: 999px;
  background: rgba(244, 181, 31, 0.18);
  filter: blur(42px);
}

.tms-orb-cyan {
  left: 32px;
  bottom: -80px;
  width: 256px;
  height: 256px;
  border-radius: 999px;
  background: rgba(0, 162, 199, 0.12);
  filter: blur(44px);
}

.tms-ring {
  top: 40px;
  right: 40px;
  width: 96px;
  height: 96px;
  border: 18px solid rgba(244, 181, 31, 0.10);
  border-radius: 999px;
}

.tms-preview-content {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.tms-preview-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 36px;
  border-radius: 22px;
  background: var(--tms-blue);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(0, 68, 117, 0.20);
}

.tms-preview-icon svg {
  width: 40px;
  height: 40px;
}

.tms-preview-label {
  margin-bottom: 12px;
  color: var(--tms-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.tms-preview-title {
  max-width: 760px;
  margin: 0;
  color: var(--tms-deep);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 700 !important;
}

.tms-preview-headline {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--tms-blue);
  font-size: clamp(21px, 2.25vw, 26px);
  line-height: 1.45;
  font-weight: 700 !important;
}

.tms-preview-description {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--tms-copy);
  font-size: 16px;
  line-height: 1.8;
}

.tms-bullets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.tms-bullet-card {
  border: 1px solid var(--tms-border);
  border-radius: 23px;
  background: #F6FAFC;
  padding: 24px;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.tms-bullet-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 181, 31, 0.42);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(8, 44, 73, 0.08);
}

.tms-check-icon {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 24px;
  color: var(--tms-gold);
}

.tms-bullet-title {
  color: var(--tms-deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tms-preview-action {
  margin-top: auto;
  padding-top: 40px;
}

.tms-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  border-radius: 999px;
  background: var(--tms-gold);
  color: var(--tms-deep);
  padding: 16px 32px;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 18px 36px rgba(244, 181, 31, 0.20);
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.tms-cta:hover {
  transform: translateY(-4px);
  color: var(--tms-deep);
  box-shadow: 0 26px 46px rgba(244, 181, 31, 0.30);
}

.tms-cta-icon {
  display: block;
  width: 20px;
  height: 20px;
  transition: transform 240ms ease;
}

.tms-cta:hover .tms-cta-icon {
  transform: translateX(4px);
}

.tms-fade-in {
  animation: tmsFadeIn 260ms ease both;
}

@keyframes tmsFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .tms-services-layout {
    grid-template-columns: 1fr;
  }

  .tms-service-preview {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .tms-services-module {
    padding: 44px 16px;
  }

  .tms-services-topbar {
    justify-content: flex-start;
  }

  .tms-service-card {
    padding: 20px;
    border-radius: 24px;
  }

  .tms-service-card-inner {
    align-items: flex-start;
    gap: 16px;
  }

  .tms-service-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .tms-service-icon svg {
    width: 27px;
    height: 27px;
  }

  .tms-card-arrow {
    display: none;
  }

  .tms-service-preview {
    padding: 28px;
    border-radius: 28px;
  }

  .tms-preview-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
    border-radius: 19px;
  }

  .tms-preview-icon svg {
    width: 34px;
    height: 34px;
  }

  .tms-bullets-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .tms-cta {
    width: 100%;
    padding: 17px 24px;
  }
}
