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

.rolmax-services {
  --rolmax-navy: #2d3b52;
  --rolmax-navy-dark: #223047;
  --rolmax-blue: #4f8dff;
  --rolmax-blue-dark: #3478f6;
  --rolmax-text: #343b48;
  --rolmax-muted: #737d8e;
  --rolmax-line: #dfe5ed;
  --rolmax-soft: #f6f8fb;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--rolmax-text);
  font-family: inherit;
}

.rolmax-services__header {
  margin: 0 auto 26px;
  text-align: center;
}

.rolmax-services__title {
  margin: 0;
  color: var(--rolmax-text);
  font: inherit;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.2;
}

.rolmax-services__intro {
  max-width: 700px;
  margin: 10px auto 0;
  color: var(--rolmax-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rolmax-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rolmax-services__card {
  display: flex;
  min-width: 0;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(45, 59, 82, 0.1) !important;
  border-radius: 0 !important;
  outline: 0;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(27, 42, 66, 0.08);
  color: inherit !important;
  cursor: pointer;
  font: inherit !important;
  line-height: normal !important;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  appearance: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.rolmax-services__card::before,
.rolmax-services__card::after,
.rolmax-services-modal__close::before,
.rolmax-services-modal__close::after {
  display: none !important;
  content: none !important;
}

.rolmax-services__card:hover,
.rolmax-services__card:focus-visible {
  border-color: rgba(79, 141, 255, 0.32) !important;
  background: #fff !important;
  box-shadow: 0 18px 42px rgba(27, 42, 66, 0.16);
  color: inherit !important;
  transform: translateY(-4px);
}

.rolmax-services__card:focus-visible {
  outline: 3px solid rgba(79, 141, 255, 0.35);
  outline-offset: 3px;
}

.rolmax-services__media {
  position: relative;
  display: block !important;
  width: 100% !important;
  height: clamp(190px, 18vw, 235px) !important;
  min-height: 190px !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
  aspect-ratio: auto !important;
  background-color: #e6e9ee !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.rolmax-services__media img {
  position: absolute !important;
  z-index: 1;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: cover !important;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rolmax-services__media-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 48, 71, 0) 56%, rgba(34, 48, 71, 0.25));
  opacity: 0;
  transition: opacity 220ms ease;
}

.rolmax-services__more {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(26, 39, 60, 0.2);
  color: var(--rolmax-blue);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.rolmax-services__card:hover .rolmax-services__media img,
.rolmax-services__card:focus-visible .rolmax-services__media img {
  transform: scale(1.035);
}

.rolmax-services__card:hover .rolmax-services__media-shade,
.rolmax-services__card:focus-visible .rolmax-services__media-shade,
.rolmax-services__card:hover .rolmax-services__more,
.rolmax-services__card:focus-visible .rolmax-services__more {
  opacity: 1;
}

.rolmax-services__card:hover .rolmax-services__more,
.rolmax-services__card:focus-visible .rolmax-services__more {
  transform: translateY(0);
}

.rolmax-services__card-body {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 82px;
  padding: 20px 22px 18px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--rolmax-navy) !important;
  color: #fff !important;
  text-align: center;
}

.rolmax-services__card-body strong {
  display: block;
  width: 100%;
  color: #fff !important;
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.rolmax-services__card-body > span {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.rolmax-services__card-body small {
  display: block;
  width: 100%;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  text-align: center;
  transition: max-height 220ms ease, margin 220ms ease, opacity 220ms ease;
}

.rolmax-services__card-body small b {
  margin-left: 4px;
  font-size: 16px;
  font-weight: 400;
}

.rolmax-services__card:hover .rolmax-services__card-body,
.rolmax-services__card:focus-visible .rolmax-services__card-body {
  background: var(--rolmax-blue-dark) !important;
}

.rolmax-services__card:hover .rolmax-services__card-body small,
.rolmax-services__card:focus-visible .rolmax-services__card-body small {
  max-height: 30px;
  margin-top: 10px;
  opacity: 1;
}

body.rolmax-services-modal-open {
  overflow: hidden !important;
}

.rolmax-services-modal[hidden] {
  display: none !important;
}

.rolmax-services-modal {
  position: fixed;
  z-index: 2147483000 !important;
  inset: 0 !important;
  display: grid !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  padding: 24px;
  place-items: center;
  isolation: isolate;
  transform: none !important;
  --rolmax-navy: #2d3b52;
  --rolmax-navy-dark: #223047;
  --rolmax-blue: #4f8dff;
  --rolmax-blue-dark: #3478f6;
  --rolmax-text: #343b48;
  --rolmax-muted: #737d8e;
  --rolmax-line: #dfe5ed;
  --rolmax-soft: #f6f8fb;
}

.rolmax-services-modal__backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(24, 35, 52, 0.78);
  backdrop-filter: blur(4px);
}

.rolmax-services-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  box-shadow: 0 28px 80px rgba(11, 20, 34, 0.38);
  animation: rolmax-services-dialog-in 220ms ease both;
}

.rolmax-services-modal__scroll {
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rolmax-services-modal__close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0 0 2px;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  outline: 0;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 24px rgba(29, 43, 64, 0.18);
  color: var(--rolmax-navy) !important;
  cursor: pointer;
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  text-transform: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.rolmax-services-modal__close:hover,
.rolmax-services-modal__close:focus-visible {
  border: 0 !important;
  background: var(--rolmax-blue) !important;
  color: #fff !important;
  transform: rotate(5deg);
}

.rolmax-services-modal__close:focus-visible {
  outline: 3px solid rgba(79, 141, 255, 0.35);
  outline-offset: 2px;
}

.rolmax-services-modal__layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(560px, 1.35fr);
  min-height: 610px;
}

.rolmax-services-modal__image {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--rolmax-navy);
}

.rolmax-services-modal__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34, 48, 71, 0.02), rgba(34, 48, 71, 0.25));
  content: '';
}

.rolmax-services-modal__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 610px;
  margin: 0 !important;
  object-fit: cover;
}

.rolmax-services-modal__content {
  display: flex;
  min-width: 0;
  padding: 54px 46px 44px;
  flex-direction: column;
}

.rolmax-services-modal__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--rolmax-blue-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.rolmax-services-modal__content h2 {
  margin: 0;
  color: var(--rolmax-text);
  font: inherit;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.15;
}

.rolmax-services-modal__lead {
  margin: 16px 0 0;
  color: var(--rolmax-muted);
  font-size: 16px;
  line-height: 1.6;
}

.rolmax-services-modal__sections {
  display: grid;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rolmax-services-modal__section {
  min-width: 0;
  padding: 23px 22px;
  border: 1px solid var(--rolmax-line);
  border-radius: 10px;
  background: var(--rolmax-soft);
}

.rolmax-services-modal__section h3 {
  margin: 0 0 17px;
  color: var(--rolmax-navy);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.rolmax-services-modal__section ul,
.rolmax-services-modal__section ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rolmax-services-modal__section li {
  position: relative;
  margin: 0 0 13px;
  color: #5d6675;
  font-size: 14.5px;
  line-height: 1.5;
}

.rolmax-services-modal__section li:last-child {
  margin-bottom: 0;
}

.rolmax-services-modal__section ul li {
  padding-left: 20px;
}

.rolmax-services-modal__section ul li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rolmax-blue);
  box-shadow: 0 0 0 4px rgba(79, 141, 255, 0.12);
  content: '';
}

.rolmax-services-modal__section--steps li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
}

.rolmax-services-modal__section--steps li span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #e7efff;
  color: var(--rolmax-blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.rolmax-services-modal__cta {
  display: inline-flex;
  min-width: 230px;
  min-height: 50px;
  margin-top: 26px;
  padding: 13px 24px;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--rolmax-blue) !important;
  border-radius: 4px;
  background: var(--rolmax-blue) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.rolmax-services-modal__cta:hover,
.rolmax-services-modal__cta:focus-visible {
  border-color: var(--rolmax-navy) !important;
  background: var(--rolmax-navy) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

@keyframes rolmax-services-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .rolmax-services__grid {
    gap: 12px;
  }

  .rolmax-services__card-body {
    padding: 17px;
  }

  .rolmax-services-modal__layout {
    grid-template-columns: 0.8fr 1.2fr;
    min-height: 590px;
  }

  .rolmax-services-modal__image img {
    min-height: 590px;
  }

  .rolmax-services-modal__content {
    padding: 48px 30px 34px;
  }

  .rolmax-services-modal__sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .rolmax-services {
    width: 100%;
  }

  .rolmax-services__header {
    margin-bottom: 18px;
    padding: 0 14px;
  }

  .rolmax-services__title {
    font-size: 28px;
  }

  .rolmax-services__intro {
    font-size: 15px;
  }

  .rolmax-services__grid {
    display: flex;
    width: 100%;
    padding: 2px 14px 18px;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rolmax-services__grid::-webkit-scrollbar {
    display: none;
  }

  .rolmax-services__card {
    width: min(82vw, 330px);
    flex: 0 0 min(82vw, 330px);
    scroll-snap-align: start;
  }

  .rolmax-services__media {
    height: 210px !important;
    min-height: 210px !important;
  }

  .rolmax-services__card:hover {
    transform: none;
  }

  .rolmax-services__card-body {
    min-height: 76px;
    padding: 17px 18px;
  }

  .rolmax-services__card-body strong {
    font-size: 18px;
  }

  .rolmax-services__card-body small,
  .rolmax-services__card:hover .rolmax-services__card-body small {
    display: none;
  }

  .rolmax-services__more {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    opacity: 1;
    transform: none;
  }

  .rolmax-services-modal {
    padding: 8px;
  }

  .rolmax-services-modal__dialog,
  .rolmax-services-modal__scroll {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .rolmax-services-modal__dialog {
    border-radius: 12px;
  }

  .rolmax-services-modal__layout {
    display: block;
    min-height: 0;
  }

  .rolmax-services-modal__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .rolmax-services-modal__image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .rolmax-services-modal__content {
    padding: 28px 18px 24px;
  }

  .rolmax-services-modal__close {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .rolmax-services-modal__content h2 {
    padding-right: 34px;
    font-size: 27px;
  }

  .rolmax-services-modal__lead {
    font-size: 15px;
  }

  .rolmax-services-modal__sections {
    margin-top: 22px;
    gap: 12px;
  }

  .rolmax-services-modal__section {
    padding: 18px;
  }

  .rolmax-services-modal__cta {
    width: 100%;
    min-width: 0;
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rolmax-services__card,
  .rolmax-services__media img,
  .rolmax-services__more,
  .rolmax-services-modal__dialog,
  .rolmax-services-modal__close,
  .rolmax-services-modal__cta {
    animation: none !important;
    transition: none !important;
  }
}
