:root {
  --text: #232323;
  --white: #ffffff;
  --primary: #9345d8;
  --primary-hover: #7e39b7;
  --grey-light: #f4f4f4;
  --grey: #7d7d7d;
}
* {
  box-sizing: border-box;
}
body {
  font-family: "Onest", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--white);
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--grey-light);
}

[class*="__container"] {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.btn {
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px;
}
.btn--primary {
  background-color: var(--primary);
  color: var(--white);
}
.btn--primary:hover {
  background-color: var(--primary-hover);
}
.btn--outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--primary);
}
.btn--outline:hover {
  background-color: var(--primary);
  color: var(--white);
}
.btn--link {
  width: fit-content;
  font-weight: 400;
  margin: 24px auto 24px auto;
  padding-inline: 32px;
  padding-block: 15px;
  font-size: 18px;
}
.btn--black {
  background-color: var(--text);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}
.btn--black:hover {
  background-color: var(--primary);
}
.btn--grey {
  background-color: var(--grey-light);
  color: var(--text);
  border: 1px solid var(--grey-light);
}
.btn--grey:hover {
  background-color: var(--primary);
  color: var(--white);
}
.btn--big {
  font-size: 18px;
  padding: 16px 20px;
}
.btn--small {
  padding: 12.2px 10px;
}
.section {
  margin: 48px 0;
}
.title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .btn--link,
  .btn--black {
    width: 100%;
    font-size: 14px;
  }
  .section {
    margin: 24px 0;
  }
}

.article-content {
  width: 100%;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  color: #232323;
  margin: 0 0 24px 0;
  line-height: 1.275;
}

.article-content h1 {
  font-size: 40px;
}

.article-content h2 {
  font-size: 30px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content h4 {
  font-size: 20px;
}

.article-content h5 {
  font-size: 18px;
}

.article-content h6 {
  font-size: 16px;
}

.article-content p {
  margin: 0 0 16px 0;
}
.article-content p:has(+ .wp-block-table) {
  margin-bottom: 0;
}
.article-content p:last-child {
  margin-bottom: 0;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 8px;
  position: relative;
}

.article-content li::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--primary);
}

.article-content li:last-child {
  margin-bottom: 0;
}

.article-content a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.article-content a:hover {
  opacity: 0.8;
}

.article-content strong,
.article-content b {
  font-weight: 700;
}

.article-content em,
.article-content i {
  font-style: italic;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 0 20px;
  background: transparent;
  border-left: 1px solid var(--primary);
  border-radius: 0;
}

.article-content blockquote p {
  margin: 0;
  font-style: normal;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.article-content th,
.article-content td {
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid var(--grey-light);
  text-align: left;
  font-size: 14px;
  line-height: 1.275;
  font-weight: 700;
  color: var(--text);
}

.article-content th {
  font-weight: 400;
  color: var(--grey);
  width: auto;
  padding-right: 8px;
}

.article-content td:first-child {
  font-weight: 400;
  color: var(--grey);
  padding-right: 8px;
}

.article-content tr:first-child th,
.article-content tr:first-child td {
  padding-top: 0;
}

.article-content tr:last-child th,
.article-content tr:last-child td {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  .article-content h1 {
    font-size: 32px;
  }

  .article-content h2 {
    font-size: 26px;
  }

  .article-content h3 {
    font-size: 22px;
  }

  .article-content h4 {
    font-size: 18px;
  }

  .article-content h5 {
    font-size: 16px;
  }

  .article-content h6 {
    font-size: 14px;
  }

  .article-content p,
  .article-content li {
    font-size: 15px;
  }
  .title {
    font-size: 25px;
    margin-bottom: 16px;
  }
  .article-content blockquote {
    padding: 16px;
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .article-content h1,
  .article-content h2,
  .article-content h3,
  .article-content h4,
  .article-content h5,
  .article-content h6 {
    margin-bottom: 12px;
  }
  body {
    font-size: 14px;
  }
  .article-content h1 {
    font-size: 24px;
  }

  .article-content h2 {
    font-size: 20px;
  }

  .article-content h3 {
    font-size: 16px;
  }

  .article-content h4 {
    font-size: 15px;
  }

  .article-content h5 {
    font-size: 14px;
  }

  .article-content h6 {
    font-size: 13px;
  }

  .article-content p,
  .article-content li {
    font-size: 14px;
  }

  .article-content blockquote {
    padding: 12px;
    margin: 16px 0;
  }

  .article-content ul,
  .article-content ol {
    padding-left: 16px;
  }
  .title {
    font-size: 20px;
    margin-bottom: 12px;
  }
}
/**/
textarea {
  border-radius: 10px;
  border: 1px solid var(--grey-light);
  padding: 16px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--grey-light);
  transition: border-color 0.3s ease;
}
textarea:focus {
  border-color: var(--primary);
}
input {
  border-radius: 10px;
  border: 1px solid var(--grey-light);
  padding: 12px 20px;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  line-height: 1.525;
  color: var(--text);
  background-color: var(--grey-light);
  transition: border-color 0.3s ease;
}
input:focus {
  border-color: var(--primary);
}
.required {
  color: #ff0000;
}
.section--white {
  margin-inline: 15px;
}
.section--white > [class*="__container"] {
  padding: 40px;
  background: var(--white);
  border-radius: 14px;
  max-width: 1320px;
}
@media (max-width: 768px) {
  .section--white > [class*="__container"] {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .section--white > [class*="__container"] {
    padding: 14px;
  }
}

/* Пагинация */
.pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-numbers li {
  margin: 0;
}

.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.275;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-numbers .current {
  background-color: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.page-numbers .prev,
.page-numbers .next {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-numbers .prev svg,
.page-numbers .next svg {
  width: 24px;
  height: 24px;
}
.page-numbers {
  margin-top: 24px;
}
.page-numbers .dots {
  background-color: transparent;
  border: none;
  color: var(--grey);
}
@media (max-width: 992px) {
  .page-numbers a,
  .page-numbers span {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}
@media (max-width: 350px) {
  .page-numbers a,
  .page-numbers span {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
/* Контейнер формы */
.wpcf7-form {
  max-width: 100%;
}

/* Отступы между блоками */
.wpcf7-form p {
  margin-bottom: 24px;
}

/* Стили лейблов */
.wpcf7-form label {
  font-family: "Onest", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  width: 100%;
  display: block;
}

/* Обертка полей (для корректного позиционирования ошибок) */
.wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
  position: relative;
}

/* Поля ввода */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--grey-light);
  background-color: var(--white);
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  transition: all 0.3s ease;
  font-family: "Onest", sans-serif;
  box-sizing: border-box;
  outline: none;
}

.wpcf7-form .wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
  padding: 16px 20px;
}

/* Состояния фокуса */
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-textarea:focus,
.wpcf7-form .wpcf7-select:focus {
  border-color: var(--primary);
  background-color: var(--white);
}

/* Кнопка отправки */
.wpcf7-form .wpcf7-submit {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  min-width: 140px;
}

.wpcf7-form .wpcf7-submit:hover {
  background-color: var(--primary-hover);
}

/* Спиннер загрузки */
.wpcf7-spinner {
  margin-left: 10px;
  margin-top: 0;
  vertical-align: middle;
}

/* Сообщения об ошибках валидации (под полем) */
.wpcf7-not-valid-tip {
  color: #f44336;
  font-size: 13px;
  margin-top: 6px;
  display: block;
  font-weight: 400;
}

/* Поле с ошибкой */
.wpcf7-form .wpcf7-not-valid {
  border-color: #f44336;
  background-color: #fff5f5;
}

/* Общее сообщение о статусе отправки */
.wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid transparent;
}

/* Успешная отправка */
.wpcf7 form.sent .wpcf7-response-output {
  background-color: #e8f5e8;
  border-color: #4caf50;
  color: #2e7d32;
}

/* Ошибка отправки */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  background-color: #ffebee;
  border-color: #f44336;
  color: #c62828;
}
.broker-header__title {
  font-size: 40px;
  line-height: 1;
}
.broker-tabs__list {
  display: flex;
  margin-top: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
body .broker-tabs__link:hover,
body .broker-tabs__link--active {
  color: var(--white);
  background-color: var(--primary);
}

/* Кастомный чекбокс для согласия */
.wpcf7-acceptance .wpcf7-list-item,
.landing-bonus__checkbox-wrapper {
  margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item label,
.landing-bonus__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
  position: relative;
}

.wpcf7-acceptance .agreement-checkbox,
.landing-bonus__checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.wpcf7-acceptance .wpcf7-list-item-label,
.landing-bonus__checkbox-label {
  flex: 1;
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  position: relative;
  padding-left: 32px;
}

.wpcf7-acceptance .wpcf7-list-item-label::before,
.landing-bonus__checkbox-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--grey-light);
  border-radius: 4px;
  background-color: var(--white);
  transition: all 0.3s ease;
  display: block;
}

.wpcf7-acceptance .agreement-checkbox:checked ~ .wpcf7-list-item-label::before,
.landing-bonus__checkbox-label input[type="checkbox"]:checked ~ .landing-bonus__checkbox-text::before {
  background-color: var(--primary);
  border-color: var(--primary);
}

.wpcf7-acceptance .wpcf7-list-item-label::after,
.landing-bonus__checkbox-text::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
  transition: all 0.3s ease;
}

.wpcf7-acceptance .agreement-checkbox:checked ~ .wpcf7-list-item-label::after,
.landing-bonus__checkbox-label input[type="checkbox"]:checked ~ .landing-bonus__checkbox-text::after {
  display: block;
}

.wpcf7-acceptance .wpcf7-list-item-label a,
.landing-bonus__checkbox-text a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.wpcf7-acceptance .wpcf7-list-item-label a:hover,
.landing-bonus__checkbox-text a:hover {
  opacity: 0.8;
}

.wpcf7-acceptance .agreement-checkbox:focus ~ .wpcf7-list-item-label::before,
.landing-bonus__checkbox-label input[type="checkbox"]:focus ~ .landing-bonus__checkbox-text::before {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.wpcf7-acceptance .agreement-checkbox:hover ~ .wpcf7-list-item-label::before,
.landing-bonus__checkbox-label input[type="checkbox"]:hover ~ .landing-bonus__checkbox-text::before {
  border-color: var(--primary);
}

.wpcf7-acceptance .agreement-checkbox[aria-invalid="true"] ~ .wpcf7-list-item-label::before {
  border-color: #f44336;
}

@media (max-width: 480px) {
  .wpcf7-acceptance .wpcf7-list-item-label,
  .landing-bonus__checkbox-text {
    font-size: 14px;
    padding-left: 30px;
  }

  .wpcf7-acceptance .wpcf7-list-item-label::before,
  .landing-bonus__checkbox-text::before {
    width: 18px;
    height: 18px;
    top: 1px;
  }

  .wpcf7-acceptance .wpcf7-list-item-label::after,
  .landing-bonus__checkbox-text::after {
    left: 6px;
    top: 4px;
    width: 5px;
    height: 9px;
  }
}