.pub-home-test {
    min-height: calc(100vh - 64px);
    padding: clamp(20px, 4vw, 36px) clamp(16px, 5vw, 40px) 48px;
}

.pub-home-test__header {
    max-width: 1180px;
    margin: 0 auto 22px;
}

.pub-home-test__kicker {
    margin: 0 0 8px;
    color: #9a1720;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pub-home-test__header h1 {
    margin: 0;
    color: #2f2f2f;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}


.pub-home-test__modules {
    max-width: 1180px;
    margin: 0 auto;
}

.pub-home-test__grid,
.pub-page__content-grid {
    margin: 0;
}

.pub-home-test__module {
    min-width: 0;
}

.pub-skin-modules__desktop {
    display: grid;
    gap: 22px;
    align-items: start;
}

.pub-skin-modules--1-2 .pub-skin-modules__desktop {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.pub-skin-modules--2-1 .pub-skin-modules__desktop {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.pub-skin-modules__pane {
    display: grid;
    gap: 22px;
    min-width: 0;
    align-items: start;
}

.pub-skin-modules__pane--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pub-skin-modules__pane--narrow {
    grid-template-columns: minmax(0, 1fr);
}

.pub-skin-modules__item {
    min-width: 0;
}

.pub-skin-modules__item--wide {
    grid-column: span 2;
}

.pub-skin-modules__mobile {
    display: none;
}

.pub-page {
    padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 52px) 56px;
}

.pub-page--missing {
    min-height: calc(100vh - 64px);
}

.pub-page__header {
    max-width: 960px;
    margin: 0 auto 28px;
}

.pub-page__kicker {
    margin: 0 0 10px;
    color: #9a1720;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pub-page__header h1 {
    margin: 0;
    color: #2f2f2f;
    font-size: clamp(2.1rem, 4vw, 3.8rem);
    line-height: 1.05;
}

.pub-page__lead {
    max-width: 720px;
    margin: 16px 0 0;
    color: #5d5853;
    font-size: 1.08rem;
    line-height: 1.6;
}

.pub-page__content {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.pub-block {
    border: 1px solid rgba(154, 23, 32, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 32px rgba(79, 45, 18, 0.07);
    overflow: hidden;
}

.pub-block--text {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.pub-block--image,
.pub-block--video {
    display: grid;
    gap: 0;
}

.pub-block__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.30), rgba(255, 255, 255, 0));
}

.pub-block__media img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    margin: 0;
}

.pub-block__media video {
    display: block;
    width: 100%;
    max-height: 520px;
    background: #000;
}

.pub-block__body {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.pub-block__header {
    margin-bottom: 18px;
}

.pub-block__header h2 {
    margin: 0;
    color: #333;
    font-size: 1.35rem;
}

.pub-richtext {
    color: #403c38;
    font-size: 1rem;
    line-height: 1.7;
}

.pub-richtext > *:first-child {
    margin-top: 0;
}

.pub-richtext > *:last-child {
    margin-bottom: 0;
}

.pub-richtext a {
    color: #0066cc;
    text-decoration: underline;
}

.pub-richtext a:hover {
    color: #004c99;
}

.pub-block__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 18px;
}

.pub-block__read-more {
    color: #9a1720;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.pub-block__read-more:hover {
    text-decoration: underline;
}

.pub-richtext h2,
.pub-richtext h3,
.pub-richtext h4 {
    color: #9a1720;
}

.pub-richtext img {
    max-width: 100%;
    height: auto;
}

.pub-richtext table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.pub-marketplace__select {
    position: relative;
    margin-top: 4px;
}

.pub-marketplace__select::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #4f4640;
    border-bottom: 2px solid #4f4640;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.pub-marketplace__select::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-left: 1px solid rgba(79, 70, 64, 0.35);
    border-radius: 0 4px 4px 0;
    background: #f5f2ef;
    content: "";
    pointer-events: none;
}

.pub-marketplace__select select {
    width: 100%;
    height: 40px;
    padding: 0 48px 0 12px;
    border: 1px solid rgba(79, 70, 64, 0.55);
    border-radius: 4px;
    background: #fff;
    color: #403c38;
    cursor: pointer;
    font: inherit;
    appearance: none;
}

.pub-marketplace__select select:focus-visible {
    border-color: #9a1720;
    outline: 2px solid rgba(154, 23, 32, 0.18);
    outline-offset: 1px;
}

.pub-block--blog-archive {
    padding: 24px;
}

.pub-blog-archive {
    display: grid;
    gap: 14px;
}

.pub-blog-archive__paper {
    padding: clamp(18px, 3vw, 30px);
    border-color: rgba(79, 70, 64, 0.28) !important;
    overflow-wrap: anywhere;
}

.pub-blog-archive__item {
    display: grid;
    gap: 22px;
    align-items: start;
}

.pub-blog-archive__header h3 {
    margin: 4px 0 0;
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.pub-blog-archive__header a {
    color: #2f2f2f;
    text-decoration: none;
}

.pub-blog-archive__header a:hover {
    color: #9a1720;
    text-decoration: underline;
}

.pub-blog-archive__media {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 64, 0.22);
    border-radius: 8px;
    background: #f5f2ef;
    aspect-ratio: 16 / 9;
}

.pub-blog-archive__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-blog-archive__body {
    font-size: 1.06rem;
    overflow-wrap: anywhere;
}

.pub-blog-post {
    display: grid;
    grid-template-columns: minmax(0, 860px) minmax(220px, 300px);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.pub-blog-post__sidebar {
    position: sticky;
    top: 84px;
    min-width: 0;
}

.pub-blog-post__article {
    min-width: 0;
    max-width: 860px;
    margin: 0 auto;
}

.pub-blog-post__paper {
    min-width: 0;
    padding: clamp(18px, 3vw, 30px);
    border-color: rgba(79, 70, 64, 0.28) !important;
    overflow-wrap: anywhere;
}

.pub-blog-post__header {
    margin-bottom: 24px;
}

.pub-blog-post__image {
    overflow: hidden;
    margin: 0 0 26px;
    border: 1px solid rgba(79, 70, 64, 0.22);
    border-radius: 8px;
    background: #f5f2ef;
}

.pub-blog-post__image img {
    display: block;
    width: 100%;
    max-height: 540px;
    object-fit: cover;
}

.pub-blog-post__body {
    font-size: 1.06rem;
    overflow-wrap: anywhere;
}

.pub-block--blog-links {
    padding: 20px;
}

.pub-blog-links {
    display: grid;
    gap: 0;
}

.pub-blog-links__link {
    display: grid;
    gap: 2px;
    padding: 12px 0;
    border-top: 1px solid rgba(79, 70, 64, 0.14);
    color: #9a1720;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.pub-marketplace__advert-anchor {
    scroll-margin-top: 64px;
}


.pub-blog-links__link:first-child {
    border-top: 0;
    padding-top: 0;
}

.pub-blog-links__link:hover span {
    text-decoration: underline;
}

.pub-blog-links__link span {
    font-weight: 700;
    line-height: 1.35;
}

.pub-blog-links__link small {
    color: #5d5853;
}

.pub-block--blog-latest {
    padding: 20px;
}

.pub-blog-latest__main {
    display: grid;
    gap: 14px;
}

.pub-blog-latest__media {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 64, 0.22);
    border-radius: 6px;
    background: #f5f2ef;
    aspect-ratio: 16 / 9;
}

.pub-blog-latest__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-blog-latest__content h3 {
    margin: 4px 0 8px;
    font-size: 1.18rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.pub-blog-latest__content a,
.pub-blog-latest__more a {
    color: #9a1720;
    text-decoration: none;
}

.pub-blog-latest__content a:hover,
.pub-blog-latest__more a:hover {
    text-decoration: underline;
}

.pub-blog-latest__content p {
    margin: 0;
    color: #403c38;
    line-height: 1.55;
}

.pub-blog-latest__more {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(79, 70, 64, 0.14);
}

.pub-blog-latest__more a {
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}


@media (max-width: 959.98px) {
    .pub-skin-modules__desktop {
        display: none;
    }

    .pub-skin-modules__mobile {
        display: grid;
        gap: 18px;
    }
}

@media (max-width: 900px) {
    .pub-page {
        padding-top: 22px;
    }

    .pub-blog-post {
        grid-template-columns: minmax(0, 1fr);
        width: auto;
        padding: 18px 12px 36px;
    }

    .pub-blog-post__article {
        order: 1;
    }

    .pub-blog-post__paper {
        padding: 16px;
    }

    .pub-blog-post__header h1 {
        font-size: 1.75rem;
        line-height: 1.12;
    }

    .pub-blog-post__body {
        font-size: 1rem;
    }

    .pub-blog-archive__paper {
        padding: 16px;
    }

    .pub-blog-archive__header h3 {
        font-size: 1.75rem;
        line-height: 1.12;
    }

    .pub-blog-archive__body {
        font-size: 1rem;
    }

    .pub-blog-post__sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 640px) {
    .pub-blog-archive__item {
        grid-template-columns: minmax(0, 1fr);
    }
}
