/* ===== css/water-background-headings-red-v1243.css?v=1245 ===== */
/* v.1245 — единый фирменный красный для секционных заголовков сайта. */
:root{--grafo-heading-red:#34465a;}

/* Пара заголовок + подзаголовок, как «Почерк в графологии» /
   «Сколько людей, столько и почерков...». */
html[data-site-river-background] body .practice__header.header-block > .header-block__title,
html[data-site-river-background] body .practice__header.header-block > .header-block__sub-title,
html[data-site-river-background] body .categories__header.header-block > .header-block__title,
html[data-site-river-background] body .categories__header.header-block > .header-block__sub-title,
html[data-site-river-background] body .header-block > .header-block__title,
html[data-site-river-background] body .header-block > .header-block__sub-title,

/* Заголовки секций, которые используют старый класс categories__title. */
html[data-site-river-background] body .practice__header > .categories__title,
html[data-site-river-background] body .categories__header > .categories__title,

/* Явные зоны воды/камней. */
.bgimg-1 h1,.bgimg-1 h2,.bgimg-1 h3,.bgimg-1 h4,
.bgimg-2 h1,.bgimg-2 h2,.bgimg-2 h3,.bgimg-2 h4,
.bgimg-3 h1,.bgimg-3 h2,.bgimg-3 h3,.bgimg-3 h4,
.graphology-river-strip h1,.graphology-river-strip h2,.graphology-river-strip h3,.graphology-river-strip h4,
.river-strip h1,.river-strip h2,.river-strip h3,.river-strip h4,
[data-site-river-background] .river-title,
[data-site-river-background] .water-title{
  color:var(--grafo-heading-red)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.46),0 2px 5px rgba(0,0,0,.17)!important;
}

/* Документы — принудительно тем же красным. */
html body #documents2026 .documents-main-heading,
html body #documents2026 .header-block__sub-title{
  color:var(--grafo-heading-red)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.46),0 2px 5px rgba(0,0,0,.17)!important;
}

/* Содержимое белых листов и карточек не наследует этот декоративный цвет. */
html[data-site-river-background] body .documentation-info-paper .header-block__title,
html[data-site-river-background] body .documentation-info-paper .header-block__sub-title,
html[data-site-river-background] body .item-service .header-block__title,
html[data-site-river-background] body .item-service .header-block__sub-title,
html[data-site-river-background] body .item-practice .header-block__title,
html[data-site-river-background] body .item-practice .header-block__sub-title{
  text-shadow:none!important;
}


/* ===== css/site-unified-column-river-gap-v4006.css?v=4006 ===== */
/* v.4006 — единый механизм 24px перед первыми колонками.
   Эталон: graphology.html — отступ задаёт сама секция колонок,
   а в промежутке виден общий фон сайта «камешки и вода».
   JS не используется. */

/* Страницы, где перед первым рядом колонок уже есть отдельная river-strip:
   полоса не участвует в геометрии; 24px создаёт margin самой секции. */
html body.page-index .home-river-strip-1,
html body.page-graphology .graphology-river-strip-1,
html body.page-handwriting .handwriting-river-strip-1{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}

html body.page-index .home-river-strip-1 + .page__services,
html body.page-graphology .graphology-river-strip-1 + .page__services,
html body.page-handwriting .handwriting-river-strip-1 + .page__services,
html body.page-services .services-main-v1267,
html body.page-news-archive .news0-first-columns-v1283,
html body.page-news .page__main-block + .page__services,
html body.article-index-page .news-lawyer-first-columns-v1284,
html body.article-detail-page .news-lawyer-first-columns-v1284{
  margin-top:24px!important;
  margin-right:0!important;
  margin-left:0!important;
  padding-top:0!important;
}

/* Фирменный красный для заголовков и текста, расположенных непосредственно
   на общем водно-каменном фоне. Содержимое белых карточек/листов не меняется. */
html[data-site-river-background] body .bgimg-1 h1,
html[data-site-river-background] body .bgimg-1 h2,
html[data-site-river-background] body .bgimg-1 h3,
html[data-site-river-background] body .bgimg-1 h4,
html[data-site-river-background] body .bgimg-1 h5,
html[data-site-river-background] body .bgimg-1 h6,
html[data-site-river-background] body .bgimg-1 p,
html[data-site-river-background] body .bgimg-1 .header-block__text,
html[data-site-river-background] body .bgimg-2 h1,
html[data-site-river-background] body .bgimg-2 h2,
html[data-site-river-background] body .bgimg-2 h3,
html[data-site-river-background] body .bgimg-2 h4,
html[data-site-river-background] body .bgimg-2 h5,
html[data-site-river-background] body .bgimg-2 h6,
html[data-site-river-background] body .bgimg-2 p,
html[data-site-river-background] body .bgimg-2 .header-block__text,
html[data-site-river-background] body .bgimg-3 h1,
html[data-site-river-background] body .bgimg-3 h2,
html[data-site-river-background] body .bgimg-3 h3,
html[data-site-river-background] body .bgimg-3 h4,
html[data-site-river-background] body .bgimg-3 h5,
html[data-site-river-background] body .bgimg-3 h6,
html[data-site-river-background] body .bgimg-3 p,
html[data-site-river-background] body .bgimg-3 .header-block__text,
html[data-site-river-background] body .river-strip h1,
html[data-site-river-background] body .river-strip h2,
html[data-site-river-background] body .river-strip h3,
html[data-site-river-background] body .river-strip h4,
html[data-site-river-background] body .river-strip p,
html[data-site-river-background] body .graphology-river-strip h1,
html[data-site-river-background] body .graphology-river-strip h2,
html[data-site-river-background] body .graphology-river-strip h3,
html[data-site-river-background] body .graphology-river-strip h4,
html[data-site-river-background] body .graphology-river-strip p,
html[data-site-river-background] body .handwriting-river-strip h1,
html[data-site-river-background] body .handwriting-river-strip h2,
html[data-site-river-background] body .handwriting-river-strip h3,
html[data-site-river-background] body .handwriting-river-strip h4,
html[data-site-river-background] body .handwriting-river-strip p,
html[data-site-river-background] body .home-river-strip h1,
html[data-site-river-background] body .home-river-strip h2,
html[data-site-river-background] body .home-river-strip h3,
html[data-site-river-background] body .home-river-strip h4,
html[data-site-river-background] body .home-river-strip p,
html[data-site-river-background] body .services-river-strip h1,
html[data-site-river-background] body .services-river-strip h2,
html[data-site-river-background] body .services-river-strip h3,
html[data-site-river-background] body .services-river-strip h4,
html[data-site-river-background] body .services-river-strip p,
html[data-site-river-background] body .rules-river-strip h1,
html[data-site-river-background] body .rules-river-strip h2,
html[data-site-river-background] body .rules-river-strip h3,
html[data-site-river-background] body .rules-river-strip h4,
html[data-site-river-background] body .rules-river-strip p,
html[data-site-river-background] body .river-title,
html[data-site-river-background] body .water-title,
html[data-site-river-background] body .rules-river-heading{
  color:var(--grafo-heading-red,#34465a)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.46),0 2px 5px rgba(0,0,0,.17)!important;
}


/* ===== css/graphology-exact-gaps-v1262.css?v=1262 ===== */
/* v.1262 — только graphology.html.
   Четыре фактических вертикальных промежутка ровно по 24px.
   Учтены причины v1260/v1261: 400px river strips, -111px services margin,
   125/80px practice padding и -30px practice body compensation. */

/* v.1363 — Низ cover -> первые колонки: ТОЧНО тот же механизм, что services.html.
   Первая локальная river-strip исключена из геометрии, а секция колонок получает 24px margin-top. */
html body.page-graphology .graphology-river-strip-1{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
html body.page-graphology .graphology-river-strip-1 + .page__services{
  margin-top:24px!important; /* как .services-main-v1267 на services.html */
  margin-right:0!important;
  margin-bottom:0!important;
  margin-left:0!important;
  padding-top:0!important;
}

/* 2. Низ первых колонок -> заголовок «Почерк в графологии».
   Вторая декоративная полоса = ровно 24px. */
html body.page-graphology .graphology-river-strip-2{
  min-height:24px!important;
  height:24px!important;
  margin:0!important;
  padding:0!important;
}
html body.page-graphology .graphology-river-strip-2 + .page__practice{
  margin-top:0!important;
  padding-top:0!important;  /* отменяет штатные 125px */
}

/* У первой practice-секции нижний padding 80px не должен увеличивать
   промежуток до следующего ряда «Начало графологии». */
html body.page-graphology .graphology-river-strip-2 + .page__practice{
  padding-bottom:24px!important;
}

/* 3. Верхние колонки «Почерк…» -> нижние колонки «Начало графологии…».
   Вторая practice-секция начинается сразу после 24px нижнего padding первой. */
html body.page-graphology .graphology-river-strip-2 + .page__practice + .w3-modal + .page__practice{
  margin-top:0!important;
  padding-top:0!important;  /* отменяет штатные 125px */
}

/* 4. Низ последнего ряда колонок -> футер = ровно 24px.
   .practice__body имеет margin-bottom:-30px, а колонки margin-bottom:30px;
   они взаимно компенсируются. Убираем штатные 80px и оставляем 24px. */
html body.page-graphology .page__practice:last-of-type{
  margin-bottom:0!important;
  padding-bottom:24px!important;
}
html body.page-graphology .page__practice:last-of-type + .footer{
  margin-top:0!important;
}


/* ===== css/site-selected-subtitles-h2-v1273.css?v=1273 ===== */
/* v.1273 — исправление отсутствующего результата v.1271/v.1272.
   Причина: cover-layout-var84.css имел более специфичный !important-селектор.
   Здесь применяется более специфичный селектор и точная типографика services.html.
   Цвет НЕ задаётся и остаётся прежним для каждой страницы. */

html body .page__main-block .main-block__subtitle.g74-h2-like-services{
  font-family:inherit!important;
  font-size:clamp(18px,2.15vw,30px)!important;
  font-weight:700!important;
  line-height:1.22!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  font-style:normal!important;
  display:block!important;
  margin:0 0 30px 0!important;
  padding:0!important;
}

@media(max-width:700px){
  html body .page__main-block .main-block__subtitle.g74-h2-like-services{
    font-size:20px!important;
  }
}


/* ===== css/graphology-handwriting-dom-gap-v1281.css?v=1281 ===== */

/* v.1364 — Graphology cover -> first columns: EXACTLY the same geometry as services.html.
   The first local river-strip must not add its own height. The columns themselves get 24px top margin. */
html body.page-graphology .handwriting-river-strip.graphology-river-strip-1{
  display:none!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
html body.page-graphology .handwriting-river-strip.graphology-river-strip-1 + .page__services{
  margin-top:24px!important;
  margin-right:0!important;
  margin-bottom:0!important;
  margin-left:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}

/* Keep the second decorative strip unchanged at 24px. */
html body.page-graphology .handwriting-river-strip.graphology-river-strip-2{
  min-height:24px!important;
  height:24px!important;
  margin:0!important;
  padding:0!important;
}
html body.page-graphology .handwriting-comparison-section{
  margin:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
}

