/* Шрифты */

/* manrope-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/manrope-v23-cyrillic_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-600 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/manrope-v23-cyrillic_latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-700 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/manrope-v23-cyrillic_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-italic - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/inter-v20-cyrillic_latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-cyrillic_latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Контейнер */

.header .main-container,
.single-post .main-container,
.page-template-page-sert .main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: block !important;
}

/* Хлебные крошки */

.breadcrumbs span {
    color: #2869F0;
}
.breadcrumbs > span:last-child,
.breadcrumbs .main-container > span:last-child {
    color: #586982;
}

/* Секции */

section.hero,
section.services-home,
section.step,
section.consult,
section.work,
section.testimonials,
section.ask,
section.news,
section.contact,
section.about {
  padding: 45px 0;
  box-sizing: border-box;
}

main > section:first-of-type {
  padding-top: 1px;
}

main > section:last-of-type:not(:only-of-type) {
  padding-bottom: 90px;
}

@media screen and (max-width: 1250px) {
    section.hero,
    section.services-home,
    section.step,
    section.consult,
    section.work,
    section.testimonials,
    section.ask,
    section.news,
    section.contact,
    section.about {
      padding: 24px 0;
      box-sizing: border-box;
    }
    
    main > section:last-of-type {
      padding-bottom: 48px;
    }
}

/* Заголовки */

.section-title {
    font-size: 28px!important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
}

h1,
.content-sert h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

h2,
.page-sert .content-sert .info-text-item h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.form-title,
.sidebar-form .form.form-conditions > p.form-title,
.article-intro__toc-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
}

/* Контент */

/* Базовый шрифт для всего сайта */
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Элементы форм, списки и текст статей */
p,
ul,
ol,
li,
input,
textarea,
select,
button,
.form-accept span,
.info-text-item,
.article-intro__toc-list li a {
  font-family: 'Inter', sans-serif;
}

/* Формы */

.form-submit input:hover {
    -webkit-box-shadow: none!important;
    box-shadow: none!important;
}

.checkbox-custom {
    background-color: unset;
}

/* === ГЛОБАЛЬНЫЙ ФИКС ЗВЕЗДОЧЕК ПРИ ВАЛИДАЦИИ CF7 === */

/* Для всех однострочных полей (инпутов) */
.wpcf7-form-control-wrap::after {
    /* Привязываем звездочку к центру самого поля (высота поля ~52px, половина = 26px) */
    top: 26px !important; 
    transform: translateY(-50%) !important;
}

/* Исключение для многострочных полей (Ваш вопрос / textarea) */
.wpcf7-form-control-wrap:has(textarea)::after {
    /* Звездочка остается сверху, выровнена по тексту плейсхолдера */
    top: 14px !important;
    transform: none !important;
}

.page-sert .content-sert .content-sert-layout .info-form-item div.wpcf7-acceptance-missing, .page-sert .content-sert .content-sert-layout .info-form-item div.wpcf7-response-output, .page-sert .content-sert .content-sert-layout .info-form-item div.wpcf7-validation-errors {
    color: #010101!important;
}

.form-free-consult-simple-sert span[class*="tel"] span.wpcf7-not-valid-tip {
    display: none;
}

/* Выравниваем заголовок формы по центру, если перед формой есть блок автора */
.sidebar-form:has(.article_author) .form.form-conditions > p.form-title {
    text-align: center !important;
}
