/* ============================================================
   Дополнения для WordPress (main.css — копия styles.css из вёрстки, её не правим)
   ========================================================= */

/* Панель администратора не перекрывает фиксированную шапку */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* Форма: ловушка для ботов, статус отправки, ошибки */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { min-height: 1.4em; margin-top: 12px; font-size: 14px; line-height: 1.4; text-align: center; }
.form__status[data-type="ok"] { color: var(--c-main); font-weight: 600; }
.form__status[data-type="error"] { color: #d23c3c; }
.field.is-invalid .field__input { border-bottom-color: #d23c3c; }
.checkbox.is-invalid .checkbox__box { outline: 2px solid #d23c3c; outline-offset: 2px; }
.checkbox__text a { text-decoration: underline; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* Картинка вместо «выдачи» на странице услуги */
.svc-hero__media--img img { width: 100%; height: auto; border-radius: var(--radius-card); }

/* Архив проектов */
.projects--archive { padding-top: 115px; padding-bottom: 80px; }
.projects--archive > .breadcrumbs { align-self: flex-start; margin-bottom: 0; }

/* Пагинация */
.pager .nav-links { display: flex; gap: 8px; justify-content: center; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 12px; background: var(--c-bg-gray); font-weight: 600;
}
.pager .page-numbers.current, .pager .page-numbers:hover { background: var(--c-main); color: var(--c-white); }

/* Обычные страницы (политика, 404, записи) */
.page-content { max-width: calc(860px + 40px); margin: 0 auto; padding: 115px 20px 80px; }
.page-content > .section-title { margin-bottom: 40px; text-align: left; font-size: clamp(30px, 5vw, 48px); }
.page-content--404 { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-height: 60vh; }
.page-content--404 > .section-title { margin-bottom: 0; }
.entry { font-family: var(--ff-alt); font-size: 17px; line-height: 1.6; }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3 { font-family: var(--ff-main); line-height: 1.3; margin-top: 1.6em; }
.entry a { color: var(--c-main); text-decoration: underline; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry img { height: auto; border-radius: 12px; }
.entry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.entry-list a { font-weight: 700; font-size: 22px; color: var(--c-main); }
.entry-list p { margin-top: 6px; color: var(--c-gray); }

/* Правовые ссылки в подвале: политика и соглашение */
.footer__legal { display: flex; gap: 8px 32px; flex-wrap: wrap; justify-content: center; }
.footer__legal .footer__policy { position: static; }
@media (max-width: 1300px) {
  .footer__legal { flex-direction: column; align-items: flex-start; }
}


/* Кейсы: домен в заголовке без капитализации (2026-09-26) */
.case-hero__title { text-transform: none; overflow-wrap: anywhere; }

/* Архив проектов: заголовок слева, описание, фильтр по услугам (2026-09-27) */
.projects--archive { align-items: stretch; }
.projects__head { display: flex; flex-direction: column; gap: 16px; }
.projects--archive .projects__head .section-title { text-align: left; }
.projects__lead { max-width: 720px; font-size: 18px; line-height: 1.5; letter-spacing: .03em; color: var(--c-black); opacity: .75; }
.projects-filter { display: flex; flex-wrap: wrap; gap: 12px; }
.projects-filter__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 10px;
  background: var(--c-white); box-shadow: var(--shadow-card);
  font: 700 16px/1.4 var(--ff-main); color: var(--c-main);
  cursor: pointer; transition: background .2s, color .2s;
}
.projects-filter__btn span { font-weight: 600; font-size: 13px; opacity: .6; }
.projects-filter__btn:hover, .projects-filter__btn:focus-visible { background: var(--c-extra-light); }
.projects-filter__btn.is-active { background: var(--c-main); color: var(--c-white); }
.projects-filter__btn.is-active span { opacity: .8; }
.project.is-hidden { display: none; }
@media (max-width: 900px) {
  .projects__lead { font-size: 16px; }
  .projects-filter { gap: 8px; }
  .projects-filter__btn { padding: 8px 12px; font-size: 14px; }
}


/* =========================================================
   Готовые решения и статьи (2026-10-25)
   ========================================================= */

/* Общие: список с галочками */
.sol-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sol-list li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.5; letter-spacing: .02em; }
.sol-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-extra-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e30d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Первый экран решения: цифры справа */
.sol-hero__title { max-width: 860px; }
.sol-facts { display: flex; flex-direction: column; gap: 14px; align-self: start; margin-top: 3px; }
.sol-facts__item {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 26px;
  border-radius: var(--radius-card); background: var(--c-white); box-shadow: var(--shadow-card);
}
.sol-facts__item:first-child { border-radius: 22px 60px 22px 22px; background: radial-gradient(400px 200px at 85% 30%, #4b1d8a 0%, #2a0f4d 60%, #12071f 100%); color: #f3ecff; box-shadow: none; }
.sol-facts__item b { font-weight: 800; font-size: 34px; line-height: 1.1; color: var(--c-main); }
.sol-facts__item:first-child b { color: #c9a4ff; }
.sol-facts__item span { font-size: 14px; line-height: 1.4; letter-spacing: .02em; opacity: .8; }

/* Задачи */
.sol-pains { margin-top: 100px; padding: 0 var(--edge); }
.sol-pains__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.sol-pain {
  display: flex; flex-direction: column; gap: 14px; padding: 32px 28px;
  border-radius: var(--radius-card); background: var(--c-white); box-shadow: var(--shadow-card);
  border-top: 4px solid var(--c-extra-light);
}
.sol-pain:hover { border-top-color: var(--c-main); }
.sol-pain__title { font-weight: 700; font-size: 20px; line-height: 1.35; }
.sol-pain__text { font-size: 16px; line-height: 1.5; letter-spacing: .02em; opacity: .75; }

/* Для кого */
.sol-aud { margin-top: 100px; padding: 0 var(--edge); }
.sol-aud__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.sol-aud__card { display: flex; flex-direction: column; gap: 16px; padding: 40px; border-radius: var(--radius-card); background: #f5f2fb; }
.sol-aud__card--dark { background: radial-gradient(700px 400px at 85% 30%, #4b1d8a 0%, #2a0f4d 45%, #12071f 100%); color: #f3ecff; }
.sol-aud__card--dark .sol-list li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a4ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.sol-aud__label { font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-main); }
.sol-aud__card--dark .sol-aud__label { color: #c9a4ff; }
.sol-aud__title { font-weight: 800; font-size: 30px; line-height: 1.25; margin-bottom: 8px; }

/* Что входит */
.sol-inc {
  max-width: var(--container); margin: 100px max(20px, calc((100% - var(--container)) / 2)) 0;
  padding: 60px var(--svc-pad); border-radius: var(--radius-card); background: var(--c-bg-gray);
}
.sol-inc__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: inc; }
.sol-inc__item { position: relative; padding: 26px 28px 26px 84px; border-radius: 18px; background: var(--c-white); counter-increment: inc; }
.sol-inc__item::before {
  content: counter(inc, decimal-leading-zero); position: absolute; left: 26px; top: 24px;
  font-weight: 800; font-size: 26px; line-height: 1; color: var(--c-extra-light);
}
.sol-inc__title { font-weight: 700; font-size: 18px; line-height: 1.4; }
.sol-inc__text { margin-top: 6px; font-size: 15px; line-height: 1.5; letter-spacing: .02em; opacity: .7; }
.sol-inc__note { margin-top: 24px; font-size: 14px; line-height: 1.5; opacity: .6; }

/* Как можно работать / KPI */
.sol-kpi { margin-top: 100px; padding: 0 var(--edge); }
.sol-kpi__head { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sol-kpi__lead { max-width: 820px; font-size: 18px; line-height: 1.55; letter-spacing: .02em; text-align: center; opacity: .8; }
.sol-kpi__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.sol-kpi__card { display: flex; flex-direction: column; gap: 14px; padding: 36px 40px; border-radius: var(--radius-card); background: var(--c-white); box-shadow: var(--shadow-card); font-size: 16px; line-height: 1.55; letter-spacing: .02em; }
.sol-kpi__card--accent { box-shadow: 0 0 0 2px var(--c-main), var(--shadow-card); }
.sol-kpi__card--wide { grid-column: 1 / -1; background: #f5f2fb; box-shadow: none; }
.sol-kpi__card--wide .sol-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; }
.sol-kpi__label { font-weight: 700; font-size: 14px; line-height: 16px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-light); }
.sol-kpi__title { font-weight: 800; font-size: 26px; line-height: 1.3; }
.sol-kpi__note { margin-top: 8px; font-size: 15px; opacity: .7; }

/* Почему нам доверяют */
.sol-why { margin-top: 100px; padding-bottom: 72px; }
.sol-why .why__grid { grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.sol-why .why__text { opacity: .65; }

/* Статьи по теме / ещё статьи */
.sol-posts { margin-top: 100px; padding: 0 var(--edge); }
.sol-posts__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.sol-posts__head .section-title { text-align: left; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px;
  border-radius: var(--radius-card); background: var(--c-white); box-shadow: var(--shadow-card); transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 8px 28px rgba(142, 48, 216, .18); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--c-gray); }
.post-card__cat { display: inline-flex; padding: 4px 10px; border-radius: 8px; background: var(--c-extra-light); color: var(--c-dark); font-weight: 600; font-size: 13px; }
.post-card__title { font-weight: 700; font-size: 20px; line-height: 1.35; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:hover { color: var(--c-main); }
.post-card__text { font-size: 15px; line-height: 1.5; opacity: .7; }
.post-card__more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--c-main); }

/* Раздел решений и статей */
.sol-archive, .blog-list { display: flex; flex-direction: column; gap: 36px; padding: 115px var(--edge) 20px; }
.sol-archive > .breadcrumbs, .blog-list > .breadcrumbs { margin-bottom: 0; }
.sol-archive__head { display: flex; flex-direction: column; gap: 16px; }
.sol-archive__head .section-title { text-align: left; }
.sol-archive__lead { max-width: 760px; font-size: 18px; line-height: 1.5; letter-spacing: .03em; opacity: .75; }
.blog-list .post-grid { margin-top: 0; }
.blog-list .pager { margin-top: 20px; }
/* Фильтры-ссылки разделов «Решения» и «Статьи» (не трогает скрипт фильтра проектов) */
.tag-filter { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-filter__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px;
  background: var(--c-white); box-shadow: var(--shadow-card);
  font: 700 16px/1.4 var(--ff-main); color: var(--c-main); transition: background .2s, color .2s;
}
.tag-filter__btn span { font-weight: 600; font-size: 13px; opacity: .6; }
.tag-filter__btn:hover, .tag-filter__btn:focus-visible { background: var(--c-extra-light); }
.tag-filter__btn.is-active { background: var(--c-main); color: var(--c-white); }
.tag-filter__btn.is-active span { opacity: .8; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 28px;
  border-radius: var(--radius-card); background: var(--c-white); box-shadow: var(--shadow-card); transition: box-shadow .2s, transform .2s;
}
.sol-card:hover { box-shadow: 0 8px 28px rgba(142, 48, 216, .18); transform: translateY(-2px); }
.sol-card__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.sol-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sol-card__tags li { padding: 4px 10px; border-radius: 8px; background: var(--c-bg-gray); font-weight: 600; font-size: 12px; color: var(--c-gray); }
.sol-card__badge { padding: 4px 10px; border-radius: 8px; background: var(--c-main); color: var(--c-white); font-weight: 700; font-size: 12px; letter-spacing: .03em; }
.sol-card__title { font-weight: 700; font-size: 22px; line-height: 1.3; }
.sol-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sol-card__title a:hover { color: var(--c-main); }
.sol-card__text { font-size: 15px; line-height: 1.5; opacity: .75; }
.sol-card__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-top: auto; padding-top: 8px; }
.sol-card__price { font-weight: 700; font-size: 18px; color: var(--c-main); }
.sol-card__more { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--c-main); white-space: nowrap; }
.sol-archive + .cta { margin-top: 80px; }

/* Статья */
.article { padding: 115px var(--edge) 0; }
.article__head { max-width: 860px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--c-gray); }
.article__title { margin-top: 20px; font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; }
.article__lead { margin-top: 24px; font-size: 20px; line-height: 1.5; letter-spacing: .02em; opacity: .8; }
.article__layout { display: grid; grid-template-columns: 260px minmax(0, 860px); gap: 60px; margin-top: 56px; }
.article__layout:not(:has(.article__toc)) { grid-template-columns: minmax(0, 860px); }
.article__toc { position: sticky; top: 90px; align-self: start; padding: 24px; border-radius: 18px; background: #f5f2fb; }
.article__toc-title { font-weight: 700; font-size: 14px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c-main); }
.article__toc ol { margin: 14px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.article__toc a:hover { color: var(--c-main); }
.article__body h2 { font-size: 30px; scroll-margin-top: 90px; }
.article__body h3 { font-size: 22px; }
.article__body blockquote { margin: 1.4em 0; padding: 20px 24px; border-left: 4px solid var(--c-main); border-radius: 0 14px 14px 0; background: #f5f2fb; }
.article__body table, .article__body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.article__body .wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.article__body th, .article__body td { padding: 12px 14px; border-bottom: 1px solid #ece6f5; text-align: left; vertical-align: top; }
.article__body th { background: #f5f2fb; font-family: var(--ff-main); font-weight: 700; }
.article__body .note { padding: 18px 22px; border-radius: 14px; background: var(--c-bg-gray); font-size: 15px; }
.article__cta { margin-top: 48px; padding: 36px 40px; border-radius: 22px 60px 22px 22px; background: radial-gradient(700px 400px at 85% 30%, #4b1d8a 0%, #2a0f4d 45%, #12071f 100%); color: #f3ecff; font-family: var(--ff-main); }
.article__cta-label { font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: #c9a4ff; }
.article__cta-title { margin-top: 8px; font-weight: 800; font-size: 26px; line-height: 1.25; }
.article__cta-text { margin-top: 10px; font-family: var(--ff-alt); font-size: 16px; line-height: 1.5; color: #d9cdf0; }
.article__cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 24px; }
.entry .article__cta a { text-decoration: none; }
.entry .article__cta .btn { color: var(--c-white); }
.entry .article__cta .link { color: #c9a4ff; }
.article + .sol-posts { margin-top: 80px; }

/* Отступ перед подвалом */
main > .sol-posts:last-child, main > .cta:last-child, main > .blog-list:last-child { margin-bottom: 100px; }

@media (max-width: 1100px) {
  .sol-pains__grid, .sol-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-why .why__grid { grid-template-columns: repeat(2, 1fr); }
  .sol-aud__card, .sol-kpi__card { padding: 32px 28px; }
  .article__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  .sol-hero { padding-bottom: 36px; }
  .sol-facts { margin-top: 40px; display: grid; grid-template-columns: 1fr; }
  .sol-facts__item b { font-size: 28px; }
  .sol-pains, .sol-aud, .sol-kpi, .sol-posts { margin-top: 60px; }
  .sol-pains__grid, .sol-aud__grid, .sol-kpi__grid, .sol-grid, .post-grid, .sol-inc__list { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .sol-kpi__card--wide .sol-list { grid-template-columns: 1fr; }
  .sol-kpi__lead { font-size: 16px; }
  .sol-aud__title { font-size: 24px; }
  .sol-kpi__title { font-size: 22px; }
  .sol-inc { margin: 60px 12px 0; padding: 40px 16px; }
  .sol-inc__item { padding: 22px 20px 22px 64px; }
  .sol-inc__item::before { left: 18px; font-size: 22px; }
  .sol-why { margin-top: 60px; }
  .sol-why .why__grid { grid-template-columns: 1fr; }
  .sol-posts__head { flex-direction: column; align-items: flex-start; }
  .sol-archive, .blog-list { padding-top: 100px; gap: 28px; }
  .sol-archive__lead { font-size: 16px; }
  .tag-filter { gap: 8px; }
  .tag-filter__btn { padding: 8px 12px; font-size: 14px; }
  .sol-archive + .cta { margin-top: 48px; }
  .article { padding-top: 100px; }
  .article__lead { font-size: 17px; }
  .article__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 36px; }
  .article__toc { position: static; }
  .article__body h2 { font-size: 24px; }
  .article__body h3 { font-size: 19px; }
  .article__cta { padding: 28px 24px; border-radius: 22px 44px 22px 22px; }
  .article__cta-title { font-size: 22px; }
  main > .sol-posts:last-child, main > .cta:last-child, main > .blog-list:last-child { margin-bottom: 60px; }
}
