/* Hallmark: editorial refinement; existing SMS Телеком identity; scope: blog only. */
/* Critique: replace cramped legacy article measure with a quiet reading column and useful navigation. */
/* Waiver: existing site chrome retained; long editorial content is not a marketing hero. */
/* waive 7b: white is the existing site's paper and high-contrast active-page text. */
/* answered 3: quote stripe identifies quoted content, not a decorative card accent. */
:root {
    --blog-ink: #202b35;
    --blog-muted: #56636d;
    --blog-blue: #006a9f;
    --blog-paper: #fff;
    --blog-surface: #f3f7f9;
    --blog-line: #dce5ea;
    --blog-font: 'PT Sans', sans-serif;
    --blog-space: 24px;
}
html:has(body.blog-page), body.blog-page { overflow-x: clip; }
.blog-page { color: var(--blog-ink); font-family: var(--blog-font); }
.blog-page .wrapper { box-sizing: border-box; width: min(1150px, calc(100% - 32px)); }
.blog-shell { max-width: 1032px; margin: 0 auto; padding: 16px 16px 180px; }
.blog-shell *, .blog-shell *::before, .blog-shell *::after { box-sizing: border-box; }
.blog-shell a { color: var(--blog-blue); text-underline-offset: 4px; }
.blog-shell a:active { opacity: .75; }
.blog-shell h1, .blog-shell h2 { text-wrap: balance; }
.blog-page a:focus-visible, .blog-page summary:focus-visible, .blog-page button:focus-visible { outline: 3px solid var(--blog-blue); outline-offset: 4px; }
.blog-shell h1, .blog-shell h2, .blog-shell h3 { min-width: 0; overflow-wrap: break-word; color: var(--blog-ink); }
.blog-intro { max-width: 720px; margin-bottom: 48px; }
.blog-intro h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px; }
.blog-intro p { margin: 0; text-align: left; font-size: 20px; line-height: 1.5; color: var(--blog-muted); }
.blog-feed { border-top: 1px solid var(--blog-line); }
.blog-card { margin: 0; padding: 32px 0; border-bottom: 1px solid var(--blog-line); }
.blog-card.has-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.blog-card__visual { display: block; align-self: start; }
.blog-card__visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 4px; }
.blog-card__body time { display: block; color: var(--blog-muted); font-size: 14px; margin-bottom: 8px; }
.blog-card__body h2 { font-size: clamp(23px, 3vw, 29px); line-height: 1.25; margin: 0 0 12px; }
.blog-card__body h2 a { color: inherit; text-decoration: none; }
.blog-card__body h2 a:hover { color: var(--blog-blue); text-decoration: underline; }
.blog-card__body p { margin: 0 0 16px; text-align: left; font-size: 17px; line-height: 1.55; color: var(--blog-muted); }
.blog-read { display: inline-flex; min-height: 44px; align-items: center; font-size: 17px; font-weight: bold; }
.blog-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.blog-pagination a, .blog-pagination span { min-width: 44px; min-height: 44px; display: inline-flex; justify-content: center; align-items: center; padding: 8px 12px; font-size: 16px; border-radius: 4px; }
.blog-pagination [aria-current] { background: var(--blog-blue); color: var(--blog-paper); }
.blog-pagination a:hover { background: var(--blog-surface); }
.blog-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--blog-muted); margin-bottom: 24px; }
.blog-breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.blog-breadcrumbs span { align-self: center; }
.blog-article__header { max-width: 840px; margin-bottom: 32px; }
.blog-article__header h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: bold; margin: 0 0 24px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--blog-muted); font-size: 15px; line-height: 1.5; }
.blog-cover { margin: 0 0 48px; }
.blog-cover img { display: block; width: 100%; height: auto; border-radius: 4px; }
.blog-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.blog-reading-layout.has-contents { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
.blog-contents { align-self: start; position: sticky; top: 24px; padding: 16px; background: var(--blog-surface); border-radius: 4px; font-size: 15px; line-height: 1.45; }
.blog-contents summary { cursor: pointer; min-height: 44px; font-weight: bold; }
.blog-contents ol { list-style: none; margin: 0; padding: 0; }
.blog-contents li { list-style: none; margin: 0; }
.blog-contents a { display: block; padding: 12px 0; overflow-wrap: anywhere; }
.blog-contents__level-3 { padding-left: 12px; }
.blog-prose { min-width: 0; max-width: 720px; margin: 0 auto; font-size: 19px; line-height: 1.7; overflow-wrap: anywhere; }
.blog-prose p, .blog-prose ul, .blog-prose ol { margin: 0 0 24px; text-align: left; }
.blog-prose ul, .blog-prose ol { padding-left: 24px; list-style-position: outside; }
.blog-prose li { margin-bottom: 12px; list-style-image: none; }
.blog-prose h2 { font-size: 29px; line-height: 1.25; margin: 48px 0 20px; }
.blog-prose h3 { font-size: 23px; line-height: 1.3; margin: 32px 0 16px; }
.blog-prose h2:first-child { margin-top: 0; }
.blog-prose h2, .blog-prose h3 { scroll-margin-top: 24px; }
.blog-prose blockquote { margin: 32px 0; padding: 16px 24px; border-left: 3px solid var(--blog-blue); background: var(--blog-surface); }
.blog-prose img { max-width: 100%; height: auto; }
.blog-prose table { display: block; max-width: 100%; overflow-x: auto; margin: 24px 0; font-size: 16px; }
.blog-prose td, .blog-prose th { padding: 12px; border-color: var(--blog-line); text-align: left; }
.blog-prose th { background: var(--blog-surface); }
.blog-article__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--blog-line); }
@media (max-width: 900px) {
    .blog-page .header { height: auto; display: flex; flex-wrap: wrap; gap: 24px; padding: 16px 0; }
    .blog-page .header .logo { flex: 0 0 145px; margin: 0; }
    .blog-page .header .hleft { margin: 0; align-self: center; }
    .blog-page .header .phone { width: 100%; }
    .blog-page .header .phone .number { font-size: 22px; line-height: 1.4; }
    .blog-page .header .phone .grey { display: block; }
    .blog-page .navmenu { height: auto; background: var(--blog-surface); margin: 24px 0; box-shadow: none; }
    .blog-page .navmenu ul { display: flex; flex-wrap: wrap; margin: 0; }
    .blog-page .navmenu ul li { float: none; height: auto; border: 0; font-size: 15px; }
    .blog-page .navmenu ul li a { padding: 12px; min-height: 44px; }
    .blog-page .footer { box-sizing: border-box; width: 100%; height: auto; min-height: 140px; }
    .blog-page .footer .left, .blog-page .cookies { max-width: 100%; width: auto; }
    .blog-page #panel { display: none; }
    .blog-reading-layout.has-contents { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .blog-contents { position: static; }
}
@media (max-width: 600px) {
    .blog-page .wrapper { width: calc(100% - 16px); margin: 8px auto; padding: 16px; }
    .blog-shell { padding-left: 0; padding-right: 0; }
    .blog-card.has-image { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .blog-prose { font-size: 18px; }
    .blog-breadcrumbs span:last-child { display: none; }
    .blog-cover { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .blog-page { scroll-behavior: auto; } }
