/* ==========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ (услуги, статьи, о компании, контакты)
   ========================================================== */
.body-innerwrapper { overflow-x: clip; }
body:not(.phm-full-width-article) #sp-main-body { padding: 0 0 70px; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] {
  font-size: 17px;
  line-height: 1.75;
  color: #3a4252;
}
/* узкая колонка для текста, блоки-модули — на всю ширину */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > :not(h1):not(.mod-custom) {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
/* шапка страницы из первого заголовка */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child,
.article-details:not(.phm-full-width-article) .article-header h1 {
  margin: 0 calc(50% - 50vw) 0;
  padding: 72px 20px 84px;
  text-align: center;
  color: #fff;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  background: radial-gradient(900px 300px at 85% -20%, rgba(255, 104, 3, .25), transparent 60%),
              linear-gradient(135deg, var(--kk-navy) 0%, var(--kk-navy-2) 100%);
}
/* цена сразу под заголовком — плашка */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child + p:has(> span[style*="color"]:only-child) {
  display: table;
  margin: -30px auto 36px !important;
  padding: 12px 30px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--kk-sh);
  position: relative;
}
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child + p:has(> span[style*="color"]:only-child) span {
  color: var(--kk-orange) !important;
  font-size: 22px !important;
}
/* предупреждение про связь — карточка */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child + p:has(> span[style*="color"]:only-child) + p {
  padding: 18px 24px;
  background: var(--kk-orange-soft);
  border-left: 4px solid var(--kk-orange);
  border-radius: 12px;
  font-size: 16px;
  color: var(--kk-ink);
  text-align: left !important;
  margin-bottom: 36px;
}
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--kk-ink);
  margin-top: 56px;
  margin-bottom: 24px;
  line-height: 1.3;
}
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--kk-orange);
  margin: 14px auto 0;
}
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h2[style*="left"]::after,
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h2:not([style])::after { margin-left: 0; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h3 { font-size: 21px; font-weight: 700; color: var(--kk-ink); margin-top: 36px; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] strong { color: var(--kk-ink); }
/* маркированные списки — оранжевые галочки */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > ul { list-style: none; padding-left: 0; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > ul > li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > ul > li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--kk-orange-soft); color: var(--kk-orange);
  font-size: 13px; font-weight: 800;
}
/* нумерованные списки — номера в кружках */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > ol { list-style: none; padding-left: 0; counter-reset: kk; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > ol > li {
  counter-increment: kk; position: relative; padding: 14px 18px 14px 62px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--kk-line); border-radius: 14px;
}
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > ol > li::before {
  content: counter(kk);
  position: absolute; left: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--kk-orange); color: #fff; font-weight: 800; font-size: 14px;
}
/* блок с телефонами внизу — карточка */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > div:not(.mod-custom) {
  max-width: 560px !important;
  background: var(--kk-soft);
  padding: 22px 28px 6px;
  border-radius: 18px 18px 0 0;
  margin-top: 48px;
}
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > div:not(.mod-custom) + div:not(.mod-custom) {
  margin-top: 0;
  padding: 6px 28px 24px;
  border-radius: 0 0 18px 18px;
  font-size: 19px;
  font-weight: 600;
  color: var(--kk-ink);
  line-height: 1.8;
}
/* таблицы цен */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--kk-line); border-radius: 14px; overflow: hidden; margin: 24px auto;
}
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] table td,
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] table th { padding: 12px 16px; border-bottom: 1px solid var(--kk-line); }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] table tr:first-child td,
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] table th { background: var(--kk-orange-soft); font-weight: 700; color: var(--kk-ink); }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] table tr:last-child td { border-bottom: 0; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] img { max-width: 100%; height: auto; border-radius: 12px; }
/* модули внутри материала (доверие, клиенты) — на всю ширину */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > .mod-custom {
  margin: 70px calc(50% - 50vw) 0;
}
/* кнопка «Редактировать» для вошедших — не мешает шапке */
.article-details:not(.phm-full-width-article) .article-can-edit { position: absolute; z-index: 5; margin-top: 12px; }
.article-details:not(.phm-full-width-article) { position: relative; }

/* лента статей / категории */
.article-list .article {
  background: #fff; border: 1px solid var(--kk-line); border-radius: var(--kk-r);
  padding: 24px; margin-bottom: 28px; box-shadow: var(--kk-sh-sm);
  transition: box-shadow .3s, transform .3s var(--kk-ease);
}
.article-list .article:hover { box-shadow: var(--kk-sh); transform: translateY(-3px); }
.article-list .article .article-header h2 a { color: var(--kk-ink); text-decoration: none; }
.article-list .article .article-header h2 a:hover { color: var(--kk-orange); }
.article-list .article .readmore a,
.article-list .article .btn {
  display: inline-block; padding: 10px 22px; border-radius: 10px; border: 0;
  background: var(--kk-orange-soft); color: var(--kk-orange); font-weight: 700; text-decoration: none;
}
.article-list .article .readmore a:hover { background: var(--kk-orange); color: #fff; }

@media (max-width: 767px) {
  .article-details:not(.phm-full-width-article) [itemprop="articleBody"] { font-size: 16px; }
  .article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child { padding: 48px 16px 64px; }
  .article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child + p:has(> span[style*="color"]:only-child) span { font-size: 18px !important; }
  .article-details:not(.phm-full-width-article) [itemprop="articleBody"] > ol > li { padding-left: 56px; }
}

/* отступ под шапкой, если на странице нет цены */
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child { margin-bottom: 48px; }
.article-details:not(.phm-full-width-article) [itemprop="articleBody"] > h1:first-child:has(+ p > span[style*="color"]:only-child) { margin-bottom: 0; }

/* ===== Лицензии: слайдер на внутренней странице ===== */
.article-details [itemprop="articleBody"] > .kk-lic { max-width: 1120px !important; margin: 10px auto 40px; padding: 30px 70px; background: var(--kk-soft); border-radius: 24px; position: relative; }
.kk-lic .phm-licence { max-width: 100%; }
.kk-lic .phm-licence__item { display: block; height: auto; min-height: 0; max-width: 320px; margin: 16px auto; padding: 10px; background: #fff; border-radius: 14px; box-shadow: var(--kk-sh); transition: transform .3s var(--kk-ease), box-shadow .3s var(--kk-ease); }
.kk-lic .phm-licence__item:hover { transform: translateY(-4px); box-shadow: var(--kk-sh-lg); }
.kk-lic .phm-licence__image { width: 100%; height: 430px; max-height: none; object-fit: contain; border-radius: 8px; background: #fff; }
.kk-lic .owl-nav { top: 45%; }
.kk-lic .owl-prev { left: -58px; background-image: url(../../../images/prev-black.png) !important; }
.kk-lic .owl-next { right: -58px; background-image: url(../../../images/next-black.png) !important; }
.kk-lic .owl-prev, .kk-lic .owl-next { background-color: #fff !important; box-shadow: var(--kk-sh-sm); }
.kk-lic .owl-prev:hover, .kk-lic .owl-next:hover { background-color: var(--kk-orange-soft) !important; }
.kk-lic-hint { text-align: center; color: var(--kk-muted); font-size: 14px; margin-top: 4px; }
@media (max-width: 767px) {
  .article-details [itemprop="articleBody"] > .kk-lic { padding: 16px 48px; border-radius: 16px; }
  .kk-lic .owl-prev { left: -42px; } .kk-lic .owl-next { right: -42px; }
  .kk-lic .phm-licence__image { height: 360px; }
}
