/* CMS copy keeps the same 1260px outer grid as the Q-paint header. */
.pg-page-copy {
    padding: clamp(36px, 4.5vw, 64px) 0 clamp(48px, 6vw, 80px);
}

.pg-page-copy > .cont {
    max-width: 1260px;
}

.pg-page-copy .pg-rich-content.text_block {
    width: 100%;
    max-width: 860px;
    margin: 0;
}

/* Compatibility with category descriptions rendered by the earlier wrapper. */
.pg-page-copy > .cont.text_block {
    max-width: 1260px;
}

.pg-page-copy > .cont.text_block > * {
    max-width: 860px;
}

.pg-content-page .pg-rich-content::before {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-bottom: 28px;
    border-radius: 2px;
    background: #ffc800;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) {
    color: #454954;
    font-family: var(--font_family);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block)::after {
    content: "";
    display: block;
    clear: both;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) > :first-child {
    margin-top: 0;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) > :last-child {
    margin-bottom: 0;
}

.pg-content-page .pg-rich-content > p:first-child {
    color: #232732;
    font-size: 18px;
    line-height: 1.8;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(h1, h2, h3, h4, h5, h6) {
    color: #232732;
    margin: 36px 0 16px;
    font-family: var(--font_family);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: pretty;
    scroll-margin-top: 28px;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h1 { font-size: 34px; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h2 { font-size: 30px; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h3 { font-size: 25px; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h4 { font-size: 22px; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h5 { font-size: 19px; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h6 { font-size: 17px; }

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(p, ul, ol, dl, blockquote, pre, figure, table) {
    margin: 0 0 24px;
    font-size: inherit;
    line-height: inherit;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(strong, b) {
    color: #232732;
    font-weight: 600;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) a {
    color: #856100;
    border: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .2s ease;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) a:hover {
    color: #232732;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(ul, ol) {
    padding-left: 26px;
    overflow: visible;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) ul { list-style: disc; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) ol { list-style: decimal; }

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) li {
    position: static;
    display: list-item;
    padding-left: 5px;
    margin: 8px 0 0;
    list-style: inherit;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) li + li { margin-top: 8px; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) li::before { content: none; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) li::marker { color: #a47b00; font-weight: 600; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) li > :is(ul, ol) { margin: 10px 0 14px; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) li > p { margin-bottom: 10px; }

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) blockquote {
    padding: 20px 24px;
    color: #383b44;
    border-left: 4px solid #ffc800;
    border-radius: 0 8px 8px 0;
    background: #fff9e5;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) blockquote > :last-child { margin-bottom: 0; }

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 15px;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) caption {
    padding: 0 0 12px;
    color: #232732;
    font-weight: 600;
    text-align: left;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(th, td) {
    min-width: 120px;
    padding: 14px 18px;
    vertical-align: top;
    text-align: left;
    border: 1px solid #e3e3df;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) th { color: #232732; font-weight: 600; background: #fff8dc; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) tbody tr:nth-child(even) td { background: #fafaf8; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(th, td) > :last-child { margin-bottom: 0; }

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(img, video, iframe) {
    max-width: 100%;
    border-radius: 8px;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) img {
    display: block;
    height: auto !important;
    margin: 24px 0;
}

:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) figure img { margin: 0; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) figcaption { margin-top: 10px; color: #747781; font-size: 14px; line-height: 1.6; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(pre, code) { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875em; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) pre { max-width: 100%; padding: 20px; overflow-x: auto; color: #333844; background: #f5f5f2; border: 1px solid #e5e5df; border-radius: 8px; white-space: pre; }
:is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) hr { height: 1px; margin: 36px 0; border: 0; background: #e4e4df; }

/* Article imagery stays complete; the centered copy has a comfortable line length. */
.pg-post-page .pg-article,
.pg-post-page .pg-article-footer { width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; }
.pg-post-page .pg-article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid #e4e9ef; }
.pg-post-page .pg-article-index { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; color: #856100; font-size: 14px; font-weight: 600; text-decoration: none; }
.pg-post-page .pg-article-index:hover { color: #232c3e; text-decoration: underline; text-underline-offset: 4px; }
.pg-post-page .pg-post-date { display: inline-flex; align-items: center; min-height: 24px; padding-left: 23px; color: #687386; font-size: 14px; line-height: 1.5; background: url(../images/ic_date.svg) left center / 14px 14px no-repeat; }
.pg-post-page .pg-post-visual { margin: 0 0 36px; padding: 10px; border: 1px solid #e4e9ef; border-radius: 12px; background: #f6f8fb; }
.pg-post-page .pg-post-image { display: block; width: 100%; max-width: 100% !important; height: auto; max-height: 540px; margin: 0; border-radius: 7px; object-fit: contain; }
.pg-post-page .pg-rich-content.text_block { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.85; }
.pg-post-page .pg-rich-content > p:first-child { color: #232c3e; font-size: 19px; line-height: 1.8; }
.pg-post-page .pg-article-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e4e9ef; }
.pg-post-page .pg-article-footer .pg-back { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; margin: 0; padding: 10px 0; color: #383229; font-size: 15px; font-weight: 600; text-decoration: none; }
.pg-post-page .pg-article-footer .pg-back:hover { color: #856100; }
.page_head:has(+ .pg-post-page) .page_title { max-width: 1060px; overflow-wrap: anywhere; text-wrap: balance; }

/* Full-width editorial cards work with one publication or a growing archive. */
.pg-blog-page { padding: clamp(36px, 4.5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.pg-blog-page .pg-blog-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pg-blog-page .pg-blog-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); min-width: 0; border: 1px solid #e4e9ef; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(35, 44, 62, .04); transition: box-shadow .2s ease, border-color .2s ease; }
.pg-blog-page .pg-blog-card:hover,
.pg-blog-page .pg-blog-card:focus-within { border-color: #d8c57d; box-shadow: 0 10px 30px rgba(35, 44, 62, .08); }
.pg-blog-page .pg-blog-card--text { grid-template-columns: minmax(0, 1fr); }
.pg-blog-page .pg-blog-card__image { position: relative; display: block; min-width: 0; min-height: 310px; overflow: hidden; border-radius: 11px 0 0 11px; background: #f6f8fb; }
.pg-blog-page .pg-blog-card__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-blog-page .pg-blog-card__image:focus-visible { outline-offset: -5px; }
.pg-blog-page .pg-blog-card__content { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; padding: clamp(26px, 3.2vw, 42px); }
.pg-blog-page .pg-blog-card__date { display: inline-flex; align-items: center; min-height: 22px; padding-left: 23px; color: #687386; font-size: 14px; line-height: 1.5; background: url(../images/ic_date.svg) left center / 14px 14px no-repeat; }
.pg-blog-page .pg-blog-card__title { margin: 0; color: #232c3e; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; text-wrap: pretty; }
.pg-blog-page .pg-blog-card__title a { color: inherit; text-decoration: none; }
.pg-blog-page .pg-blog-card__title a:hover { color: #856100; }
.pg-blog-page .pg-blog-card__summary { width: 100%; color: #596172; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.pg-blog-page .pg-blog-card__summary :is(p, ul, ol, blockquote) { margin: 0 0 12px; font: inherit; }
.pg-blog-page .pg-blog-card__summary > :last-child { margin-bottom: 0; }
.pg-blog-page .pg-blog-card__summary :is(ul, ol) { padding-left: 22px; }
.pg-blog-page .pg-blog-card__summary img { max-width: 100%; height: auto; }
.pg-blog-page .pg-blog-card__summary a { color: #856100; text-decoration: underline; text-underline-offset: 3px; }
.pg-blog-page .pg-blog-card__more { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; margin-top: auto; padding: 11px 20px; border: 1px solid #ffc800; border-radius: 7px; background: #ffc800; color: #232c3e; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.pg-blog-page .pg-blog-card__more:hover { border-color: #e5b300; background: #ffe164; }
.pg-blog-page .pg-blog-pagination { margin-top: 32px; }
.pg-blog-page .pg-blog-empty { padding: 32px; color: #595e69; border: 1px solid #e6e5df; border-left: 4px solid #ffc800; border-radius: 8px; background: #fcfcf9; line-height: 1.7; }

/* Contact details and the form use one clear, responsive grid. */
.section_contacts { margin-top: 0; padding: clamp(36px, 4.5vw, 64px) 0; }
.section_contacts .cont { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.section_contacts .cont .col { width: auto; min-width: 0; }
.section_contacts .cont .col + .col { margin-top: 0; }
.section_contacts .boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 28px; }
.section_contacts .boxes .box { width: auto; min-width: 0; margin: 0; padding-left: 24px; }
.section_contacts .boxes .box.big { width: auto; grid-column: 1 / -1; }
.section_contacts .boxes .box .title { margin-bottom: 6px; font-size: 17px; line-height: 1.5; }
.section_contacts .boxes :is(.desc, .link) { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.section_contacts .boxes a:hover { color: #856100; text-decoration: underline; text-underline-offset: 4px; }
.section_contacts .form .box_flex { margin-top: 24px; }
.section_contacts .form .agree { width: 100%; }
.section_contacts .form .agree .check_text { line-height: 1.6; }
.section_contacts .form :is(input, textarea):focus { border-color: #b38b00; box-shadow: 0 0 0 3px rgba(255, 200, 0, .16); }
.section_contacts + .section_map { margin-top: 0; }
.section_contacts + .section_map .map { height: 440px; }
.section_contacts + .section_map iframe { height: 100%; min-height: 100%; }

:is(.pg-rich-content, .pg-article-footer, .pg-blog-page, .section_contacts) a:focus-visible {
    outline: 2px solid #b18700;
    outline-offset: 4px;
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .pg-blog-page .pg-blog-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
    .pg-blog-page .pg-blog-card--text { grid-template-columns: minmax(0, 1fr); }
    .pg-blog-page .pg-blog-card__content { gap: 16px; padding: 28px; }
    .section_contacts .cont { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

@media (max-width: 767px) {
    .pg-page-copy,
    .pg-blog-page { padding: 30px 0 44px; }
    .pg-content-page .pg-rich-content::before { width: 48px; margin-bottom: 22px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) { font-size: 16px; line-height: 1.75; }
    .pg-content-page .pg-rich-content > p:first-child { font-size: 17px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(h1, h2, h3, h4, h5, h6) { margin: 28px 0 14px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h1 { font-size: 28px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h2 { font-size: 25px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h3 { font-size: 22px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h4 { font-size: 20px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h5 { font-size: 18px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) h6 { font-size: 16px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(p, ul, ol, dl, blockquote, pre, figure, table) { margin-bottom: 20px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) blockquote { padding: 16px 18px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) :is(th, td) { padding: 12px 14px; }
    :is(.pg-rich-content, .pg-page-copy > .cont.text_block, .description .tab_content .text_block) img:is(.left, .right) { float: none; width: auto; max-width: 100%; margin: 20px 0; }
    .pg-post-page .pg-post-visual { margin-bottom: 26px; padding: 6px; }
    .pg-post-page .pg-article-meta { margin-bottom: 20px; padding-bottom: 16px; }
    .pg-post-page .pg-rich-content.text_block { font-size: 16px; line-height: 1.8; }
    .pg-post-page .pg-rich-content > p:first-child { font-size: 17px; }
    .pg-post-page .pg-article-footer { margin-top: 28px; padding-top: 18px; }
    .pg-blog-page .pg-blog-list { gap: 24px; }
    .pg-blog-page .pg-blog-card { grid-template-columns: minmax(0, 1fr); }
    .pg-blog-page .pg-blog-card__image { min-height: 0; aspect-ratio: 16 / 10; border-radius: 11px 11px 0 0; }
    .pg-blog-page .pg-blog-card__content { gap: 16px; padding: 24px; }
    .pg-blog-page .pg-blog-card__title { font-size: 24px; }
    .pg-blog-page .pg-blog-card__summary { font-size: 15px; }
    .section_contacts { padding: 30px 0 40px; }
    .section_contacts .cont { gap: 36px; }
    .section_contacts .boxes { gap: 24px 20px; margin-top: 24px; }
    .section_contacts + .section_map .map { height: 340px; }
}

@media (max-width: 560px) {
    .section_contacts .boxes { grid-template-columns: minmax(0, 1fr); }
    .pg-blog-page .pg-blog-card__content { padding: 22px 20px; }
    .pg-blog-page .pg-blog-card__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-blog-page .pg-blog-card,
    .pg-blog-page .pg-blog-card__more { transition: none; }
}
