:root {
  --ft-home-hero-bg: url('../images/home-hero-bg.png');
  --ft-footer-bg: url('../images/footer-bg.png');

  --ft-content-max: 1240px;
  --ft-page-gutter: 100px;
  --ft-shell-width: min(var(--ft-content-max), calc(100vw - (var(--ft-page-gutter) * 2)));
  --ft-home-hero-shell: 1400px;

  --ft-header-height: 78px;
  --ft-radius-xl: 32px;
  --ft-radius-lg: 24px;
  --ft-bg-dark: linear-gradient(90deg, #1436d5 0%, #00104c 100%);
  --ft-text-dark: #1b1b1b;
  --ft-text-soft: #5d5d5d;
  --ft-border: #d5d5d5;
  --ft-primary: #0830CE;
}

/* Front page shell reset */
body.home [data-vertical-spacing*="top"],
body.front-page [data-vertical-spacing*="top"],
body.home [data-vertical-spacing*="bottom"],
body.front-page [data-vertical-spacing*="bottom"] {
  padding-top: 0;
  padding-bottom: 0;
}

.ft-shell {
  width: min(var(--ft-content-max), calc(100% - (var(--ft-page-gutter) * 2)));
  margin-inline: auto;
  box-sizing: border-box;
}

.ft-site-shell {
  min-height: 100vh;
}

.ft-site-header {
  position: relative;
  z-index: 40;
}

.home .ft-site-header--home .ft-site-header__inner,
.home .ft-home-hero__inner {
  width: var(--ft-shell-width);
}

.home .ft-site-header--home .ft-site-header__inner {
  padding-top: 10px;
  min-height: var(--ft-header-height);
  margin-inline: auto;
}


.ft-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--ft-header-height);
  padding-top: 10px;
}

.ft-site-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ft-site-header__brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ft-site-header__logo {
  display: block;
  width: auto;
  max-height: 40px;
}

.ft-site-header__brand-text {
  color: inherit;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.ft-site-header__nav {
  margin-left: auto;
}

.ft-site-header__menu {
  display: flex;
  align-items: center;
  gap: 42px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #7B7B7B;
}

.ft-site-header__menu a {
  color: #7B7B7B;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: color 0.2s ease;
}

.ft-site-header--home a {
  color: #D5D5D5;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: color 0.2s ease;
}

/* .ft-site-header--home .ft-site-header__menu a {
color: #E7E7E7;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  transition: color 0.2s ease;
} */

.ft-site-header--default .ft-site-header__menu a:hover,
.ft-site-header--default .ft-site-header__menu a:focus-visible {
  color: #1B1B1B;
}

.ft-site-header--home .ft-site-header__menu a:hover,
.ft-site-header--home .ft-site-header__menu a:focus-visible {
  color: #FFFFFF;
}

.ft-site-header--default {
  background: #ffffff;
  color: var(--ft-text-dark);
}

.ft-site-header--home {
  background: transparent;
  color: #ffffff;
}

.home .ft-site-header--home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  color: #ffffff;
}

.admin-bar.home .ft-site-header--home {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar.home .ft-site-header--home {
    top: 46px;
  }
}

.ft-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--ft-primary);
  color: #ffffff;
  cursor: pointer;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.ft-mobile-toggle__icon {
  display: block;
  width: 16px;
  height: 12px;
}

.ft-mobile-toggle__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ft-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.ft-mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 220ms ease;
}

.ft-mobile-menu__panel {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 320px;
  padding: 20px 24px 28px;
  background: #ffffff;
  border-radius: 0 0 28px 28px;
  transform: translateY(-24px);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
  box-sizing: border-box;
}

.ft-mobile-menu.is-open .ft-mobile-menu__overlay {
  opacity: 1;
  backdrop-filter: blur(16px);
}

.ft-mobile-menu.is-open .ft-mobile-menu__panel {
  transform: translateY(0);
  opacity: 1;
}

.ft-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.ft-mobile-menu__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ft-mobile-menu__logo {
  display: block;
  width: auto;
  max-height: 34px;
}

.ft-mobile-menu__brand-text {
  color: var(--ft-text-dark);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
}

.ft-mobile-menu__close {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--ft-primary);
}

.ft-mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.ft-mobile-menu__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.ft-mobile-menu__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ft-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-mobile-menu__list a {
  color: var(--ft-text-dark);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.ft-mobile-menu__contact {
  margin-top: 40px;
}

.ft-mobile-menu__contact-label {
  display: block;
  margin-bottom: 12px;
  color: var(--ft-text-dark);
  font-size: 16px;
  line-height: 1;
}

.ft-mobile-menu__contact-link {
  color: var(--ft-primary);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.ft-home-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background-color: #04175e;
  background-image: var(--ft-home-hero-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 0 0 40px 40px;
}

.ft-home-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(300px, 320px);
  justify-content: space-between;
  align-items: end;
  column-gap: 24px;
  min-height: 600px;
  padding-top: calc(var(--ft-header-height));
  padding-bottom: 0px;
  width: var(--ft-shell-width);
}

.ft-home-hero__content {
  position: relative;
  z-index: 2;
  align-self: stretch;
  padding-top: 60px;
/*   padding-bottom: 110px; */
}

.ft-home-hero__title {
  max-width: 540px;
  margin: 0;
  color: #ffffff;
  font-size: 51px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.ft-home-hero__subtitle {
  max-width: 425px;
  margin: 14px 0 0;
  color: #D5D5D5;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.ft-home-hero__actions {
  margin-top: 40px;
}

.ft-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #ffffff;
  color: #0830CE;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ft-home-hero__button:hover,
.ft-home-hero__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.ft-home-hero__person {
  position: absolute;
  left: 54%;
  bottom: 0;
  z-index: 1;
  width: clamp(445px, 20vw, 690px);
  max-width: 690px;
  transform: translateX(-50%);
  pointer-events: none;
}

.ft-home-hero__person-image {
  display: block;
  width: 100%;
  height: auto;
}

.ft-home-hero__aside {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  width: min(100%, 372px);
  margin: 0 0 40px;
  padding: 0;
}

.ft-home-hero-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: none;
  border: 1px solid #D5D5D5;
}

.ft-home-hero-card__thumb-link {
  display: block;
  text-decoration: none;
}

.ft-home-hero-card__thumb-wrap {
  padding: 6px 6px 0;
}

.ft-home-hero-card__thumb,
.ft-home-hero-card__thumb--placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 308 / 160;
  object-fit: cover;
  border-radius: 18px;
  background: #e8e8e8;
}

.ft-home-hero-card__content {
  padding: 16px;
}

.ft-home-hero-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
}

.ft-home-hero-card__title a {
  color: #1b1b1b;
  text-decoration: none;
}

.ft-home-hero-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: #7B7B7B;
  font-size: 14px;
  line-height: 1.4;
}

.ft-home-hero-card__author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
}

.ft-home-hero-card__author-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.ft-home-hero-card__dot {
  opacity: 0.8;
}

.ft-site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-top: 60px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: #ffffff;
}

.ft-site-footer__surface {
  position: relative;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  background-color: #04175e;
}

.ft-site-footer__surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ft-footer-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

.ft-site-footer__inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
}

.ft-site-footer__top {
  margin-bottom: 40px;
}

.ft-site-footer__title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.ft-site-footer__subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #D5D5D5;
}

.ft-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(152px, 403px) minmax(45px, 62px) minmax(134px, 205px) minmax(137px, 138px);
  justify-content: space-between;
  column-gap: 30px;
  row-gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #7B7B7B;
}

.ft-site-footer__grid a {
  transition: color 0.2s ease;
}

.ft-site-footer__grid a:hover,
.ft-site-footer__grid a:focus-visible {
  color: #FFFFFF;
}

.ft-site-footer__heading {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #A4A4A4;
  font-weight: 400;
}

.ft-site-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ft-site-footer__menu li + li {
  margin-top: 12px;
}

.ft-site-footer__menu a,
.ft-site-footer__email {
  color: #A4A4A4;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.ft-site-footer__menu--topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(117px, 0.8fr));
  column-gap: 44px;
  row-gap: 12px;
}

.ft-site-footer__menu--topics li {
  margin: 0;
  break-inside: auto;
}

.ft-site-footer__menu--topics li + li {
  margin-top: 0;
}

.ft-site-footer__info {
  padding: 20px 0;
  border-bottom: 1px solid #7B7B7B;
}

.ft-site-footer__info p {
  margin: 0;
  color: #A4A4A4;
  font-size: 12px;
  line-height: 1.4;
}

.ft-site-footer__info p + p {
  margin-top: 18px;
}

.ft-site-footer__bottom {
  padding-top: 20px;
}

.ft-site-footer__bottom p {
  margin: 0;
  color: #A4A4A4;
  font-size: 10px;
  line-height: 1.4;
}

html.ft-mobile-menu-is-open,
body.ft-mobile-menu-is-open {
  overflow: hidden;
}

@media (max-width: 1439px) {
  :root {
    --ft-page-gutter: 64px;
  }

  .ft-home-hero__inner {
    grid-template-columns: minmax(0, 500px) minmax(300px, 320px);
  }

  .ft-home-hero__content {
    padding-top: 60px;
/*     padding-bottom: 102px; */
  }

  .ft-home-hero__title {
    max-width: 500px;
    font-size: 51px;
  }

  .ft-home-hero__person {
    left: 55%;
    width: clamp(435px, 30vw, 600px);
  }

  .ft-home-hero__aside {
    width: min(100%, 350px);
    margin-bottom: 40px;
  }

  .ft-home-hero-card__title {
    font-size: 20px;
  }
}

@media (max-width: 1279px) {
  .ft-home-hero__inner {
    grid-template-columns: minmax(0, 420px) minmax(280px, 320px);
    min-height: 650px;
    padding-top: calc(var(--ft-header-height));
    padding-bottom: 0px;
  }

  .ft-home-hero__content {
    padding-top: 60px;
/*     padding-bottom: 88px; */
  }

  .ft-home-hero__title {
    max-width: 420px;
    font-size: 48px;
  }

  .ft-home-hero__subtitle {
    max-width: 340px;
    margin-top: 24px;
    font-size: 17px;
  }

  .ft-home-hero__actions {
    margin-top: 34px;
  }

  .ft-home-hero__person {
    left: 48%;
    width: clamp(475px, 30vw, 540px);
  }

  .ft-home-hero__aside {
    width: min(100%, 320px);
    margin-bottom: 40px;
  }

  .ft-home-hero-card {
    border-radius: 28px;
  }

  .ft-home-hero-card__thumb-wrap {
    padding: 8px 8px 0;
  }

  .ft-home-hero-card__thumb,
  .ft-home-hero-card__thumb--placeholder {
    aspect-ratio: 308 / 160;
    border-radius: 18px;
  }

  .ft-home-hero-card__content {
    padding: 16px 18px 18px;
  }

}


@media (min-width: 768px) and (max-width: 1024px) {

  :root {
    --ft-page-gutter: 48px;
  }

  .ft-site-header__menu {
    gap: 24px;
  }

  .ft-site-header__menu a {
    font-size: 16px;
  }

  .ft-home-hero__inner {
    grid-template-columns: minmax(0, 350px) minmax(250px, 290px);
    min-height: 590px;
    padding-top: calc(var(--ft-header-height));
    padding-bottom: 0px;
  }

  .ft-home-hero__content {
    padding-top: 60px;
/*     padding-bottom: 76px; */
  }

  .ft-home-hero__title {
    max-width: 360px;
    font-size: 40px;
    letter-spacing: -0.08em;
  }

  .ft-home-hero__subtitle {
    max-width: 283px;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.42;
  }

  .ft-home-hero__actions {
    margin-top: 28px;
  }

  .ft-home-hero__button {
    min-height: 56px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
  }

  .ft-home-hero__person {
    left: 47%;
    width: clamp(410px, 42vw, 592px);
  }

  .ft-home-hero__aside {
    width: min(100%, 290px);
    margin-bottom: 40px;
  }

  .ft-home-hero-card__title {
    font-size: 16px;
  }

  .ft-home-hero-card__meta {
    margin-top: 12px;
    font-size: 14px;
  }

  .ft-site-footer {
    margin-top: 80px;
  }

  .ft-site-footer__surface {
    border-radius: 24px 24px 0 0;
  }

  .ft-site-footer__inner {
    padding: 48px 0 24px;
  }

  .ft-site-footer__top {
    margin-bottom: 40px;
  }

  .ft-site-footer__title {
    font-size: 28px;
  }

  .ft-site-footer__subtitle {
    font-size: 18px;
  }

  .ft-site-footer__grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(140px, 0.78fr) minmax(194px, 1fr);
  grid-template-areas:
  "topics company legal"
  "topics contact legal";
   /*  grid-template-areas:
   "company contact legal"; */
    column-gap: 32px;
    row-gap: 28px;
    align-items: start;
    padding-bottom: 32px;
  }

  .ft-site-footer__column--topics {
    grid-area: topics;
  }

  .ft-site-footer__column--company {
    grid-area: company;
  }

  .ft-site-footer__column--contact {
    grid-area: contact;
  }

  .ft-site-footer__column--legal {
    grid-area: legal;
  }

  .ft-site-footer__menu--topics {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    column-gap: 28px;
    row-gap: 12px;
  }

  .ft-site-footer__menu--topics li,
  .ft-site-footer__menu--topics li + li {
    margin: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --ft-page-gutter: 16px;
  }

  .ft-site-footer__info {
    padding: 12px 0;
  }

  .ft-home-hero {
    overflow: visible;
    margin-bottom: 250px;
    border-radius: 0 0 24px 24px;
    background-position: center center;
    background-size: cover;
  }

  .ft-home-hero__inner {
    grid-template-columns: 1fr;
    row-gap: 0;
    min-height: auto;
    padding-top: calc(var(--ft-header-height));
    padding-bottom: 64px;
  }

  .ft-home-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 0;
  }

  .ft-home-hero__title {
    max-width: none;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-top: 20px;
  }

  .ft-home-hero__subtitle {
    max-width: none;
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.4;
  }

  .ft-home-hero__actions {
    margin-top: 14px;
    margin-bottom: 275px;
  }

  .ft-home-hero__button {
    min-height: 50px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 16px;
  }

  .ft-home-hero__person {
    position: absolute;
    right: 0px;
    bottom: 8px;
    left: auto;
    z-index: 1;
    width: min(80vw, 339px);
    max-width: none;
    margin-top: 0;
    transform: none;
    pointer-events: none;
  }

  .ft-home-hero__aside {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -290px;
    z-index: 3;
    width: auto;
    margin-top: 0;
    padding-bottom: 0;
  }

  .ft-home-hero-card {
    border-radius: 20px;
  }

  .ft-home-hero-card__thumb-wrap {
    padding: 6px 6px 0;
  }

  .ft-home-hero-card__thumb,
  .ft-home-hero-card__thumb--placeholder {
    aspect-ratio: 308 / 160;
    border-radius: 14px;
  }

  .ft-home-hero-card__content {
    padding: 16px;
  }

  .ft-home-hero-card__title {
    font-size: 18px;
  }

  .ft-home-hero-card__meta {
    margin-top: 12px;
    font-size: 14px;
  }

  .ft-site-header--default {
    background: #ffffff;
    color: var(--ft-text-dark);
  }

  .ft-site-header--home {
    background: transparent;
    color: #ffffff;
  }

  .ft-site-header__inner {
    min-height: 76px;
  }

  .ft-site-header__nav {
    display: none;
  }

  .ft-mobile-toggle {
    display: inline-flex;
    flex: 0 0 40px;
  }

  .ft-site-header__logo,
  .ft-mobile-menu__logo {
    max-height: 40px;
  }

  .ft-site-footer {
    margin-top: 60px;
  }

  .ft-site-footer__surface {
    border-radius: 24px 24px 0 0;
  }

  .ft-site-footer__inner {
    padding: 40px 0 24px;
  }

  .ft-site-footer__top {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #7B7B7B;
  }

  .ft-site-footer__title {
    margin-bottom: 12px;
    font-size: 24px;
  }

  .ft-site-footer__subtitle {
    font-size: 16px;
  }

  .ft-site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "topics topics"
      "company contact"
      "legal legal";
    column-gap: 0px;
    row-gap: 30px;
    padding-bottom: 28px;
    align-items: start;
  }
    
  .ft-site-footer__menu li + li {
      margin-top: 4px;
  }

  .ft-site-footer__column--topics {
    grid-area: topics;
  }

  .ft-site-footer__column--company {
    grid-area: company;
  }

  .ft-site-footer__column--contact {
    grid-area: contact;
  }

  .ft-site-footer__column--legal {
    grid-area: legal;
  }

  .ft-site-footer__heading {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.2;
  }

  .ft-site-footer__menu a,
  .ft-site-footer__email {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    color: #FFFFFF;
  }

  .ft-site-footer__info p {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 400;
  }

  .ft-site-footer__bottom p {
    color: #A4A4A4;
    font-size: 10px;
    line-height: 1.2;
  }

  .ft-site-footer__menu--topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0px;
    row-gap: 4px;
  }

  .ft-site-footer__menu--topics li,
  .ft-site-footer__menu--topics li + li {
    margin-top: 0;
    margin-bottom: 0;
  }

  .ft-site-footer__column--legal .ft-site-footer__menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0px;
    row-gap: 4px;
  }

  .ft-site-footer__column--legal .ft-site-footer__menu li,
  .ft-site-footer__column--legal .ft-site-footer__menu li + li {
    margin-top: 0;
    margin-bottom: 0;
  }

  .ft-mobile-menu__panel {
    padding: 0 0 20px;
    border-radius: 0 0 24px 24px;
  }

  .ft-mobile-menu__header,
  .ft-mobile-menu__nav,
  .ft-mobile-menu__contact {
    width: calc(100% - 32px);
    margin-inline: auto;
    box-sizing: border-box;
  }

  .ft-mobile-menu__header {
    min-height: var(--ft-header-height);
    padding-top: 10px;
    margin-bottom: 40px;
  }

  .ft-mobile-menu__contact {
    margin-top: 30px;
  }
}

.ft-mobile-toggle,

.ft-mobile-menu__close,
.ft-mobile-menu__overlay {
  cursor: pointer;
}

.ft-mobile-toggle:focus-visible,
.ft-mobile-menu__close:focus-visible,
.ft-site-header__menu a:focus-visible,
.ft-mobile-menu__list a:focus-visible,
.ft-site-footer__menu a:focus-visible,
.ft-site-footer__email:focus-visible {
  outline: 2px solid #1939e6;
  outline-offset: 3px;
}

.ft-site-header--home .ft-mobile-toggle:focus-visible {
  outline-color: #ffffff;
}

/* 404 page */
.error404,
.error404 body {
  background: #f3f3f3;
}

.error404 .ft-site-shell {
  position: relative;
  min-height: 100vh;
  background: #f3f3f3;
}

.error404 .ft-site-header--home {
  position: absolute;
  left: 0;
  width: 100%;
  background: transparent;
  color: #ffffff;
}

.error404 .ft-site-footer {
  margin-top: 60px;
}

.ft-404-page {
  padding-bottom: 0;
}

.ft-404-hero__surface {
  position: relative;
  overflow: hidden;
  min-height: 519px;
  border-radius: 0 0 40px 40px;
  background-color: #04175e;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ft-404-hero__surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ft-footer-bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
}

.ft-404-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 519px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 0 60px;
}

.ft-404-hero__code {
  margin: 0;
  color: #ffffff;
  font-size: clamp(80px, 16vw, 160px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.8px;
}

.ft-404-hero__description {
  max-width: 640px;
  margin: 14px 0 0;
  color: #D5D5D5;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
}

.ft-404-hero__button {
  display: inline-flex;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 16px 24px;
  border-radius: 12px;
  background: #ffffff;
  color: #0830CE;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ft-404-hero__button:hover,
.ft-404-hero__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.ft-site-footer--with-topics .ft-site-footer__column--topics {
  grid-area: topics;
}

.ft-site-footer--with-topics .ft-site-footer__column--contact {
  grid-area: contact;
}

.ft-site-footer--with-topics .ft-site-footer__column--company {
  grid-area: company;
}

.ft-site-footer--with-topics .ft-site-footer__column--legal {
  grid-area: legal;
}

@media (min-width: 1025px) {
  .ft-site-footer--with-topics .ft-site-footer__grid {
    grid-template-columns: minmax(240px, 1.75fr) minmax(150px, 0.9fr) minmax(108px, 0.75fr) minmax(170px, 1fr);
    grid-template-areas: 'topics contact company legal';
  }

  .ft-site-footer--with-topics .ft-site-footer__menu--topics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    column-gap: 32px;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    align-content: start;
  }
}

@media (max-width: 767px) {
  .ft-site-footer--with-topics .ft-site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'topics topics'
      'company contact'
      'legal legal';
  }
}

@media (max-width: 767px) {

  .error404 .ft-site-header__inner {
    min-height: 76px;
    padding-top: 10px;
  }

  .error404 .ft-404-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .error404 .ft-404-hero > .ft-shell {
    width: 100%;
    max-width: none;
  }

  .ft-404-hero__surface {
    min-height: 268px;
    border-radius: 0 0 40px 40px;
  }

  .ft-404-hero__content {
    min-height: 362px;
    padding: 0 20px 40px;
  }

  .ft-404-hero__code {
    font-size: 80px;
  }

  .ft-404-hero__description {
    margin-top: 14px;
    font-size: 18px;
  }

  .ft-404-hero__button {
    min-height: 50px;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 16px;
  }

  .error404 .ft-site-footer {
    margin-top: 30px;
  }

  .error404 .ft-site-footer--with-topics .ft-site-footer__column--topics {
    display: none;
  }

  .error404 .ft-site-footer--with-topics .ft-site-footer__grid {
    grid-template-areas:
      'company contact'
      'legal legal';
  }
}
