/*
 * antifraud.css — блок «Антифрод» (RU и KZ страницы).
 *
 * Сетка и размеры взяты у соседних блоков («Форма обратной связи», «Линия доверия»,
 * «Собственные технологии»), чтобы блок вёл себя так же на всех экранах:
 *   ширина карточки  1160 / 940 / 620 / 460 / 320 px   (>=1200 / 960-1199 / 640-959 / 480-639 / <480)
 *   внутренний отступ 40 / 40 / 30 / 30 / 20 px
 *   радиус 30 px, цвета #f4f4f4 / #fff / #17b7df, шрифт Geologica
 *   заголовок 50 / 42 / 42 / 32 / 20 px, основной текст 16 / 14 / 14 / 14 / 12 px,
 *   тексты карточек 14/22 и 12/19 px, подпись над заголовком 14 (12) px.
 */
.af-rec {
  background: #fff;
}

.af {
  box-sizing: border-box;
  padding: 20px 0;
  font-family: var(--w-text-font, "Geologica", Arial, sans-serif);
  color: #000;
  -webkit-font-smoothing: antialiased;
}

.af *,
.af *::before,
.af *::after {
  box-sizing: border-box;
}

.af__card {
  width: 1160px;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px;
  background: #f4f4f4;
  border-radius: 30px;
  display: flex;
  align-items: stretch;
  gap: 40px;
}

.af__left,
.af__right {
  flex: 1 1 0;
  min-width: 0;
}

.af__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.af__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 400;
  color: #333;
}

.af__dot {
  display: block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: #17b7df;
}

.af__title {
  margin: 0 0 24px;
  font-size: 50px;
  line-height: 1.05;
  font-weight: 400;
  color: #000;
}

.af__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 300;
  color: #000;
}

.af__action {
  margin-top: auto;
  padding-top: 36px;
}

.af__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 10px 0 20px;
  border-radius: 30px;
  background: #17b7df;
  color: #fff;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.af__btn:hover {
  background: #0fa3c8;
  color: #fff;
}

.af__btn-ico {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: #fff;
  -webkit-mask: url("/assets/img/circlearw_fill_upright_bold.svg") center / contain no-repeat;
  mask: url("/assets/img/circlearw_fill_upright_bold.svg") center / contain no-repeat;
}

.af__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.af__item {
  padding: 30px;
  background: #fff;
  border-radius: 20px;
}

.af__item_warn {
  background: #dff4fa;
  box-shadow: inset 0 0 0 1px rgba(23, 183, 223, 0.4);
}

.af__item-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}

.af__ico {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(23, 183, 223, 0.12);
  color: #0e9cc0;
}

.af__ico svg {
  display: block;
  width: 22px;
  height: 22px;
}

.af__item-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 500;
  color: #000;
}

.af__item-text {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: #333;
}

.af__item-text a {
  color: #0e9cc0;
  text-decoration: none;
}

.af__item-text a:hover {
  text-decoration: underline;
}

/* 960-1199: canvas 960 */
@media screen and (max-width: 1199px) {
  .af__card {
    width: 940px;
    gap: 20px;
  }
  .af__title {
    font-size: 42px;
  }
  .af__lead {
    font-size: 14px;
  }
  .af__item-text {
    font-size: 12px;
    line-height: 19px;
  }
}

/* 640-959: canvas 640, one column */
@media screen and (max-width: 959px) {
  .af__card {
    width: 620px;
    padding: 30px;
    flex-direction: column;
    gap: 30px;
  }
  .af__eyebrow {
    margin-bottom: 24px;
  }
  .af__title {
    margin-bottom: 20px;
  }
  .af__action {
    padding-top: 28px;
  }
  .af__item {
    padding: 26px;
  }
  .af__item-title {
    font-size: 18px;
  }
}

/* 480-639: canvas 480 */
@media screen and (max-width: 639px) {
  .af__card {
    width: 460px;
  }
  .af__title {
    font-size: 32px;
  }
}

/* below 480: canvas 320 */
@media screen and (max-width: 479px) {
  .af__card {
    width: 320px;
    padding: 20px;
    gap: 24px;
  }
  .af__eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.15;
  }
  .af__title {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.1;
  }
  .af__lead {
    font-size: 12px;
  }
  .af__action {
    padding-top: 24px;
    width: 100%;
  }
  .af__btn {
    width: 100%;
    justify-content: space-between;
  }
  .af__right {
    gap: 10px;
  }
  .af__item {
    padding: 20px;
    border-radius: 16px;
  }
  .af__item-head {
    gap: 12px;
    margin-bottom: 12px;
  }
  .af__ico {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .af__item-title {
    font-size: 16px;
  }
}

/* появление при прокрутке на экранах уже 980 px (см. antifraud.js);
   на широких экранах это делает движок сайта через .w-animate */
@media screen and (max-width: 979px) {
  .af .af-pre {
    opacity: 0;
    transform: translateY(30px);
  }
  .af .af-pre.af-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .af .af-pre {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
