/* BLOG-06. Editorial layouts are scoped; shared cards on accepted pages keep their composition. */
.blog-page,.article-page{padding-top:calc(var(--header-offset) + 30px)}.blog-page{padding-bottom:25px}.blog-page .breadcrumbs,.article-page .breadcrumbs{display:flex;flex-wrap:wrap;gap:9px;font-size:14px;line-height:1.6;color:var(--muted);margin-bottom:30px}.article-page .breadcrumbs>span:last-child{max-width:750px}.blog-heading{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:end;margin-bottom:38px}.blog-heading h1{font-size:clamp(43px,5vw,70px);line-height:1.05;font-weight:400;letter-spacing:-.04em}.blog-heading .eyebrow{color:var(--green);margin-bottom:16px}.blog-heading>p{font-size:20px;line-height:1.6;color:var(--muted);max-width:530px}.blog-archive-meta{display:flex;justify-content:space-between;gap:20px;padding-block:20px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}.blog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:45px 30px}.blog-card{min-width:0}.blog-card-link{height:100%;display:flex;flex-direction:column}.blog-card-image{aspect-ratio:4/3;border-radius:25px;overflow:hidden;background:#edf1e8;position:relative}.blog-card-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--crop-x,50%) var(--crop-y,50%);transition:transform .4s ease}.blog-card-copy{padding:22px 3px 0;display:flex;flex-direction:column;align-items:start;flex:1}.blog-card-copy time{font-size:13px;color:var(--muted);margin-bottom:13px}.blog-card h2{font-size:26px;line-height:1.25;letter-spacing:-.015em;font-weight:400;text-wrap:pretty;overflow-wrap:anywhere}.blog-card-copy>p{font-size:16px;line-height:1.6;color:var(--muted);margin-top:15px}.blog-card-action{display:flex;align-items:center;gap:16px;color:var(--green-dark);font-size:15px;margin-top:auto;padding-top:22px;min-height:44px}.blog-card-link:hover .blog-card-image img{transform:scale(1.025)}.blog-card-link:hover h2{color:var(--green-dark)}.blog-card-link:focus-visible{border-radius:25px;outline:2px solid var(--green);outline-offset:5px}.blog-card-featured{grid-column:1/-1;margin-bottom:6px}.blog-card-featured .blog-card-link{display:grid;grid-template-columns:minmax(0,57fr) minmax(0,43fr);background:#f0f4eb;border-radius:30px;overflow:hidden}.blog-card-featured .blog-card-image{border-radius:0;aspect-ratio:1.7;min-height:400px;height:100%}.blog-card-featured .blog-card-copy{padding:42px 42px 36px}.blog-card-featured h2{font-size:clamp(28px,2.8vw,40px);line-height:1.15;letter-spacing:-.025em}.blog-card-featured .blog-card-copy>p{font-size:18px;max-width:480px}.blog-card-featured time{margin-bottom:22px}.blog-noimage{display:flex;align-items:center;justify-content:space-between;gap:20px;height:100%;padding:35px;color:#83a18b;background:linear-gradient(120deg,#edf3e8,#f6f7f1)}.blog-noimage>span{font-size:clamp(45px,5vw,72px);font-weight:400;letter-spacing:-.04em;color:#61866c}.blog-pagination{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:65px}.blog-pagination a{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:10px 17px;border:1px solid var(--line);border-radius:999px;font-size:16px;gap:18px}.blog-pagination a[aria-current]{background:var(--green);color:white;border-color:var(--green)}.blog-pagination a:hover{border-color:var(--green)}.blog-pagination .blog-next{margin-left:16px}.blog-empty{margin-block:40px}.article-heading{max-width:1100px;margin:0 auto 38px}.article-meta{display:flex;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:14px;margin-bottom:22px}.article-meta>span{color:var(--green)}.article-heading h1{font-size:clamp(36px,4.3vw,62px);line-height:1.12;letter-spacing:-.035em;font-weight:400;text-wrap:balance;overflow-wrap:anywhere}.article-cover{display:block;max-width:1100px;position:relative;margin:auto;background:#edf1e8;border-radius:30px;overflow:hidden;aspect-ratio:1.9}.article-cover>img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--crop-x,50%) var(--crop-y,50%)}.article-cover-zoom{position:absolute;right:22px;bottom:22px;width:44px;height:44px;display:grid;place-items:center;background:#fffffff0;border-radius:50%;color:var(--green);font-size:25px}.article-reading{width:calc(100% - 2*var(--gutter));max-width:780px;margin:50px auto 0}.article-content{font-size:19px;line-height:1.8;color:var(--ink);overflow-wrap:break-word}.article-content>p,.article-content>ul,.article-content>ol,.article-content>blockquote{margin-bottom:25px}.article-content p:empty{display:none}.article-content h2{font-size:34px;line-height:1.22;font-weight:400;letter-spacing:-.025em;margin:48px 0 24px;scroll-margin-top:calc(var(--header-offset) + 25px)}.article-content h3{font-size:27px;line-height:1.3;font-weight:400;margin:34px 0 18px}.article-content h4{font-size:23px;line-height:1.35;margin:28px 0 16px}.article-content ul,.article-content ol{padding-left:27px}.article-content li{margin-bottom:12px;padding-left:5px}.article-content li::marker{color:var(--green)}.article-content li p{margin:0}.article-content a:not([data-photo]){color:var(--green-dark);text-decoration:underline;text-decoration-color:#7aaa8b;text-underline-offset:4px}.article-content a:not([data-photo]):hover{text-decoration-color:var(--green-dark)}.article-content blockquote{border-left:3px solid #8bb294;padding:10px 0 10px 25px;color:#4e6655}.article-content img{max-width:100%;height:auto;display:block}.article-content figure{margin:35px 0}.article-content .wp-block-image{width:100%;margin:35px auto}.article-content .wp-block-image img{width:auto;max-width:100%;max-height:650px;object-fit:contain;margin:auto;border-radius:22px}.article-content .wp-block-image>a{display:block}.article-content .wp-block-gallery{width:min(1100px,calc(100vw - 2*var(--gutter) - 16px));position:relative;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-block:40px}.article-content .wp-block-gallery:has(>figure:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}.article-content .wp-block-gallery .wp-block-image{margin:0;width:100%;min-width:0;display:flex;flex-direction:column;justify-content:center}.article-content .wp-block-gallery img{height:auto;max-height:560px;width:100%;object-fit:contain;background:#f3f5ef}.article-content figcaption{font-size:14px;line-height:1.5;color:var(--muted);margin-top:12px}.article-content iframe{max-width:100%}.article-toc{border-block:1px solid var(--line);margin-bottom:35px;font-size:16px}.article-toc summary{padding:18px 0;display:flex;justify-content:space-between;cursor:pointer;list-style:none;gap:20px}.article-toc summary::-webkit-details-marker{display:none}.article-toc summary span{color:var(--green);font-size:23px}.article-toc[open] summary span{transform:rotate(45deg)}.article-toc ol{padding-left:25px;margin:0 0 22px}.article-toc li{margin-block:10px}.article-toc a{color:var(--green-dark)}.article-back{margin-top:35px;display:inline-flex}.article-invite{margin-top:85px;display:flex;align-items:center;justify-content:space-between;gap:50px;padding-block:40px;border-block:1px solid var(--line)}.article-invite h2{font-size:clamp(28px,3vw,40px);line-height:1.2;font-weight:400;letter-spacing:-.025em;max-width:770px}.article-invite .eyebrow{color:var(--green);margin-bottom:16px}.article-invite p:not(.eyebrow){font-size:17px;line-height:1.6;color:var(--muted);margin-top:18px;max-width:680px}.article-invite .button{flex-shrink:0;font-size:16px}.article-related{margin-top:70px}.article-related>.section-heading{margin-bottom:35px}.article-related>.section-heading h2{font-size:38px;font-weight:400;line-height:1.2;letter-spacing:-.025em}
@media(max-width:1100px){.blog-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px 25px}.blog-card-featured .blog-card-link{grid-template-columns:1fr 1fr}.blog-card-featured .blog-card-copy{padding:28px}.blog-card-featured .blog-card-image{min-height:390px}.blog-card-featured h2{font-size:30px}.blog-card-featured .blog-card-copy>p{font-size:16px}.blog-card h2{font-size:25px}.blog-heading{gap:45px}.article-invite{gap:30px}.article-invite .button{font-size:15px;padding-inline:20px}.article-related .blog-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.article-related .blog-card h2{font-size:23px}}
@media(max-width:700px){.blog-page,.article-page{padding-top:calc(var(--header-offset) + 20px)}.blog-page .breadcrumbs,.article-page .breadcrumbs{font-size:13px;gap:7px;margin-bottom:24px}.article-page .breadcrumbs>span:last-child{flex-basis:100%;margin-top:3px}.blog-heading{grid-template-columns:1fr;gap:20px;margin-bottom:28px}.blog-heading h1{font-size:44px}.blog-heading>p{font-size:18px}.blog-heading .eyebrow{font-size:11px;margin-bottom:14px}.blog-archive-meta{font-size:13px;padding-block:16px}.blog-cards,.article-related .blog-cards{grid-template-columns:1fr;gap:36px}.blog-card-featured .blog-card-link{display:flex}.blog-card-featured .blog-card-image{min-height:0;aspect-ratio:1.4;width:100%;border-radius:0}.blog-card-featured .blog-card-copy{padding:25px 22px 28px}.blog-card-featured h2{font-size:28px}.blog-card-featured time{margin-bottom:16px}.blog-card-image{border-radius:23px}.blog-card-image img,.article-cover img{object-position:var(--mobile-x,50%) var(--mobile-y,50%)}.blog-card-copy{padding-top:20px}.blog-card h2,.article-related .blog-card h2{font-size:25px}.blog-card-copy>p{font-size:16px;margin-top:14px}.blog-card-action{padding-top:17px}.blog-pagination{gap:9px;margin-top:40px}.blog-pagination a{min-width:42px;min-height:44px;padding-inline:13px}.blog-pagination .blog-next{margin-left:0;width:100%;margin-top:9px}.blog-noimage>span{font-size:64px}.article-heading{margin-bottom:28px}.article-heading h1{font-size:37px;line-height:1.15}.article-meta{font-size:13px;gap:15px;margin-bottom:20px}.article-cover{aspect-ratio:1.25;border-radius:24px}.article-cover-zoom{right:17px;bottom:17px}.article-reading{margin-top:32px}.article-content{font-size:17px;line-height:1.75}.article-content h2{font-size:29px;margin:36px 0 21px}.article-content h3{font-size:24px;margin:28px 0 17px}.article-content h4{font-size:21px}.article-content>p,.article-content>ul,.article-content>ol{margin-bottom:22px}.article-content ul,.article-content ol{padding-left:23px}.article-content li{padding-left:2px;margin-bottom:11px}.article-content .wp-block-gallery,.article-content .wp-block-gallery:has(>figure:nth-child(3):last-child){width:100%;left:auto;transform:none;grid-template-columns:1fr;gap:20px;margin-block:30px}.article-content .wp-block-image{margin-block:28px}.article-content .wp-block-image img{max-height:580px;border-radius:20px}.article-toc{font-size:15px}.article-invite{display:block;margin-top:55px;padding-block:32px}.article-invite h2{font-size:29px}.article-invite .button{margin-top:24px;font-size:15px;width:100%}.article-related{margin-top:50px}.article-related>.section-heading{display:block}.article-related>.section-heading h2{font-size:32px}.article-related>.section-heading .text-link{margin-top:20px}}
@media(max-width:360px){.blog-heading h1{font-size:40px}.blog-card h2,.article-related .blog-card h2{font-size:23px}.blog-card-featured h2{font-size:26px}.article-heading h1{font-size:32px}.article-content h2{font-size:27px}.article-invite h2{font-size:27px}.article-invite .button{padding-inline:13px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.blog-card-image img{transition:none}.blog-card-link:hover .blog-card-image img{transform:none}}
html:not(.js) .blog-page,html:not(.js) .article-page{padding-top:25px}
.article-content .article-missing-image{font-size:14px;line-height:1.6;color:var(--muted);padding:20px 23px;border:1px dashed #cbd8c8;border-radius:18px;background:#f7f9f3;margin-block:30px}
/* Let the featured media shrink within the tablet grid instead of clipping its text. */
.blog-card-featured .blog-card-image,.blog-card-featured .blog-card-copy{min-width:0}
@media(min-width:701px) and (max-width:1100px){.blog-card-featured .blog-card-image{aspect-ratio:auto}}
/* BLOG-19: grid owns the columns. Core gallery percentages must not size a grid item again.
   Core also uses ID and child-count selectors. Override only item width inside articles. */
.article-page .article-content .wp-block-gallery{display:grid;align-items:start;--wp--style--unstable-gallery-gap:20px}
.article-page .article-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.article-page .article-content .wp-block-gallery .blocks-gallery-item{width:100%!important;max-width:100%;flex:none;margin:0;min-width:0;align-self:start}
.article-page .article-content .wp-block-gallery .blocks-gallery-grid{display:contents;list-style:none;padding:0;margin:0}
.article-page .article-content .wp-block-gallery .blocks-gallery-item>figure{margin:0;height:auto;display:flex;flex-direction:column}
.article-page .article-content .wp-block-gallery figure.wp-block-image,
.article-page .article-content .wp-block-gallery .blocks-gallery-item>figure{justify-content:flex-start}
.article-page .article-content .wp-block-gallery a{display:block;width:100%;height:auto;flex:none}
.article-page .article-content .wp-block-image img,
.article-page .article-content .wp-block-gallery.has-nested-images figure.wp-block-image img,
.article-page .article-content .wp-block-gallery .blocks-gallery-item img{height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;flex:none}
.article-page .article-content .wp-block-gallery img{width:100%;background:none}
.article-page .article-content .wp-block-gallery figure.wp-block-image figcaption,
.article-page .article-content .wp-block-gallery .blocks-gallery-item figcaption,
.article-page .article-content .wp-block-gallery>.blocks-gallery-caption{position:static;inset:auto;transform:none;max-height:none;overflow:visible;background:none;padding:0;color:var(--muted);width:100%;margin:12px 0 0;text-align:left;font-size:14px;line-height:1.6;flex:auto}
.article-page .article-content .wp-block-gallery>.blocks-gallery-caption{grid-column:1/-1}
.article-page .article-content .wp-block-gallery.columns-1{grid-template-columns:1fr;max-width:780px}
.article-page .article-content .wp-block-gallery:is(.columns-3,.columns-4,.columns-5,.columns-6,.columns-7,.columns-8){grid-template-columns:repeat(3,minmax(0,1fr))}
.article-page .article-content .wp-block-gallery.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.article-page .article-content .wp-block-gallery:has(>figure:only-of-type){grid-template-columns:1fr;max-width:780px}
@media(min-width:701px) and (max-width:900px){.article-page .article-content .wp-block-gallery:not(.columns-1){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.article-page .article-content .wp-block-gallery[class]{grid-template-columns:1fr;gap:24px}.article-page .article-content .wp-block-gallery figure.wp-block-image:not(#individual-image){width:100%}}
.article-service-link{display:inline-flex;margin-top:20px;min-height:44px;align-items:center}
.article-toc summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:5px}

/* Classic WordPress gallery shortcodes share article geometry, never project galleries. */
.article-page .article-content .gallery{width:min(1100px,calc(100vw - 2*var(--gutter) - 16px));position:relative;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin-block:40px}
.article-page .article-content .gallery .gallery-item{width:100%!important;float:none;margin:0;min-width:0}
.article-page .article-content .gallery img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;border:0;border-radius:22px}
.article-page .article-content .gallery .gallery-caption{position:static;margin-top:12px;font-size:14px;line-height:1.6;color:var(--muted)}
.article-page .article-content .gallery>br{display:none}
.article-page .article-content .gallery:is(.gallery-columns-3,.gallery-columns-4,.gallery-columns-5,.gallery-columns-6,.gallery-columns-7,.gallery-columns-8,.gallery-columns-9){grid-template-columns:repeat(3,minmax(0,1fr))}
.article-page .article-content .gallery.gallery-columns-1{grid-template-columns:1fr;max-width:780px}
@media(min-width:701px) and (max-width:900px){.article-page .article-content .gallery:not(.gallery-columns-1){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.article-page .article-content .gallery[class]{width:100%;left:auto;transform:none;grid-template-columns:1fr;gap:24px;margin-block:30px}}
.article-page .article-content .wp-block-table{width:100%;overflow-x:auto;margin:30px 0}
.article-content table{display:table;border-collapse:collapse;width:100%;min-width:560px;table-layout:auto;font-size:16px;line-height:1.55}
.article-content table thead{display:table-header-group}.article-content table tbody{display:table-row-group}
.article-content table tr{display:table-row;width:auto!important}
.article-content table th,.article-content table td{display:table-cell;width:auto!important;text-align:left;vertical-align:top;border:0;border-bottom:1px solid var(--line);padding:14px 10px;min-width:110px}
.article-content table td:before{content:none}.article-content table thead th:first-child,.article-content table tbody th{width:auto;padding-left:10px}
.article-content .wp-block-table:focus-visible{outline:2px solid var(--green);outline-offset:4px}
@media(max-width:700px){.article-content .wp-block-table:before{content:"Таблица прокручивается вправо →";display:block;font-size:13px;color:var(--muted);margin-bottom:10px}}
.article-content th{font-weight:600}.article-content caption{display:table-caption;caption-side:top;text-align:left;font-weight:600;margin-bottom:12px}
.article-page .article-content .article-update{font-size:14px;color:var(--muted)}
.article-content .article-next .button{white-space:normal;text-align:left;max-width:100%;box-sizing:border-box}
.article-content .article-next .button-green{color:#fff;text-decoration:none}

/* Compact task navigation uses the site's existing colour and spacing tokens. */
.blog-guides{margin:38px 0 32px;padding:28px;background:#f0f4eb;border-radius:25px}.blog-guides .section-heading{margin-bottom:22px}.blog-guides h2{font-size:clamp(25px,3vw,34px);font-weight:400;line-height:1.2}.blog-guides-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.blog-guides-grid a{display:block;min-width:0;border-top:1px solid var(--line);padding-top:18px;border-radius:3px}.blog-guides h3{font-size:21px;line-height:1.25;font-weight:400;color:var(--green-dark)}.blog-guides p{margin-top:12px;font-size:15px;line-height:1.55;color:var(--muted)}.blog-guides a:focus-visible{outline:2px solid var(--green);outline-offset:6px}.blog-card-copy .article-date-updated{font-size:13px;color:var(--green-dark);margin:-4px 0 13px}.blog-card-copy .article-date-updated time{color:inherit;margin:0}.article-meta .article-date-updated{color:var(--green-dark)}
@media(max-width:1000px){.blog-guides-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.blog-guides{padding:23px 20px}.blog-guides-grid{grid-template-columns:1fr;gap:20px}.blog-guides h3{font-size:21px}.blog-guides p{margin-top:8px}}
