.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;
}


@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;
    }
}
