/* ===========================================================
   Страницы с текстом ШИХОН: типографика, таблицы, изображения, формы, новости.
   Область действия -- .sh-content (обёртка тега [maincontent] во внутренних страницах).
   =========================================================== */

.sh-page { margin-bottom: 40px; padding: 32px; }
.sh-content { overflow-wrap: anywhere; line-height: 1.65; color: var(--ink); font-size: 15px; }
.sh-content > *:first-child { margin-top: 0; }
.sh-content h1 { margin: 0 0 12px; font-size: 30px; color: var(--sh-ink); }
.sh-content h1 + hr { width: 64px; margin: 0 0 22px; border: 0; border-top: 3px solid var(--sh-sky); }
.sh-content hr { border: 0; border-top: 1px solid var(--sh-line); margin: 20px 0; }
.sh-content h2 { margin: 30px 0 12px; font-size: 23px; color: var(--sh-ink); }
.sh-content h3 { margin: 24px 0 10px; font-size: 19px; color: var(--sh-ink); }
.sh-content h4 { margin: 20px 0 8px; font-size: 16px; color: var(--sh-ink); }
.sh-content p { margin: 0 0 14px; }
.sh-content ul, .sh-content ol { margin: 0 0 16px; padding-left: 24px; }
.sh-content li { margin-bottom: 4px; }
.sh-content a { color: var(--sh-blue); text-decoration: underline; text-underline-offset: 2px; }
.sh-content a:hover { color: var(--sh-sky); }
.sh-content img { display: inline-block; max-width: 100%; height: auto; }
.sh-content blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--sh-sky); background: var(--panel-2); }

/* таблицы: рамки, шапка бежевая, на телефоне прокручиваются внутри себя */
.sh-content table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 14px; }
.sh-content th, .sh-content td { padding: 8px 12px; border: 1px solid var(--sh-line); vertical-align: top; text-align: left; }
.sh-content th, .sh-content thead td { background: var(--sh-beige); font-weight: 500; color: var(--sh-ink); }
.sh-content table[border="0"], .sh-content table[border="0"] td, .sh-content table.table_brother td { border: 0; }
@media (max-width: 767.98px) {
	.sh-page { padding: 18px 16px; margin-bottom: 24px; }
	.sh-content h1 { font-size: 24px; }
	.sh-content h2 { font-size: 20px; }
	.sh-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* списки статей и новостей на странице /news/ */
.sh-content .article_link { font-family: var(--sh-head-font); font-weight: 500; }

/* --- Формы (модуль «Формы») --- */
.site-form { max-width: 760px; margin: 18px 0; }
.sh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
.sh-form-wide { grid-column: 1 / -1; }
.site-form input[type="text"], .site-form input[type="tel"], .site-form input[type="email"], .site-form textarea { display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.site-form textarea { min-height: 110px; resize: vertical; }
.site-form input:focus, .site-form textarea:focus { outline: none; border-color: var(--sh-blue); box-shadow: 0 0 0 3px rgba(37, 106, 165, .15); }
.site-form .sh-form-captcha { margin-bottom: 12px; }
.site-form .sh-form-captcha img { display: inline-block; vertical-align: middle; border-radius: 4px; }
.site-form .sh-form-captcha input { display: inline-block; width: 160px; margin-left: 10px; vertical-align: middle; }
.site-form .form-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.site-form .form-consent input { margin-top: 2px; flex: 0 0 auto; }
.site-form .button-send { padding: 12px 34px; border: 0; border-radius: 6px; background: var(--sh-blue); color: #fff; font-family: var(--sh-head-font); font-size: 15px; font-weight: 500; cursor: pointer; }
.site-form .button-send:hover { background: var(--sh-accent-dark, var(--brand-dark)); }
.site-form .button-send-inactive { opacity: .55; }
.site-form .site-form-message { margin-top: 12px; font-size: 14px; }
@media (max-width: 575.98px) {
	.sh-form-grid { grid-template-columns: 1fr; }
	.site-form .sh-form-captcha input { width: 100%; margin: 10px 0 0; }
	.site-form .button-send { width: 100%; }
}

/* --- Страница 404 --- */
.sh-notfound { text-align: center; padding: 56px 24px; }
.sh-notfound-code { margin: 0 0 6px; font-family: var(--sh-head-font); font-size: 84px; font-weight: 700; line-height: 1; color: var(--sh-sky); }
.sh-notfound h1 { margin-bottom: 12px; }
.sh-notfound-btn { display: inline-block; margin: 6px 4px; padding: 11px 28px; border-radius: 6px; background: var(--sh-blue); color: #fff !important; font-family: var(--sh-head-font); font-weight: 500; text-decoration: none !important; }
.sh-notfound-btn:hover { background: var(--site-accent-dark); }
.sh-notfound-btn--ghost { background: #fff; border: 1px solid var(--sh-blue); color: var(--sh-blue) !important; }
.sh-notfound-btn--ghost:hover { background: var(--brand-soft); }
