/* Final catalog layer. Original article content remains unconstrained. */
:root { --color-blue:#006df0; --color-blue-dark:#005ecc; }
html { scroll-padding-top:var(--article-sidebar-offset); }
body { overflow-x:visible; }
h1,h2,h3,h4 { letter-spacing:0; overflow-wrap:break-word; }
h1 { font-weight:500; }
.site-container,.site-container-wide { max-width:100%; }
.catalog-section { padding-top:40px; padding-bottom:56px; }
.catalog-intro { padding:42px 0 32px; background:#f6f9ff; }
.catalog-intro h1 { margin-bottom:20px; }
.catalog-description { max-width:720px; color:var(--color-text-soft); }
.catalog-intro .breadcrumbs { margin-bottom:22px; }
.catalog-sort { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.archive-sort { width:auto; max-width:100%; min-height:42px; }
.blog-category-pills { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:26px; }
.blog-category-pills a { text-transform:none; padding:8px 14px; }
.blog-home-hero { padding:36px 0 28px; background:#f7f9fd; }
.blog-home-hero__grid { grid-template-columns:minmax(0,1.6fr) minmax(0,0.7fr); gap:64px; align-items:center; }
.blog-home-hero__media img { width:100%; height:auto; max-height:200px; object-fit:contain; }
.blog-home-hero__media { min-height:0; }
.blog-home-hero__content h1 { font-size:48px; line-height:1.1; letter-spacing:-1.8px; margin:12px 0 14px; }
.blog-home-hero__content .eyebrow { margin-bottom:0; font-size:11px; letter-spacing:0.08em; }
.blog-home-hero__lead { max-width:600px; font-size:17px; line-height:1.5; margin-bottom:22px; }
.blog-home-search { max-width:640px; width:100%; display:flex; gap:10px; }
.blog-home-search input { min-width:0; flex:1; width:0; border:1px solid #ddd; border-radius:5px; padding:12px 16px; font:inherit; }
.blog-home-search button { flex-shrink:0; }
.home-featured-section { padding-top:32px; padding-bottom:8px; }
.home-featured-section__layout { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(0,1fr); gap:20px; }
.home-featured-main { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:24px; padding:28px; border-radius:16px; min-height:0; background:#f4f7fc; border:1px solid #e4eaf3; }
.home-featured-main--text { grid-template-columns:1fr; }
.home-featured-main__content { padding:0; min-width:0; width:auto; max-width:none; min-height:0; height:auto; }
.home-featured-main__title { font-size:27px; font-weight:550; line-height:1.23; letter-spacing:-0.6px; margin:0 0 14px; }
.home-featured-main__title a::after,.home-featured-side-card__title a::after { content:""; position:absolute; inset:0; }
.home-featured-main:focus-within,.home-featured-side-card:focus-within { outline:3px solid #006df0; outline-offset:3px; }
.home-featured-main__excerpt { font-size:14px; line-height:1.55; max-width:none; width:auto; color:#596474; margin-bottom:24px; }
.home-featured-main__media { position:static; width:100%; height:auto; min-height:0; align-self:center; }
.home-featured-main__media img { width:100%; height:auto; max-height:260px; object-fit:scale-down; border-radius:8px; }
.home-featured-main__meta { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:#626c78; margin-top:auto; }
.home-featured-side { display:grid; grid-template-rows:repeat(2,minmax(0,1fr)); gap:16px; }
.home-featured-side-card { display:flex; position:relative; align-items:center; gap:16px; padding:20px; border-radius:16px; min-height:145px; }
.home-featured-side-card__content { min-width:0; flex:1; }
.home-featured-side-card__title { margin:0 0 12px; font-size:17px; font-weight:500; line-height:1.35; letter-spacing:-0.2px; }
.home-featured-side-card__image { flex:0 0 96px; width:96px; height:auto; aspect-ratio:4/3; border:0; border-radius:6px; background:#f5f7fb; }
.home-featured-side-card__image img { width:100%; height:100%; object-fit:scale-down; }
.home-featured-main__category,.home-featured-side-card__category { font-size:10px; line-height:1.3; letter-spacing:0.04em; margin:0 0 14px; }
.home-featured-side-card time { color:#757575; font-size:12px; }
.post-card { border-radius:14px; position:relative; height:auto; box-shadow:none; }
.post-card h3,.archive-posts-grid .post-card h3 { font-size:20px; font-weight:500; line-height:1.3; letter-spacing:-0.3px; margin:0; }
.post-card h3 a::after { content:""; position:absolute; inset:0; }
.post-card:focus-within { outline:2px solid var(--color-blue); outline-offset:3px; }
.post-card p,.archive-posts-grid .post-card p { font-size:14px; line-height:1.5; color:#626c78; margin-bottom:14px; }
.post-card__body,.archive-posts-grid .post-card__body { padding:24px; gap:12px; }
.post-card__category { font-size:10px; line-height:1.3; letter-spacing:0.06em; margin:0; }
.post-card__body h3,.post-card__body>p,.home-featured-main__excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.post-card__body>p { -webkit-line-clamp:2; }
.home-featured-main__title { display:block; overflow:visible; }
.post-card__meta { display:flex; flex-wrap:wrap; gap:12px; margin-top:auto; padding-top:8px; font-size:12px; color:#626c78; }
.post-card__image { aspect-ratio:16/9; padding:12px; background:#f5f7fa; }
.article-card__image img { object-fit:scale-down; border-radius:5px; }
.article-card--text { background:#f4f7fc; border-color:#e1e8f2; border-top:3px solid #006df0; }
.article-card--text .post-card__body,.archive-posts-grid .article-card--text .post-card__body { padding:28px; gap:18px; }
.article-card--text h3,.archive-posts-grid .article-card--text h3 { font-size:25px; line-height:1.25; -webkit-line-clamp:5; }
.blog-home .catalog-section { padding-top:36px; }
.blog-home .section-heading { align-items:center; margin-bottom:24px; }
.blog-home .section-heading h2 { font-size:30px; letter-spacing:-0.6px; margin:0; }
.blog-home .blog-category-pills { gap:8px; margin-bottom:28px; }
.blog-home .blog-category-pills a { padding:9px 14px; background:#f4f6f9; color:#424c5a; border:1px solid transparent; border-radius:7px; font-size:13px; }
.blog-home .blog-category-pills a:hover { background:#eaf2ff; color:#005ecc; }
.blog-home .archive-posts-grid { gap:24px; }
.blog-home .archive-pagination { margin-top:32px; }
.section-heading { flex-wrap:wrap; }
.section-heading p { margin:8px 0 0; color:#757575; }
.archive-empty-state { min-height:0; padding:40px 0; border:0; }
.authors-list-card__avatar { display:flex; align-items:center; justify-content:center; color:#006df0; background:#eef5ff; font-size:28px; }
.article-layout { grid-template-columns:minmax(0,1fr) 300px; gap:48px; align-items:stretch; }
.article-main,.article-content,.article-sidebar { min-width:0; }
.article-page { padding-top:32px; padding-bottom:48px; }
.article-hero h1 { font-size:36px; line-height:1.2; }
.article-hero__lead { font-size:17px; line-height:1.6; max-width:none; }
.article-cover { aspect-ratio:auto; height:auto; max-height:none; overflow:visible; }
.article-cover__image { height:auto; width:100%; object-fit:contain; max-height:none; }
.article-content { font-size:17px; line-height:1.65; overflow:visible; }
.article-content p,.article-content li { font-size:inherit; line-height:inherit; }
.article-content h2 { font-size:28px; margin:40px 0 20px; }
.article-content h3 { font-size:22px; margin:28px 0 16px; }
.article-content [id] { scroll-margin-top:0; }
.article-content a { color:#005ecc; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.article-content img,.article-content video,.article-content svg { max-width:100%; height:auto; }
.article-content figure img { width:auto; max-width:100%; }
.article-content figure { max-width:100%; margin-left:0; margin-right:0; height:auto; }
.article-content .wp-block-gallery { display:flex; flex-wrap:wrap; gap:16px; }
.article-content .wp-block-gallery figure { flex:1 1 240px; }
.article-content figcaption { font-size:13px; line-height:1.5; color:#757575; margin-top:10px; }
.article-content iframe { max-width:100%; border:0; }
.article-content iframe[src*="youtube"],.article-content iframe[src*="rutube"],.article-content iframe[src*="vimeo"] { width:100%; height:auto; aspect-ratio:16/9; }
.article-content .wp-block-embed__wrapper { max-width:100%; }
.article-content .wp-block-table,.article-table-scroll { width:100%; overflow-x:auto; margin:24px 0; }
.article-content table { width:100%; border-collapse:collapse; margin:0; font-size:15px; }
.article-content th,.article-content td { min-width:140px; padding:12px; border:1px solid #ddd; vertical-align:top; }
.article-content pre { overflow:auto; max-width:100%; padding:20px; background:#f5f7fb; }
.article-content blockquote { border-left:3px solid #006df0; padding-left:20px; margin-left:0; }
.article-toc__item--numbered::marker { content:''; }
/* Ширина и текст по широкому PDF; шапка и футер не наследуют этот шрифт. */
@font-face { font-family:MottorPDFInter; font-weight:400; font-style:normal; font-display:swap; src:url("https://wp-blog-stage.lpmotor.ru/articles/_mottor-stage-media/1b08e7fc267a5c7e1d614100f604b83e7e8a0be241f0f288faa2b3ac93a683ba.ttf") format('truetype'); }
@font-face { font-family:MottorPDFInter; font-weight:500; font-style:normal; font-display:swap; src:url("https://wp-blog-stage.lpmotor.ru/articles/_mottor-stage-media/8c883f63b2c4157d997319f2c8bc6995ed4357ef371940d31ca159004a4aae63.ttf") format('truetype'); }
@font-face { font-family:MottorPDFInter; font-weight:600; font-style:normal; font-display:swap; src:url("https://wp-blog-stage.lpmotor.ru/articles/_mottor-stage-media/e7a1aaf7eda9f2fad4131725fa556265ec75ca7b2d756260173a040363e8d4f7.ttf") format('truetype'); }
.article-page { font-family:MottorPDFInter,Inter,Arial,sans-serif; }
.article-content { font-size:16px; line-height:1.6; }
@media(min-width:1101px) { .article-layout { grid-template-columns:minmax(0,840fr) minmax(0,320fr); gap:40px; } }
.article-content .wp-block-buttons { display:flex; flex-wrap:wrap; gap:12px; }
.article-content .wp-block-button__link { overflow-wrap:anywhere; }
.article-content>*,.article-content .wp-block-group { min-width:0; }
.article-sidebar { align-self:stretch; }
.article-sidebar__sticky { position:sticky; top:var(--article-sidebar-offset); max-height:calc(100dvh - var(--article-sidebar-offset) - 20px); overflow-y:auto; scrollbar-gutter:stable; padding-bottom:16px; display:flex; flex-direction:column; gap:16px; }
.article-sidebar__sticky>* { flex-shrink:0; }
.article-toc__item--h3 { margin-left:14px; font-size:14px; }
.article-toc__item--h3 { counter-increment:list-item 0; }
.article-toc__item--h3::marker { content:'• '; }
.review-notice { padding:10px 20px; text-align:center; color:#174c8f; background:#eef5ff; font-size:13px; }
.site-footer { margin-top:32px; }
.site-footer__grid { grid-template-columns:1.5fr 1fr 1fr; }
.site-footer__bottom { display:flex; flex-wrap:wrap; gap:20px; }
.blog-header__nav { scrollbar-width:thin; }
@media(max-width:1024px) { .related-posts__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .home-featured-section__layout { grid-template-columns:1fr; } .home-featured-side { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; } .blog-home-hero__grid { gap:24px; } .blog-home-hero__content h1 { font-size:40px; } .article-layout { grid-template-columns:minmax(0,1fr) 280px; gap:28px; } }
@media(max-width:1024px) {
    .blog-header__top { flex-wrap:wrap; }
    .blog-header__actions { position:static; flex-basis:100%; width:100%; margin-bottom:12px; box-shadow:none; }
}
@media(max-width:980px) { .article-layout { display:flex; flex-direction:column; } .article-sidebar { width:100%; } .article-sidebar__sticky { position:static; max-height:none; overflow:visible; padding:0; } .article-toc-desktop { display:none; } .article-toc-mobile { display:block; } }
@media(max-width:640px) {
    .site-container,.site-container-wide { width:calc(100% - 32px); }
    .blog-home-hero { padding:28px 0; } .blog-home-hero__grid { grid-template-columns:1fr; gap:16px; } .blog-home-hero__media { display:block; } .blog-home-hero__media img { max-height:180px; }
    .blog-home-hero__content h1 { font-size:36px; letter-spacing:-1px; } .blog-home-hero__lead { font-size:15px; margin-bottom:18px; }
    .blog-home-search { flex-wrap:wrap; } .blog-home-search input { min-width:140px; }
    .home-featured-main { grid-template-columns:1fr; padding:22px; gap:20px; } .home-featured-main__title { font-size:25px; } .home-featured-main__media { order:-1; } .home-featured-main__media img { max-height:200px; }
    .home-featured-main__excerpt { margin-bottom:18px; } .home-featured-section { padding-top:24px; }
    .home-featured-side-card { min-height:0; padding:18px; } .home-featured-side-card__image { flex-basis:88px; width:88px; }
    .post-card__body { padding:22px; } .article-card--text .post-card__body { padding:24px; } .post-card h3 { font-size:20px; }
    .home-featured-side { grid-template-columns:1fr; } .related-posts__grid { grid-template-columns:1fr; }
    .catalog-section { padding-top:28px; padding-bottom:32px; } .catalog-sort { width:100%; }
    .catalog-intro { padding:28px 0; } .catalog-intro h1 { font-size:30px; }
    .article-hero h1 { font-size:28px; } .article-content { font-size:16px; } .article-content h2 { font-size:24px; } .article-content h3 { font-size:21px; }
    .article-meta-panel { flex-wrap:wrap; gap:18px; } .article-meta-panel__items { flex-wrap:wrap; }
    .site-footer__grid { grid-template-columns:1fr; gap:28px; }
    .blog-header__product-link { display:none; }
    .blog-header__nav-wrap { display:none; }
    .nav-open .blog-header__nav-wrap { display:block; }
    .blog-header__nav { display:flex; flex-wrap:wrap; gap:8px 18px; padding-top:16px; padding-bottom:16px; overflow:visible; }
    .blog-header__nav a { white-space:normal; font-size:14px; }
}
