/* Block services-bb619c3e: service cards. Card images are uploaded content (ServiceCard.banner
   and inner_image). id="services" is the page anchor.
   Markup in common/index.html. Independent: own font faces, colours and layout; shares only the
   font files. */

/* TikTok Sans of the Rappel brand, renamed for this block. */
@font-face {
  font-family: "TikTok Sans-bb619c3e";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "TikTok Sans-bb619c3e";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "TikTok Sans-bb619c3e";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "TikTok Sans-bb619c3e";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "TikTok Sans-bb619c3e";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "TikTok Sans-bb619c3e";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../../fonts/tiktok-sans/tiktok-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+02D8-02D9, U+02DB, U+0302, U+0306-0307, U+030A-030C, U+0312, U+031B, U+0326-0328, U+032E, U+0331, U+0335, U+0337-0338, U+0E3F, U+2070, U+2074-207B, U+207D-207E, U+2080-208B, U+208D-208E, U+2100, U+2105, U+2117, U+2153-2154, U+215B-215E, U+2190, U+2192, U+2194-2199, U+2248, U+2260, U+2264-2265, U+2460-2468, U+24EA, U+24FF, U+25CB-25CC, U+25CF, U+2776-277E, U+FB01-FB02;
}

.services-bb619c3e {
  display: block;
  margin: 0;
  /* Space above the block: the same fluid step between all blocks, 48 to 96 px. */
  padding: clamp(48px, 7.5vw, 96px) 0 0;
  background: #ffffff;
  color: #243b56;
  font-family: "TikTok Sans-bb619c3e", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
  font-kerning: normal;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.services-bb619c3e,
.services-bb619c3e :where(*),
.services-bb619c3e :where(*)::before,
.services-bb619c3e :where(*)::after {
  box-sizing: border-box;
}
.services-bb619c3e :where(*) {
  margin: 0;
  padding: 0;
}
.services-bb619c3e :where(h2, h3) {
  color: inherit;
  font: inherit;
  text-wrap: balance;
}
.services-bb619c3e :where(a) {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}
.services-bb619c3e :where(ul) {
  list-style: none;
}
.services-bb619c3e :where(img, svg) {
  display: block;
  vertical-align: middle;
  flex-shrink: 0;
}

.services-bb619c3e .services__inner-bb619c3e {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}
/* The page anchor stops 20 px below the sticky header block (92, 80 and 72 px high). */
.services-bb619c3e .services__inner-bb619c3e {
  scroll-margin-top: 112px;
}
@media (max-width: 1100px) {
  .services-bb619c3e .services__inner-bb619c3e {
    scroll-margin-top: 100px;
  }
}
@media (max-width: 600px) {
  .services-bb619c3e .services__inner-bb619c3e {
    scroll-margin-top: 92px;
  }
}
.services-bb619c3e .services__title-bb619c3e {
  color: #243b56;
  font-size: clamp(1.625rem, 1.3804rem + 1.0870vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.services-bb619c3e .services__list-bb619c3e {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin-top: 32px;
}
.services-bb619c3e .services__item-bb619c3e {
  min-width: 0;
}
/* A dark card stands out on the white page. Its frame is two thin lines: the card's own edge
   and a passe-partout inside the banner; both light up in the accent on hover and focus. */
.services-bb619c3e .services__card-bb619c3e {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #46617d;
  border-radius: 16px;
  background: #243b56;
  color: #f4f7fa;
  text-decoration: none;
  box-shadow: 0 18px 36px -28px #192d43cc;
  transition:
    border-color 300ms,
    box-shadow 300ms,
    transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) {
  border-color: #a8d1ef;
  box-shadow: 0 30px 48px -28px #192d43e6;
  color: #f4f7fa;
  text-decoration: none;
  transform: translateY(-6px);
}
.services-bb619c3e .services__card-bb619c3e:focus-visible {
  outline: 3px solid #3b64a7;
  outline-offset: 3px;
}

/* Banner: it fills a fixed frame and slowly comes closer; the optional rank badge rises over a
   darkening veil. Layers: banner, veil (::after), badge, passe-partout (::before). */
.services-bb619c3e .services__media-bb619c3e {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #192d43;
}
.services-bb619c3e .services__media-bb619c3e::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 12px;
  border: 1px solid #f4f7fa40;
  border-radius: 8px;
  pointer-events: none;
  transition:
    inset 400ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 300ms;
}
.services-bb619c3e .services__media-bb619c3e::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #192d43;
  opacity: 0;
  transition: opacity 300ms;
}
.services-bb619c3e .services__banner-bb619c3e {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.services-bb619c3e .services__badge-bb619c3e {
  position: relative;
  z-index: 2;
  width: 56%;
  height: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 300ms,
    transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__media-bb619c3e::before {
  inset: 18px;
  border-color: #a8d1ef;
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__media-bb619c3e::after {
  opacity: 0.55;
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__banner-bb619c3e {
  transform: scale(1.06);
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__badge-bb619c3e {
  opacity: 1;
  transform: none;
}

/* Footer: a thin accent line draws itself along the top edge, the arrow tile lights up. */
.services-bb619c3e .services__footer-bb619c3e {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  padding-inline: 20px 16px;
  border-top: 1px solid #46617d;
}
.services-bb619c3e .services__footer-bb619c3e::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #a8d1ef;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.services-bb619c3e .services__footer-bb619c3e:dir(rtl)::before {
  transform-origin: 100% 50%;
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__footer-bb619c3e::before {
  transform: scaleX(1);
}
.services-bb619c3e .services__name-bb619c3e {
  min-width: 0;
  color: #f4f7fa;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.services-bb619c3e .services__go-bb619c3e {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: #304d6b;
  color: #a8d1ef;
  transition:
    background-color 300ms,
    color 300ms;
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__go-bb619c3e {
  background: #a8d1ef;
  color: #192d43;
}
.services-bb619c3e .services__arrow-bb619c3e {
  transition: translate 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__arrow-bb619c3e {
  translate: 2px 0;
}
.services-bb619c3e .services__arrow-bb619c3e:dir(rtl) {
  transform: scaleX(-1);
}
.services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__arrow-bb619c3e:dir(rtl) {
  translate: -2px 0;
}

/* Touch screens have no hover: the banner stays clean and the frame turns landscape on phones. */
@media (hover: none) {
  .services-bb619c3e .services__badge-bb619c3e,
  .services-bb619c3e .services__media-bb619c3e::after {
    display: none;
  }
}
@media (max-width: 600px) {
  .services-bb619c3e .services__list-bb619c3e {
    gap: 16px;
    margin-top: 24px;
  }
  .services-bb619c3e .services__media-bb619c3e {
    aspect-ratio: 16 / 9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .services-bb619c3e :where(*),
  .services-bb619c3e :where(*)::before,
  .services-bb619c3e :where(*)::after {
    transition: none !important;
  }
  .services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible),
  .services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__banner-bb619c3e {
    transform: none;
  }
  .services-bb619c3e .services__card-bb619c3e:is(:hover, :focus-visible) .services__arrow-bb619c3e {
    translate: none !important;
  }
}
