html:has(body[data-page-type='home']),
html:has(body[data-page-type='home'].timo-fullpage--scripted),
body[data-page-type='home'],
body[data-page-type='home'].timo-fullpage--scripted {
  scroll-snap-type: none;
  overscroll-behavior-y: auto;
}

html:has(body[data-page-type='home']) {
  scroll-padding-top: var(--timo-header-height);
}

body[data-page-type='home'] {
  background: #f6f8fd;
}

body[data-page-type='home'] .timo-main {
  min-height: 0;
}

.ans-home {
  color: #17213a;
  line-height: 1.6;
}

.ans-home a:focus-visible,
.ans-home button:focus-visible {
  outline: 2px solid #1766ac;
  outline-offset: 3px;
}

.ans-container {
  width: min(calc(100% - 80px), 1440px);
  margin-inline: auto;
}

.ans-home h1,
.ans-home h2,
.ans-home h3,
.ans-home p {
  margin-top: 0;
}

.ans-eyebrow {
  margin-bottom: 10px;
  color: #4268bd;
  font-size: 13px;
  font-weight: 700;
}

.ans-button {
  display: inline-flex;
  min-width: 156px;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ans-button:hover {
  transform: translateY(-2px);
}

.ans-button span {
  font-size: 18px;
  font-weight: 400;
}

.ans-button--red {
  background: #d83250;
  color: #fff;
}

.ans-button--red:hover {
  background: #b9203e;
}

.ans-button--blue {
  background: #315fee;
  color: #fff;
}

.ans-button--blue:hover {
  background: #204acf;
}

.ans-button--light {
  border-color: #dce3f3;
  background: #fff;
  color: #243354;
}

.ans-button--light:hover {
  border-color: #7295e9;
  background: #f8fbff;
}

.ans-hero {
  position: relative;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  overflow: hidden;
  background: #e7f3fd;
}

.ans-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.ans-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  align-items: center;
  padding-block: 58px 52px;
}

.ans-hero__copy {
  width: min(58%, 700px);
}

.ans-hero__copy .ans-eyebrow {
  margin-bottom: 20px;
  color: #3865ad;
}

.ans-hero h1 {
  margin-bottom: 24px;
  color: #14243a;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.24;
}

.ans-hero h1 [data-hero-highlight] {
  color: #d83350;
}

.ans-hero__description {
  max-width: 580px;
  margin-bottom: 30px;
  color: #51627d;
  font-size: 16px;
}

.ans-hero__actions,
.ans-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ans-hero__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 62px;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ans-hero__bottom::-webkit-scrollbar {
  display: none;
}

.ans-hero__step {
  position: relative;
  flex: 0 0 auto;
  min-width: 104px;
  padding: 15px 6px 13px;
  border: 0;
  border-bottom: 2px solid rgba(66, 110, 160, 0.17);
  background: transparent;
  color: #7790a9;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.ans-hero__step:first-child {
  min-width: 140px;
}

.ans-hero__step:hover,
.ans-hero__step.is-active {
  color: #234a7e;
}

.ans-hero__step.is-active {
  border-bottom-color: #2868c6;
}

.ans-hero__step:focus-visible {
  outline: 2px solid #2868c6;
  outline-offset: -3px;
}

.ans-hero__step strong {
  margin-left: 4px;
  padding: 2px 3px;
  border-radius: 2px;
  background: #e13352;
  color: #fff;
  font-size: 9px;
}

.ans-highlights {
  background: #fff;
}

.ans-highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ans-highlight {
  display: flex;
  min-height: 142px;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 22px 26px;
  border-right: 1px solid #e8edf7;
}

.ans-highlight:first-child {
  border-left: 1px solid #e8edf7;
}

.ans-highlight__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid #bad0fb;
  border-radius: 7px;
  background: #eef5ff;
  color: #2766d2;
  font-size: 10px;
  font-weight: 700;
}

.ans-highlight h2 {
  margin-bottom: 6px;
  color: #1d2d4a;
  font-size: 16px;
  line-height: 1.4;
}

.ans-highlight p {
  margin-bottom: 0;
  color: #52637e;
  font-size: 12px;
  line-height: 1.65;
}

.ans-highlight--contact {
  align-items: center;
  justify-content: space-between;
  border-color: #3669ed;
  background: #315fee;
  color: #fff;
}

.ans-highlight--contact h2,
.ans-highlight--contact p {
  color: #fff;
}

.ans-highlight--contact > span {
  font-size: 22px;
}

.ans-section-heading h2 {
  margin-bottom: 8px;
  color: #18243c;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.ans-section-heading > p:last-child,
.ans-section-heading > div > p:last-child {
  margin-bottom: 0;
  color: #596981;
  font-size: 14px;
}

.ans-section-heading--center {
  text-align: center;
}

.ans-section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.ans-section-heading__links {
  display: flex;
  gap: 30px;
  padding-bottom: 4px;
  white-space: nowrap;
}

.ans-section-heading__links a {
  color: #314462;
  font-size: 13px;
  font-weight: 600;
}

.ans-section-heading__links a:hover {
  color: #315fee;
}

.ans-advantages {
  padding: 96px 0 105px;
  background: #f6f8fe;
}

.ans-advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.ans-advantage {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px 24px;
  border: 1px solid #edf0f8;
  background: #fff;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ans-advantage:hover {
  transform: translateY(-5px);
  border-color: #d1ddf8;
  box-shadow: 0 12px 32px rgba(42, 76, 154, 0.08);
}

.ans-advantage img {
  width: 100%;
  height: 156px;
  margin-bottom: 12px;
  object-fit: contain;
}

.ans-advantage h3 {
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.35;
}

.ans-advantage p {
  max-width: 240px;
  margin-bottom: 16px;
  color: #596981;
  font-size: 13px;
}

.ans-advantage a {
  margin-top: auto;
  color: #315fee;
  font-size: 13px;
  font-weight: 700;
}

.ans-advantage a span {
  margin-left: 6px;
}

.ans-services {
  padding: 100px 0 105px;
  background: #fff;
}

.ans-services__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 34px;
  margin-bottom: 20px;
}

.ans-services__tab {
  min-height: 40px;
  padding: 9px 19px;
  border: 0;
  border-radius: 3px;
  background: #f6f8fc;
  color: #5c6880;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ans-services__tab:hover,
.ans-services__tab.is-active {
  background: #315fee;
  color: #fff;
}

.ans-service-panel[hidden] {
  display: none;
}

.ans-service-panel {
  display: grid;
  min-height: 400px;
  grid-template-columns: minmax(0, 2.9fr) repeat(2, minmax(0, 0.85fr)) 52px;
  gap: 10px;
}

.ans-service-panel__feature {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e2e9f8;
}

.ans-service-panel__feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(232, 237, 249, 0.99), rgba(232, 237, 249, 0.96) 48%, rgba(232, 237, 249, 0.15));
  content: '';
}

.ans-service-panel__feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.ans-service-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(75%, 650px);
  min-height: 400px;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 34px 30px;
}

.ans-service-panel__number {
  margin-bottom: 20px;
  color: #3869de;
  font-size: 12px;
  font-weight: 700;
}

.ans-service-panel h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.35;
}

.ans-service-panel p {
  margin-bottom: 14px;
  color: #425575;
  font-size: 13px;
}

.ans-service-panel ul {
  display: grid;
  gap: 5px;
  margin: 0 0 24px;
  padding: 0;
  color: #465c7b;
  font-size: 12px;
  list-style: none;
}

.ans-service-panel li::before {
  margin-right: 8px;
  color: #315fee;
  content: '✓';
}

.ans-service-panel .ans-button {
  margin-top: auto;
}

.ans-service-panel__preview {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 18px;
  border: 0;
  border-radius: 6px;
  background: #2b5fed;
  color: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ans-service-panel__preview:nth-of-type(2) {
  background: #25335c;
}

.ans-service-panel__preview::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 52, 110, 0.65), rgba(36, 62, 142, 0.16) 74%);
  content: '';
}

.ans-service-panel__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.8;
}

.ans-service-panel__preview-title,
.ans-service-panel__preview-copy {
  position: relative;
  z-index: 2;
}

.ans-service-panel__preview-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.ans-service-panel__preview-copy {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.ans-service-panel__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 6px;
  background: #8ba0cf;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  writing-mode: vertical-rl;
}

.ans-clients {
  padding: 88px 0 98px;
  background: #f5f7fc;
}

.ans-clients__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 35px;
}

.ans-client-card {
  overflow: hidden;
  background: #fff;
}

.ans-client-card a {
  display: block;
  height: 100%;
}

.ans-client-card__image {
  aspect-ratio: 1.85;
  overflow: hidden;
  background: #dce7f5;
}

.ans-client-card__image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ans-client-card:hover img {
  transform: scale(1.04);
}

.ans-client-card__body {
  position: relative;
  min-height: 164px;
  padding: 24px 48px 28px 26px;
}

.ans-client-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.ans-client-card p {
  margin-bottom: 0;
  color: #596981;
  font-size: 13px;
}

.ans-client-card__body > span {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: #263c71;
  font-size: 20px;
}

.ans-about {
  padding: 86px 0;
  overflow: hidden;
  background: #f4f9ff;
}

.ans-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.ans-about__copy {
  max-width: 610px;
}

.ans-about__copy h2 {
  margin-bottom: 12px;
  color: #18243c;
  font-size: 34px;
  line-height: 1.3;
}

.ans-about__copy .ans-about__lead {
  color: #315fee;
  font-size: 20px;
  font-weight: 700;
}

.ans-about__copy p {
  margin-bottom: 18px;
  color: #4a5e79;
  font-size: 15px;
  line-height: 1.8;
}

.ans-about__copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #315fee;
  font-size: 14px;
  font-weight: 700;
}

.ans-about__visual {
  min-height: 340px;
  background: #dceafa;
}

.ans-about__visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.ans-cta {
  position: relative;
  padding: 52px 0 54px;
  background: #e9f7ff url('../images/portal-cta.webp') center / cover no-repeat;
  text-align: center;
}

.ans-cta h2 {
  margin-bottom: 8px;
  color: #172b4a;
  font-size: 26px;
  line-height: 1.4;
}

.ans-cta p {
  margin-bottom: 20px;
  color: #425575;
  font-size: 14px;
}

.ans-cta p a {
  color: #1e4fbd;
  font-weight: 700;
}

.ans-cta__actions {
  justify-content: center;
}

@media (max-width: 1100px) {
  .ans-container {
    width: min(calc(100% - 48px), 1440px);
  }

  .ans-hero {
    min-height: 520px;
  }

  .ans-hero__copy {
    width: min(56%, 600px);
  }

  .ans-advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ans-highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ans-highlight:nth-child(3) {
    border-left: 1px solid #e8edf7;
  }

  .ans-advantage {
    min-height: 330px;
  }
}

@media (max-width: 700px) {
  .ans-container {
    width: min(calc(100% - 36px), 1440px);
  }

  .ans-hero {
    min-height: min(590px, calc(100svh - 128px));
  }

  .ans-hero__image {
    object-position: 63% center;
  }

  .ans-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(239, 248, 255, 0.93), rgba(239, 248, 255, 0.66) 65%, transparent);
    content: '';
  }

  .ans-hero__inner {
    align-items: flex-start;
    padding-top: 55px;
    padding-bottom: 44px;
  }

  .ans-hero__copy {
    width: 100%;
  }

  .ans-hero h1 {
    font-size: 38px;
  }

  .ans-hero__description {
    max-width: 350px;
    font-size: 14px;
  }

  .ans-hero__bottom {
    min-height: 60px;
    gap: 8px;
  }

  .ans-hero__step {
    min-width: 100px;
    font-size: 11px;
  }

  .ans-section-heading h2 {
    font-size: 28px;
  }

  .ans-highlights__grid {
    grid-template-columns: 1fr;
  }

  .ans-highlight {
    min-height: 105px;
    padding: 20px 16px;
    border-left: 1px solid #e8edf7;
    border-bottom: 1px solid #e8edf7;
  }

  .ans-highlight--contact {
    min-height: 100px;
  }

  .ans-advantages,
  .ans-services,
  .ans-clients {
    padding-block: 64px;
  }

  .ans-advantages__grid,
  .ans-clients__grid {
    gap: 12px;
  }

  .ans-advantage {
    min-height: 310px;
    padding: 14px 12px 20px;
  }

  .ans-advantage img {
    height: 120px;
  }

  .ans-advantage h3 {
    font-size: 15px;
  }

  .ans-advantage p {
    font-size: 12px;
  }

  .ans-section-heading--split {
    display: block;
  }

  .ans-section-heading__links {
    margin-top: 18px;
  }

  .ans-services__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .ans-services__tabs::-webkit-scrollbar {
    display: none;
  }

  .ans-services__tab {
    flex: 0 0 auto;
  }

  .ans-service-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ans-service-panel__feature {
    grid-column: 1 / -1;
    min-height: 440px;
  }

  .ans-service-panel__feature::after {
    background: linear-gradient(180deg, rgba(232, 237, 249, 0.99), rgba(232, 237, 249, 0.94) 64%, rgba(232, 237, 249, 0.14));
  }

  .ans-service-panel__content {
    width: 100%;
    min-height: 440px;
    padding: 26px 22px 28px;
  }

  .ans-service-panel__number {
    margin-bottom: 12px;
  }

  .ans-service-panel h3 {
    font-size: 23px;
  }

  .ans-service-panel__preview {
    min-height: 160px;
    padding: 18px 14px;
  }

  .ans-service-panel__preview-title {
    font-size: 16px;
  }

  .ans-service-panel__preview-copy {
    -webkit-line-clamp: 3;
  }

  .ans-service-panel__more {
    min-height: 42px;
    grid-column: 1 / -1;
    writing-mode: horizontal-tb;
  }

  .ans-clients__grid {
    grid-template-columns: 1fr;
  }

  .ans-client-card__body {
    min-height: 0;
  }

  .ans-about {
    padding-block: 60px;
  }

  .ans-about__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ans-about__copy p {
    font-size: 14px;
  }

  .ans-about__copy h2 {
    font-size: 28px;
  }

  .ans-about__copy .ans-about__lead {
    font-size: 18px;
  }

  .ans-about__visual,
  .ans-about__visual img {
    min-height: 240px;
  }

  .ans-cta h2 {
    font-size: 23px;
  }
}

@media (max-width: 420px) {
  .ans-hero__inner {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .ans-hero__copy .ans-eyebrow {
    margin-bottom: 10px;
  }

  .ans-hero h1 {
    margin-bottom: 14px;
    font-size: 34px;
  }

  .ans-hero__description {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.55;
  }

  .ans-hero__actions {
    gap: 8px;
  }

  .ans-hero__actions .ans-button {
    width: calc(50% - 4px);
    min-width: 0;
    min-height: 42px;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .ans-hero__bottom {
    min-height: 48px;
  }

  .ans-advantages__grid {
    grid-template-columns: 1fr;
  }

  .ans-advantage {
    min-height: 0;
  }

  .ans-advantage img {
    height: 160px;
  }
}
