.river-test-page .river-test-content-wrap {
    width: 100%;
    max-width: none;
}

.river-test-page .river-test-logo-link {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.river-test-page .river-test-main-categories {
    margin-bottom: 18px;
}

.river-hero {
    position: relative;
    min-height: 390px;
    margin: 0 0 22px;
    overflow: hidden;
    border-radius: 16px;
    background-image: var(--river-hero-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
    isolation: isolate;
}

.river-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(8, 8, 8, .93) 0%, rgba(8, 8, 8, .82) 38%, rgba(8, 8, 8, .32) 68%, rgba(8, 8, 8, .08) 100%);
}

.river-hero-content {
    display: flex;
    min-height: 390px;
    width: min(690px, 64%);
    padding: 38px 44px 30px;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.river-hero-title {
    margin: 0 0 13px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -.02em;
    text-transform: none;
}

.river-hero-description {
    max-width: 590px;
    margin: 0;
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    line-height: 1.45;
}

.river-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 28px 0 24px;
}

.river-benefit {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.river-benefit-icon {
    display: inline-flex;
    width: 34px;
    min-width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #d5a54e;
}

.river-benefit-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.river-benefit-icon img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.river-benefit-text {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.river-hero-cta {
    width: fit-content;
    max-width: 100%;
}

.river-hero-button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 28px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: linear-gradient(135deg, #9e5d42 0%, #79402f 100%);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.river-hero-button:hover,
.river-hero-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .32);
    filter: brightness(1.08);
}

.river-hero-note {
    margin-top: 7px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.35;
}

.river-subcategories {
    position: relative;
    margin: 0 0 34px;
    padding: 0 44px;
    overflow: visible;
    box-sizing: border-box;
}

.river-subcategories-slider {
    overflow: hidden;
}

.river-subcategory-slide {
    height: auto;
}

.river-subcategory-card {
    display: flex;
    height: 100%;
    color: #242424 !important;
    text-decoration: none !important;
    flex-direction: column;
    align-items: center;
}

.river-subcategory-image {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #eee;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.river-subcategory-image img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    transition: transform .3s ease;
}

.river-subcategory-card:hover .river-subcategory-image img,
.river-subcategory-card:focus-visible .river-subcategory-image img {
    transform: scale(1.035);
}

.river-subcategory-title {
    display: block;
    max-width: 210px;
    padding: 9px 4px 0;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
}

.river-subcategories-prev,
.river-subcategories-next {
    position: absolute;
    top: 52px;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .09);
    cursor: pointer;
}

.river-subcategories-prev {
    left: 4px;
}

.river-subcategories-next {
    right: 4px;
}

.river-subcategories-prev::before,
.river-subcategories-next::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #555;
    border-right: 2px solid #555;
}

.river-subcategories-prev::before {
    transform: translate(-35%, -50%) rotate(-135deg);
}

.river-subcategories-next::before {
    transform: translate(-65%, -50%) rotate(45deg);
}

.river-subcategories-prev.swiper-button-disabled,
.river-subcategories-next.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

.river-products-heading-wrap {
    position: relative;
    margin: 4px 0 30px;
    padding: 0 20px 18px;
    text-align: center;
}

.river-products-heading-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 92px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b67b36 0%, #e0b66d 50%, #b67b36 100%);
    transform: translateX(-50%);
}

.river-products-heading {
    max-width: 900px;
    margin: 0 auto;
    color: #25211f;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-align: center;
    text-transform: none;
}

.river-products {
    scroll-margin-top: 120px;
}

.river-products .uss_catalog_block_cat4cols {
    margin-top: 0;
}

.river-products-empty {
    width: 100%;
    padding: 30px;
    border-radius: 8px;
    background: #f6f6f6;
    text-align: center;
}

.river-test-page-text {
    clear: both;
    margin: 34px 0 0;
    padding: 30px 34px 32px;
    border: 1px solid rgba(133, 82, 57, .08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(61, 42, 31, .055);
    box-sizing: border-box;
}

.river-test-page-text > :first-child {
    margin-top: 0;
}

.river-test-page-text > :last-child {
    margin-bottom: 0;
}

@media (max-width: 680px) {
    .river-test-page-text {
        margin-top: 28px;
        padding: 22px 19px 24px;
        border-radius: 13px;
    }
}

@media (max-width: 1100px) {
    .river-hero-content {
        width: 72%;
    }

    .river-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .river-test-page .river-test-main-categories {
        margin-bottom: 12px;
    }

    .river-hero {
        min-height: 0;
        border-radius: 12px;
        background-position: 62% center;
    }

    .river-hero-overlay {
        background: linear-gradient(90deg, rgba(8, 8, 8, .94) 0%, rgba(8, 8, 8, .82) 68%, rgba(8, 8, 8, .55) 100%);
    }

    .river-hero-content {
        min-height: 0;
        width: 100%;
        padding: 30px 24px 25px;
    }

    .river-hero-title {
        max-width: 520px;
        font-size: clamp(25px, 7vw, 32px);
        line-height: 1.08;
    }

    .river-hero-description {
        max-width: 500px;
        font-size: 15px;
    }

    .river-benefits {
        margin: 23px 0 22px;
        gap: 13px 16px;
    }

    .river-benefit-text {
        font-size: 12px;
    }

    .river-subcategories {
        margin-bottom: 28px;
        padding: 0 40px;
    }

    .river-subcategories-prev {
        left: 3px;
    }

    .river-subcategories-next {
        right: 3px;
    }

    .river-subcategory-image img {
        height: 120px;
    }

    .river-subcategories-prev,
    .river-subcategories-next {
        top: 45px;
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 479px) {
    .river-hero-title {
        font-size: 24px;
    }

    .river-hero-content {
        padding: 26px 18px 22px;
    }

    .river-benefits {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .river-benefit-icon,
    .river-benefit-icon img {
        width: 30px;
        min-width: 30px;
        height: 30px;
    }

    .river-benefit-icon svg {
        width: 28px;
        height: 28px;
    }

    .river-hero-button {
        width: 100%;
        padding: 0 18px;
    }

    .river-hero-cta {
        width: 100%;
    }

    .river-subcategories {
        padding: 0 36px;
    }

    .river-subcategories-prev {
        left: 2px;
    }

    .river-subcategories-next {
        right: 2px;
    }

    .river-subcategory-image img {
        height: 116px;
    }

    .river-subcategory-title {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .river-products-heading-wrap {
        margin: 0 0 24px;
        padding: 0 12px 15px;
    }

    .river-products-heading {
        font-size: 28px;
        line-height: 1.18;
    }
}

/* Схема работы */
.river-workflow {
    clear: both;
    margin: 52px 0 34px;
}

.river-workflow-panel {
    overflow: hidden;
    border: 1px solid rgba(133, 82, 57, .08);
    border-radius: 14px;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, .94), transparent 35%),
        linear-gradient(110deg, #fffdf9 0%, #fbf6ef 52%, #f8f3ed 100%);
    box-shadow: 0 10px 28px rgba(61, 42, 31, .06);
}

.river-workflow-heading {
    display: block;
    margin: 0;
    padding: 24px 24px 18px;
    text-align: center;
}

.river-workflow-heading h2 {
    max-width: 800px;
    margin: 0 auto;
    color: #25211f;
    font-size: clamp(25px, 2.7vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-align: center;
    text-transform: none;
}

.river-workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.river-workflow-step {
    position: relative;
    min-width: 0;
    padding: 24px 26px 25px;
    box-sizing: border-box;
}

.river-workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 27px;
    right: 0;
    bottom: 27px;
    width: 1px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(132, 82, 58, .4) 0,
        rgba(132, 82, 58, .4) 3px,
        transparent 3px,
        transparent 6px
    );
}

.river-workflow-step-top {
    display: flex;
    min-height: 43px;
    margin-bottom: 7px;
    align-items: center;
    gap: 15px;
}

.river-workflow-icon {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #985f46;
}

.river-workflow-icon svg {
    display: block;
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.river-workflow-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.river-workflow-number {
    color: #1f1b19;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
}

.river-workflow-step-title {
    margin: 0 0 8px;
    color: #282321;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}

.river-workflow-step-text {
    margin: 0;
    color: #554e4a;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1050px) {
    .river-workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .river-workflow-step:nth-child(2n)::after {
        display: none;
    }

    .river-workflow-step:nth-child(n + 3) {
        border-top: 1px solid rgba(133, 82, 57, .12);
    }
}

@media (max-width: 620px) {
    .river-workflow {
        margin: 40px 0 28px;
    }

    .river-workflow-panel {
        border-radius: 12px;
    }

    .river-workflow-heading {
        margin: 0;
        padding: 20px 18px 15px;
    }

    .river-workflow-heading h2 {
        font-size: 24px;
        line-height: 1.18;
    }

    .river-workflow-grid {
        grid-template-columns: 1fr;
    }

    .river-workflow-step {
        padding: 21px 20px 22px;
    }

    .river-workflow-step:not(:last-child)::after {
        top: auto;
        right: 20px;
        bottom: 0;
        left: 20px;
        width: auto;
        height: 1px;
        background: repeating-linear-gradient(
            to right,
            rgba(132, 82, 58, .34) 0,
            rgba(132, 82, 58, .34) 3px,
            transparent 3px,
            transparent 6px
        );
    }

    .river-workflow-step:nth-child(n + 3) {
        border-top: 0;
    }

    .river-workflow-step-top {
        min-height: 38px;
        gap: 12px;
    }

    .river-workflow-icon,
    .river-workflow-icon img {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .river-workflow-icon svg {
        width: 34px;
        height: 34px;
    }

    .river-workflow-number {
        font-size: 23px;
    }

    .river-workflow-step-title {
        font-size: 15px;
    }
}

/* Стоимость, доставка и оплата */
.river-info-grid {
    clear: both;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin: 42px 0 54px;
}

.river-info-card {
    min-width: 0;
    padding: 28px 30px 26px;
    border: 1px solid rgba(133, 82, 57, .08);
    border-radius: 16px;
    background:
        radial-gradient(circle at 6% 0%, rgba(255, 255, 255, .96), transparent 34%),
        linear-gradient(120deg, #fffdf9 0%, #fbf6ef 56%, #f8f3ed 100%);
    box-shadow: 0 12px 32px rgba(61, 42, 31, .065);
    box-sizing: border-box;
}

.river-info-card-title {
    margin: 0 0 22px;
    color: #25211f;
    font-size: clamp(24px, 2.2vw, 31px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
    text-align: center;
}

.river-price-card-body {
    display: grid;
    grid-template-columns: minmax(180px, .86fr) minmax(250px, 1.14fr);
    gap: 25px;
    align-items: start;
}

.river-price-image {
    position: relative;
    overflow: hidden;
    border-radius: 13px;
    background: #eae4dd;
    box-shadow: 0 8px 20px rgba(43, 30, 22, .11);
}

.river-price-image::before {
    content: '';
    display: block;
    padding-top: 92%;
}

.river-price-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.river-price-list {
    display: flex;
    margin: -2px 0 0;
    padding: 0;
    list-style: none;
    flex-direction: column;
    gap: 10px;
}

.river-price-list li {
    position: relative;
    margin: 0;
    padding-left: 28px;
    color: #4e4743;
    font-size: 14px;
    line-height: 1.4;
}

.river-price-list li::before {
    content: '';
    position: absolute;
    top: .35em;
    left: 2px;
    width: 13px;
    height: 7px;
    border-bottom: 2px solid #8c573f;
    border-left: 2px solid #8c573f;
    transform: rotate(-45deg);
}

.river-price-note {
    margin: 20px 0 0;
    color: #625954;
    font-size: 13px;
    line-height: 1.55;
}

.river-delivery-card {
    display: flex;
    flex-direction: column;
}

.river-info-card.river-delivery-card {
    padding: 22px 24px 20px;
}

.river-delivery-card .river-info-card-title {
    margin-bottom: 14px;
}

.river-delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.river-delivery-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 12px 14px 13px 0;
    align-items: start;
}

.river-delivery-item:nth-child(even) {
    padding-right: 0;
    padding-left: 14px;
    border-left: 1px solid rgba(133, 82, 57, .11);
}

.river-delivery-item:nth-child(n + 3) {
    padding-top: 15px;
    border-top: 1px solid rgba(133, 82, 57, .11);
}

.river-delivery-icon {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #965d45;
}

.river-delivery-icon svg {
    display: block;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.river-delivery-icon img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.river-delivery-item-title {
    margin: 0 0 4px;
    color: #2c2724;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.river-delivery-item-text {
    margin: 0;
    color: #5b534f;
    font-size: 13px;
    line-height: 1.5;
}

.river-delivery-button-wrap {
    margin-top: auto;
    text-align: center;
}

.river-delivery-button {
    display: inline-flex;
    min-width: min(280px, 100%);
    min-height: 44px;
    padding: 0 20px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient(135deg, #82503c 0%, #663927 100%);
    box-shadow: 0 7px 18px rgba(81, 45, 31, .2);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    box-sizing: border-box;
}

.river-delivery-button:hover,
.river-delivery-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(81, 45, 31, .27);
    filter: brightness(1.07);
}

@media (max-width: 1180px) {
    .river-info-card {
        padding: 25px 24px 24px;
    }

    .river-info-card.river-delivery-card {
        padding: 20px 21px 18px;
    }

    .river-price-card-body {
        grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.2fr);
        gap: 20px;
    }

    .river-delivery-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
        padding-right: 12px;
    }

    .river-delivery-item:nth-child(even) {
        padding-left: 12px;
    }

    .river-delivery-icon,
    .river-delivery-icon img {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .river-delivery-icon svg {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 980px) {
    .river-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 36px;
    }

    .river-price-card-body {
        grid-template-columns: minmax(220px, .75fr) minmax(300px, 1.25fr);
    }
}

@media (max-width: 680px) {
    .river-info-grid {
        margin: 32px 0 42px;
    }

    .river-info-card {
        padding: 22px 19px 21px;
        border-radius: 13px;
    }

    .river-info-card.river-delivery-card {
        padding: 18px 17px 17px;
    }

    .river-info-card-title {
        margin-bottom: 18px;
        font-size: 24px;
        line-height: 1.16;
    }

    .river-price-card-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .river-price-image::before {
        padding-top: 66%;
    }

    .river-price-list {
        gap: 9px;
    }

    .river-price-list li {
        padding-left: 26px;
        font-size: 13px;
    }

    .river-price-note {
        margin-top: 18px;
    }

    .river-delivery-grid {
        grid-template-columns: 1fr;
        margin-bottom: 12px;
    }

    .river-delivery-item,
    .river-delivery-item:nth-child(even),
    .river-delivery-item:nth-child(n + 3) {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 11px 0 12px;
        border-top: 1px solid rgba(133, 82, 57, .11);
        border-left: 0;
    }

    .river-delivery-item:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .river-delivery-icon,
    .river-delivery-icon img {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }

    .river-delivery-icon svg {
        width: 32px;
        height: 32px;
    }

    .river-delivery-item-title {
        font-size: 15px;
    }

    .river-delivery-button {
        width: 100%;
        min-width: 0;
        padding: 0 18px;
        font-size: 13px;
    }
}

/* Вопросы и ответы */
.river-faq {
    clear: both;
    margin: 0 0 54px;
    padding: 25px 30px 27px;
    border: 1px solid rgba(133, 82, 57, .08);
    border-radius: 16px;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, .96), transparent 34%),
        linear-gradient(120deg, #fffdf9 0%, #fbf6ef 56%, #f8f3ed 100%);
    box-shadow: 0 12px 32px rgba(61, 42, 31, .06);
    box-sizing: border-box;
}

.river-faq-title {
    margin: 0 0 14px;
    color: #25211f;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-align: center;
    text-transform: none;
}

.river-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 42px;
}

.river-faq-column {
    min-width: 0;
}

.river-faq-item {
    margin: 0;
    border-bottom: 1px solid rgba(133, 82, 57, .16);
}

.river-faq-question {
    display: flex;
    min-height: 48px;
    padding: 13px 4px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #302a27;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
    box-sizing: border-box;
}

.river-faq-question::-webkit-details-marker {
    display: none;
}

.river-faq-question::marker {
    display: none;
    content: '';
}

.river-faq-question:hover,
.river-faq-question:focus-visible {
    color: #7e4b35;
}

.river-faq-arrow {
    position: relative;
    display: inline-block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    transition: transform .22s ease, background-color .22s ease;
}

.river-faq-arrow::before,
.river-faq-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    width: 7px;
    height: 1.5px;
    border-radius: 999px;
    background: #6f4a39;
}

.river-faq-arrow::before {
    left: 3px;
    transform: rotate(45deg);
}

.river-faq-arrow::after {
    right: 3px;
    transform: rotate(-45deg);
}

.river-faq-item[open] .river-faq-arrow {
    transform: rotate(180deg);
}

.river-faq-answer {
    padding: 0 34px 15px 4px;
    color: #5a524e;
    font-size: 13px;
    line-height: 1.55;
}

.river-faq-answer > div {
    margin: 0;
}

@media (max-width: 900px) {
    .river-faq {
        margin-bottom: 46px;
        padding: 23px 24px 25px;
    }

    .river-faq-grid {
        gap: 0 28px;
    }
}

@media (max-width: 680px) {
    .river-faq {
        margin-bottom: 40px;
        padding: 21px 18px 22px;
        border-radius: 13px;
    }

    .river-faq-title {
        margin-bottom: 10px;
        font-size: 23px;
    }

    .river-faq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .river-faq-question {
        min-height: 46px;
        padding: 12px 2px;
        font-size: 13px;
    }

    .river-faq-answer {
        padding: 0 28px 14px 2px;
        font-size: 12.5px;
    }
}


/* Общая форма расчёта проекта */
.owl-category-project-form-section {
    clear: both;
    margin: 0 0 58px;
}

.owl-category-project-form-shell {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.55fr);
    overflow: hidden;
    border: 1px solid rgba(133, 82, 57, .09);
    border-radius: 17px;
    background:
        radial-gradient(circle at 4% 0%, rgba(255, 255, 255, .96), transparent 35%),
        linear-gradient(120deg, #fffdf9 0%, #fbf6ef 54%, #f8f2eb 100%);
    box-shadow: 0 13px 34px rgba(61, 42, 31, .075);
}

.owl-category-project-form-intro {
    display: block;
    min-width: 0;
    padding: 28px 24px 28px 28px;
    border-right: 1px solid rgba(133, 82, 57, .11);
}

.owl-category-project-form-intro-main {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    align-items: center;
}

.owl-category-project-form-visual {
    position: relative;
    overflow: hidden;
    width: 116px;
    height: 184px;
    border-radius: 13px;
    background-image:
        linear-gradient(180deg, rgba(19, 13, 10, .04), rgba(19, 13, 10, .17)),
        url('../img/bg-form.jpg');
    background-position: 48% center;
    background-size: auto 100%;
    box-shadow: 0 9px 23px rgba(54, 35, 24, .19);
}

.owl-category-project-form-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: inherit;
    pointer-events: none;
}

.owl-category-project-form-copy {
    min-width: 0;
}

.owl-category-project-form-title {
    width: 100%;
    margin: 0 0 17px;
    color: #292421;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.owl-category-project-form-text {
    margin: 0;
    color: #5d5550;
    font-size: 13px;
    line-height: 1.55;
}

.owl-category-project-form-points {
    display: flex;
    width: 100%;
    margin-top: 17px;
    flex-wrap: wrap;
    gap: 7px;
}

.owl-category-project-form-points span {
    display: inline-flex;
    min-height: 26px;
    padding: 4px 9px;
    align-items: center;
    border: 1px solid rgba(139, 85, 61, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    color: #73503f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.owl-category-project-form {
    min-width: 0;
    padding: 27px 29px 25px;
    box-sizing: border-box;
}

.owl-category-project-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.owl-category-project-field {
    display: block;
    min-width: 0;
    margin: 0;
}

.owl-category-project-field-wide {
    grid-column: 1 / -1;
}

.owl-category-project-label {
    display: block;
    margin: 0 0 7px;
    color: #3b3430;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.owl-category-project-label b {
    color: #8e5238;
}

.owl-category-project-field input,
.owl-category-project-field textarea {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(110, 79, 62, .18);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, .86);
    box-shadow: inset 0 1px 2px rgba(49, 33, 23, .025);
    color: #342e2a;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.35;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-sizing: border-box;
}

.owl-category-project-field input {
    height: 44px;
    padding: 0 13px;
}

.owl-category-project-field textarea {
    min-height: 78px;
    padding: 11px 13px;
    resize: vertical;
}

.owl-category-project-field input::placeholder,
.owl-category-project-field textarea::placeholder {
    color: #a09893;
    opacity: 1;
}

.owl-category-project-field input:focus,
.owl-category-project-field textarea:focus {
    border-color: rgba(132, 79, 56, .54);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(132, 79, 56, .09);
}

.owl-category-project-form-bottom {
    display: grid;
    grid-template-columns: auto minmax(230px, 1fr) minmax(190px, auto);
    gap: 16px 18px;
    margin-top: 17px;
    align-items: center;
}

.owl-category-project-captcha {
    min-width: 304px;
    min-height: 78px;
}

.owl-category-project-consent {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    margin: 0;
    align-items: start;
    color: #6c635e;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.45;
}

.owl-category-project-consent input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: #7d4935;
}

.owl-category-project-consent a {
    color: #774a36;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.owl-category-project-submit {
    display: inline-flex;
    width: 100%;
    min-width: 190px;
    min-height: 46px;
    margin: 0;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, #82503c 0%, #663927 100%);
    box-shadow: 0 7px 18px rgba(81, 45, 31, .2);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, opacity .2s ease;
    box-sizing: border-box;
}

.owl-category-project-submit:hover,
.owl-category-project-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(81, 45, 31, .27);
    filter: brightness(1.07);
}

.owl-category-project-submit:disabled {
    cursor: wait;
    opacity: .65;
}

.owl-category-project-form-note {
    margin-top: 13px;
    color: #4f4742;
    font-size: 13px;
    line-height: 1.45;
}

.owl-category-project-form-note:empty {
    display: none;
}

.owl-category-project-form-note .err {
    padding: 10px 12px;
    border: 1px solid rgba(159, 58, 42, .18);
    border-radius: 7px;
    background: rgba(159, 58, 42, .06);
    color: #983e31;
}

.owl-category-project-form-note .owl-form-success {
    padding: 13px 15px;
    border: 1px solid rgba(79, 122, 67, .2);
    border-radius: 8px;
    background: rgba(79, 122, 67, .07);
    color: #3f6537;
}

@media (max-width: 1260px) {
    .owl-category-project-form-shell {
        grid-template-columns: minmax(245px, .68fr) minmax(0, 1.45fr);
    }

    .owl-category-project-form-intro {
        padding: 25px 21px 25px 24px;
    }

    .owl-category-project-form-intro-main {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 17px;
    }

    .owl-category-project-form-visual {
        width: 94px;
        height: 166px;
    }

    .owl-category-project-form {
        padding-right: 24px;
        padding-left: 24px;
    }

    .owl-category-project-form-bottom {
        grid-template-columns: auto minmax(200px, 1fr);
    }

    .owl-category-project-submit {
        grid-column: 2;
        justify-self: end;
        width: min(260px, 100%);
    }
}

@media (max-width: 980px) {
    .owl-category-project-form-shell {
        grid-template-columns: 1fr;
    }

    .owl-category-project-form-intro {
        padding: 24px;
        border-right: 0;
        border-bottom: 1px solid rgba(133, 82, 57, .11);
    }

    .owl-category-project-form-intro-main {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .owl-category-project-form-visual {
        width: 150px;
        height: 122px;
        background-size: cover;
    }

    .owl-category-project-form-bottom {
        grid-template-columns: auto minmax(220px, 1fr) minmax(190px, auto);
    }

    .owl-category-project-submit {
        grid-column: auto;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .owl-category-project-form-section {
        margin-bottom: 45px;
    }

    .owl-category-project-form-shell {
        border-radius: 14px;
    }

    .owl-category-project-form-intro {
        padding: 21px;
    }

    .owl-category-project-form-intro-main {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 17px;
    }

    .owl-category-project-form-visual {
        width: 112px;
        height: 125px;
    }

    .owl-category-project-form-title {
        margin-bottom: 14px;
        font-size: 24px;
    }

    .owl-category-project-form-points {
        display: flex;
        margin-top: 14px;
    }

    .owl-category-project-form {
        padding: 22px 20px 21px;
    }

    .owl-category-project-form-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .owl-category-project-field-wide {
        grid-column: auto;
    }

    .owl-category-project-form-bottom {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .owl-category-project-captcha {
        min-width: 0;
    }

    .owl-category-project-submit {
        grid-column: auto;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .owl-category-project-form-intro {
        padding: 17px;
    }

    .owl-category-project-form-intro-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .owl-category-project-form-visual {
        width: 100%;
        height: 118px;
        background-position: center;
        background-size: cover;
    }

    .owl-category-project-form-title {
        font-size: 22px;
    }

    .owl-category-project-form-text {
        font-size: 12px;
    }

    .owl-category-project-form {
        padding: 19px 16px 18px;
    }

    .owl-category-project-captcha {
        overflow: hidden;
        min-height: 70px;
    }

    .owl-category-project-captcha .g-recaptcha {
        width: 304px;
        transform: scale(.88);
        transform-origin: left top;
    }
}

/* Улучшенные карточки товаров только на тестовой записи столов-рек. */
.river-test-page .river-products .uss_catalog_block_cat4cols {
    gap: 20px 18px;
    justify-content: flex-start;
}

.river-test-page .river-products .uss_catalog_category {
    box-sizing: border-box;
    width: calc(25% - 14px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(124, 89, 70, .16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(48, 34, 25, .08);
    transform: translateY(0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.river-test-page .river-products .uss_catalog_category:hover,
.river-test-page .river-products .uss_catalog_category:focus-within {
    border-color: rgba(124, 89, 70, .34);
    box-shadow: 0 16px 34px rgba(48, 34, 25, .14);
    transform: translateY(-5px);
}

.river-test-page .river-products .uss_catalog_cat_img {
    position: relative;
    width: 100%;
}

.river-test-page .river-products .uss_catalog_cat_img > a {
    position: relative;
    display: block;
    color: #1f1f1f;
    text-decoration: none;
}

.river-test-page .river-products .uss_catalog_cat_img > a > div:first-child {
    overflow: hidden;
    background: #eee9e4;
}

.river-test-page .river-products .uss_catalog_cat_img picture {
    display: block;
    line-height: 0;
}

.river-test-page .river-products .uss_catalog_cat_img img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transform: scale(1);
    transition: transform .45s ease;
}

.river-test-page .river-products .uss_catalog_category:hover .uss_catalog_cat_img img,
.river-test-page .river-products .uss_catalog_category:focus-within .uss_catalog_cat_img img {
    transform: scale(1.055);
}

.river-test-page .river-products .idincat,
.river-test-page .river-products .encat,
.river-test-page .river-products .newcat,
.river-test-page .river-products .skicat,
.river-test-page .river-products .excat {
    z-index: 3;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 5px 9px;
    float: none;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: 1;
    box-shadow: 0 5px 14px rgba(30, 22, 17, .16);
}

.river-test-page .river-products .idincat {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #fff;
    background: rgba(24, 20, 18, .78);
    backdrop-filter: blur(5px);
}

.river-test-page .river-products .encat {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #44352d;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(5px);
}

.river-test-page .river-products .encat.plus {
    color: #493417;
    background: rgba(241, 196, 92, .95);
}

.river-test-page .river-products .newcat {
    position: absolute;
    top: 46px;
    right: 10px;
    max-width: calc(100% - 20px);
    color: #26472c;
    background: rgba(220, 244, 220, .95);
}

.river-test-page .river-products .skicat {
    position: absolute;
    top: 82px;
    right: 10px;
    color: #fff;
    background: rgba(177, 49, 39, .95);
}

.river-test-page .river-products .skicat pre {
    margin: 0;
    font: inherit;
}

.river-test-page .river-products .excat {
    position: absolute;
    top: 46px;
    left: 10px;
    color: #3f342c;
    background: rgba(232, 245, 216, .95);
}

.river-test-page .river-products .uss_catalog_cat_name {
    display: block;
    min-height: 44px;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 10px 14px 2px;
    overflow: visible;
    color: #1f1f1f;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
}

.river-test-page .river-products .uss_catlog_cat_anons {
    box-sizing: border-box;
    min-height: 70px;
    padding: 2px 14px 0;
    align-content: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.river-test-page .river-products .uss_catlog_cat_anons p {
    box-sizing: border-box;
    justify-content: flex-start;
    width: 100%;
    margin: 1px 0;
    line-height: 1.3;
    text-align: left;
}

.river-test-page .river-products .uss_catlog_cat_anons .gbrs {
    color: #2c2c2c;
    font-size: 14px;
}

.river-test-page .river-products .uss_catlog_cat_anons .gbrs::before {
    content: "";
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    background: url("../img/imgbr.png") no-repeat center / 16px 16px;
    opacity: .65;
}

.river-test-page .river-products .uss_catlog_cat_anons .skid {
    min-height: 0;
    margin: 0;
    color: #474747;
    font-size: 13px;
    line-height: 1.2;
    opacity: .7;
}

.river-test-page .river-products .uss_catlog_cat_anons .tsena {
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 6px 0 0;
    padding: 0;
    color: #171717;
    line-height: 1.1;
}

.river-test-page .river-products .uss_catlog_cat_anons .tsena b {
    color: inherit;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.river-test-page .river-products .uss_catlog_cat_anons .gabs {
    min-height: 0;
    margin: 0;
    color: #444;
    font-size: 12px;
    line-height: 1.2;
}

.river-test-page .river-products .catalog_orderbutton {
    box-sizing: border-box;
    width: calc(100% - 28px);
    margin: 2px 14px 12px;
    padding: 9px 12px;
    border: 1px solid rgba(89, 55, 39, .14);
    border-radius: 10px;
    background: linear-gradient(135deg, #7c5946 0%, #5f3e2e 100%);
    box-shadow: 0 7px 16px rgba(95, 62, 46, .18);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .035em;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.river-test-page .river-products .catalog_orderbutton:hover,
.river-test-page .river-products .catalog_orderbutton:focus-visible {
    box-shadow: 0 10px 20px rgba(95, 62, 46, .26);
    filter: brightness(1.06);
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .river-test-page .river-products .uss_catalog_category {
        width: calc(33.333% - 12px);
    }
}

@media (max-width: 767px) {
    .river-test-page .river-products .uss_catalog_block_cat4cols {
        gap: 14px 12px;
    }

    .river-test-page .river-products .uss_catalog_category {
        width: calc(50% - 6px);
        max-width: none;
        border-radius: 13px;
        box-shadow: 0 6px 18px rgba(48, 34, 25, .08);
    }

    .river-test-page .river-products .uss_catalog_category:hover,
    .river-test-page .river-products .uss_catalog_category:focus-within {
        transform: none;
    }

    .river-test-page .river-products .uss_catalog_cat_name {
        min-height: 40px;
        padding: 8px 10px 1px;
        font-size: 14px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons {
        min-height: 64px;
        padding: 1px 10px 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .gbrs {
        font-size: 12px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena b {
        font-size: 17px;
    }

    .river-test-page .river-products .catalog_orderbutton {
        width: calc(100% - 20px);
        margin: 2px 10px 10px;
        padding: 8px 7px;
        font-size: 12px;
    }

    .river-test-page .river-products .idincat,
    .river-test-page .river-products .encat,
    .river-test-page .river-products .newcat,
    .river-test-page .river-products .skicat,
    .river-test-page .river-products .excat {
        padding: 4px 6px;
        font-size: 12px;
    }

    .river-test-page .river-products .idincat,
    .river-test-page .river-products .excat {
        left: 7px;
    }

    .river-test-page .river-products .encat,
    .river-test-page .river-products .newcat,
    .river-test-page .river-products .skicat {
        right: 7px;
    }

    .river-test-page .river-products .idincat,
    .river-test-page .river-products .encat {
        top: 7px;
    }

    .river-test-page .river-products .newcat,
    .river-test-page .river-products .excat {
        top: 38px;
    }

    .river-test-page .river-products .skicat {
        top: 67px;
    }
}

@media (max-width: 420px) {
    .river-test-page .river-products .uss_catalog_block_cat4cols {
        gap: 10px 8px;
    }

    .river-test-page .river-products .uss_catalog_category {
        width: calc(50% - 4px);
    }

    .river-test-page .river-products .uss_catalog_cat_img img {
        aspect-ratio: 1 / 1;
    }

    .river-test-page .river-products .uss_catalog_cat_name {
        min-height: 38px;
        padding: 7px 8px 1px;
        font-size: 12px;
        line-height: 1.25;
    }

    .river-test-page .river-products .uss_catlog_cat_anons {
        min-height: 57px;
        padding: 1px 8px 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .gbrs::before {
        display: inline-block;
        flex-basis: 15px;
        width: 15px;
        height: 15px;
        margin-right: 4px;
        background-size: 14px 14px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .gbrs,
    .river-test-page .river-products .uss_catlog_cat_anons .gabs {
        font-size: 12px;
    }

   .river-test-page .river-products .uss_catlog_cat_anons .skid {
        min-height: 12px;
        font-size: 12px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        min-height: 0;
        margin: 6px 0 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena b {
        font-size: 14px;
    }

    .river-test-page .river-products .catalog_orderbutton {
        width: calc(100% - 16px);
        margin: 2px 8px 8px;
        padding: 7px 4px;
        border-radius: 8px;
        font-size: 12px;
        letter-spacing: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .river-test-page .river-products .uss_catalog_category,
    .river-test-page .river-products .uss_catalog_cat_img img,
    .river-test-page .river-products .catalog_orderbutton {
        transition: none;
    }
}

/* Один активный информационный блок занимает всю доступную ширину. */
.river-test-page .river-info-grid.river-info-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.river-test-page .river-info-grid.river-info-grid-single .river-info-card {
    width: 100%;
}

/* Выравнивание нижней части карточек товаров на тестовой записи. */
.river-test-page .river-products .uss_catalog_category {
    justify-content: flex-start;
}

.river-test-page .river-products .uss_catlog_cat_anons {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 92px;
}

.river-test-page .river-products .uss_catlog_cat_anons .tsena {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 10px;
}

.river-test-page .river-products .uss_catlog_cat_anons .gabs {
    margin-top: 1px;
    margin-bottom: 0;
}

.river-test-page .river-products .catalog_orderbutton {
    flex: 0 0 auto;
    margin-top: 0;
}

@media (max-width: 767px) {
    .river-test-page .river-products .uss_catalog_block_cat4cols {
        gap: 14px 12px;
        align-items: stretch;
    }

    .river-test-page .river-products .uss_catalog_category {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
    }

    .river-test-page .river-products .uss_catalog_cat_img img {
        aspect-ratio: 4 / 3;
    }

    .river-test-page .river-products .uss_catalog_cat_name {
        min-height: 0;
        padding: 9px 10px 2px;
        font-size: 13px;
        line-height: 1.3;
    }

    .river-test-page .river-products .uss_catlog_cat_anons {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        flex-wrap: nowrap;
        min-height: 82px;
        padding: 2px 10px 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons p {
        margin: 1px 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        margin-top: auto;
        margin-bottom: 0;
        padding-top: 8px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena b {
        font-size: 17px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .gabs {
        margin-top: 1px;
        margin-bottom: 0;
    }

    .river-test-page .river-products .catalog_orderbutton {
        width: calc(100% - 20px);
        margin: 0 10px 9px;
        padding: 8px 7px;
    }
}

@media (max-width: 420px) {
    .river-test-page .river-products .uss_catalog_block_cat4cols {
        gap: 10px 8px;
        align-items: stretch;
    }

    .river-test-page .river-products .uss_catalog_cat_img img {
        aspect-ratio: 4 / 3;
    }

    .river-test-page .river-products .uss_catalog_cat_name {
        min-height: 0;
        padding: 8px 8px 2px;
        font-size: 12px;
        line-height: 1.3;
    }

    .river-test-page .river-products .uss_catlog_cat_anons {
        min-height: 78px;
        padding: 2px 8px 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        margin-top: auto;
        margin-bottom: 0;
        padding-top: 8px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena b {
        font-size: 16px;
    }

    .river-test-page .river-products .catalog_orderbutton {
        width: calc(100% - 16px);
        margin: 0 8px 8px;
        padding: 7px 4px;
    }
}

/* v32: более плотная нижняя часть карточек товаров. */
.river-test-page .river-products .uss_catlog_cat_anons {
    flex: 0 0 auto;
    min-height: 0;
}

.river-test-page .river-products .uss_catlog_cat_anons .tsena {
    margin-top: 7px;
    margin-bottom: 4px;
    padding-top: 0;
}

.river-test-page .river-products .uss_catlog_cat_anons .gabs {
    margin-top: 0;
    margin-bottom: 2px;
}

.river-test-page .river-products .catalog_orderbutton {
    margin-top: 1px;
}

@media (max-width: 767px) {
    .river-test-page .river-products .uss_catlog_cat_anons {
        flex: 0 0 auto;
        min-height: 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        margin-top: 7px;
        margin-bottom: 4px;
        padding-top: 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .gabs {
        margin-top: 0;
        margin-bottom: 2px;
    }

    .river-test-page .river-products .catalog_orderbutton {
        margin-top: 1px;
    }
}

/* v33: немного увеличиваем отступ между ценой и кнопкой заказа. */
.river-test-page .river-products .catalog_orderbutton {
    margin-top: 5px;
}

@media (max-width: 767px) {
    .river-test-page .river-products .catalog_orderbutton {
        margin-top: 5px;
    }
}

/* v34: нижняя группа карточки собрана компактно и прижата к низу. */
.river-test-page .river-products .uss_catalog_category {
    display: flex;
    flex-direction: column;
}

.river-test-page .river-products .uss_catalog_category > .uss_catlog_cat_anons {
    flex: 0 0 auto;
    margin-top: auto;
    min-height: 0;
}

.river-test-page .river-products .uss_catalog_category > .uss_catlog_cat_anons + div:empty {
    display: none;
}

.river-test-page .river-products .uss_catlog_cat_anons .tsena {
    margin-top: 4px;
    margin-bottom: 6px;
    padding-top: 0;
}

.river-test-page .river-products .uss_catlog_cat_anons .gabs {
    margin-top: 0;
    margin-bottom: 1px;
}

.river-test-page .river-products .catalog_orderbutton {
    flex: 0 0 auto;
    margin-top: 3px;
}

@media (max-width: 767px) {
    .river-test-page .river-products .uss_catalog_category > .uss_catlog_cat_anons {
        flex: 0 0 auto;
        margin-top: auto;
        min-height: 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        margin-top: 4px;
        margin-bottom: 6px;
        padding-top: 0;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .gabs {
        margin-top: 0;
        margin-bottom: 1px;
    }

    .river-test-page .river-products .catalog_orderbutton {
        margin-top: 3px;
    }
}

@media (max-width: 420px) {
    .river-test-page .river-products .uss_catlog_cat_anons {
        padding-top: 2px;
    }

    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        margin-top: 4px;
        margin-bottom: 6px;
    }

    .river-test-page .river-products .catalog_orderbutton {
        margin-top: 3px;
    }
}

/* v35: slightly tighter price spacing on mobile product cards. */
@media (max-width: 767px) {
    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        margin-top: 2px;
    }
}

@media (max-width: 420px) {
    .river-test-page .river-products .uss_catlog_cat_anons .tsena {
        margin-top: 2px;
    }
}

/* v36: контент карточек товаров под изображением выровнен по центру. */
.river-test-page .river-products .uss_catalog_cat_name {
    text-align: center;
}

.river-test-page .river-products .uss_catlog_cat_anons {
    align-items: center;
    text-align: center;
}

.river-test-page .river-products .uss_catlog_cat_anons p {
    justify-content: center;
    text-align: center;
}

.river-test-page .river-products .uss_catlog_cat_anons .gbrs,
.river-test-page .river-products .uss_catlog_cat_anons .skid,
.river-test-page .river-products .uss_catlog_cat_anons .tsena,
.river-test-page .river-products .uss_catlog_cat_anons .gabs {
    width: 100%;
    text-align: center;
}

/* v40: визуальное обновление всплывающих форм только на тестовой записи. */
.river-test-page ~ .custom-model-main .bg-overlay {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.river-test-page ~ .custom-model-main.model-open .bg-overlay {
    background: rgba(28, 22, 18, 0.64);
}

.river-test-page ~ .custom-model-main .custom-model-inner {
    width: min(430px, calc(100% - 32px));
    max-width: none;
    margin: 24px auto;
}

.river-test-page ~ .custom-model-main .custom-model-wrap {
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px 32px 26px;
    border: 1px solid rgba(124, 89, 70, 0.16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(33, 24, 19, 0.2);
}

.river-test-page ~ .custom-model-main .pop-up-content-wrap {
    width: 100%;
}

.river-test-page ~ .custom-model-main .contact_popup,
.river-test-page ~ .custom-model-main #contact,
.river-test-page ~ .custom-model-main #contact2 {
    width: 100%;
    max-width: none !important;
    margin: 0;
    color: #24211f;
    font-family: 'gothic', sans-serif;
}

.river-test-page ~ .custom-model-main .contact_popup > b {
    display: block;
    margin: 0 38px 22px;
    color: #24211f;
    font-family: 'gothicb', sans-serif;
    font-size: 23px;
    line-height: 1.25;
    text-align: center;
}

.river-test-page ~ .custom-model-main .contact_popup > b::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    margin: 13px auto 0;
    border-radius: 2px;
    background: #b69a88;
}

.river-test-page ~ .custom-model-main #fields p {
    margin: 0 0 11px;
    padding: 0;
}

.river-test-page ~ .custom-model-main #fields p.elem_item[style] {
    opacity: 1 !important;
}

.river-test-page ~ .custom-model-main #fields input[type='text'],
.river-test-page ~ .custom-model-main #fields input[type='tel'],
.river-test-page ~ .custom-model-main #fields input[type='email'],
.river-test-page ~ .custom-model-main #fields textarea {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #e1d8d1;
    border-radius: 10px;
    background: #f8f6f4;
    box-shadow: none;
    color: #24211f;
    font-family: 'gothic', sans-serif;
    font-size: 15px;
    line-height: 1.35;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.river-test-page ~ .custom-model-main #fields textarea {
    min-height: 86px;
    height: 86px;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
}

.river-test-page ~ .custom-model-main #fields input::placeholder,
.river-test-page ~ .custom-model-main #fields textarea::placeholder {
    color: #77706b;
    opacity: 1;
}

.river-test-page ~ .custom-model-main #fields input[type='text']:focus,
.river-test-page ~ .custom-model-main #fields input[type='tel']:focus,
.river-test-page ~ .custom-model-main #fields input[type='email']:focus,
.river-test-page ~ .custom-model-main #fields textarea:focus {
    border-color: #a88874;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 89, 70, 0.08);
}

.river-test-page ~ .custom-model-main .g-recaptcha {
    margin: 3px auto 13px;
}

.river-test-page ~ .custom-model-main .check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin: 3px 0 17px;
    text-align: left;
}

.river-test-page ~ .custom-model-main .check > input[type='checkbox'] {
    width: 17px !important;
    height: 17px !important;
    margin: 1px 0 0;
    padding: 0;
    accent-color: #7c5946;
    cursor: pointer;
}

.river-test-page ~ .custom-model-main #fields .check p.one {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1.35;
}

.river-test-page ~ .custom-model-main #fields .check small,
.river-test-page ~ .custom-model-main #fields .check p.one {
    color: #68615c;
    font-size: 12.5px;
}

.river-test-page ~ .custom-model-main #fields .check a {
    color: #5f4638;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.river-test-page ~ .custom-model-main #fields p.buttons {
    margin: 0;
}

.river-test-page ~ .custom-model-main #fields .buttons button,
.river-test-page ~ .custom-model-main #fields button[type='submit'] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 48px;
    height: 48px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    background: #7c5946;
    box-shadow: 0 8px 20px rgba(124, 89, 70, 0.18);
    color: #fff;
    font-family: 'gothicb', sans-serif;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.river-test-page ~ .custom-model-main #fields .buttons button:hover,
.river-test-page ~ .custom-model-main #fields button[type='submit']:hover {
    background: #674838;
    box-shadow: 0 10px 24px rgba(124, 89, 70, 0.23);
    transform: translateY(-1px);
}

.river-test-page ~ .custom-model-main #fields .buttons button:active,
.river-test-page ~ .custom-model-main #fields button[type='submit']:active {
    transform: translateY(0);
}

.river-test-page ~ .custom-model-main .close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e3d9d2;
    border-radius: 50%;
    background: #f8f6f4;
    box-shadow: none;
    color: #4f4945;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.river-test-page ~ .custom-model-main .close-btn:hover {
    background: #eee8e3;
    color: #2d2926;
    transform: rotate(4deg);
}

.river-test-page ~ .custom-model-main #note {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.river-test-page ~ .custom-model-main #note div.ok {
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid #cfe3ca;
    border-radius: 9px;
    background: #f2f8f0;
    color: #355b32;
}

@media (max-width: 520px) {
    .river-test-page ~ .custom-model-main .custom-model-inner {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    .river-test-page ~ .custom-model-main .custom-model-wrap {
        max-height: calc(100vh - 24px);
        padding: 25px 18px 20px;
        border-radius: 15px;
    }

    .river-test-page ~ .custom-model-main .contact_popup > b {
        margin: 3px 34px 18px;
        font-size: 20px;
    }

    .river-test-page ~ .custom-model-main #fields input[type='text'],
    .river-test-page ~ .custom-model-main #fields input[type='tel'],
    .river-test-page ~ .custom-model-main #fields input[type='email'] {
        height: 46px;
        font-size: 14px;
    }

    .river-test-page ~ .custom-model-main #fields textarea {
        min-height: 78px;
        height: 78px;
        font-size: 14px;
    }

    .river-test-page ~ .custom-model-main #fields .buttons button,
    .river-test-page ~ .custom-model-main #fields button[type='submit'] {
        min-height: 46px;
        height: 46px;
        font-size: 13px;
    }
}

@media (max-width: 350px) {
    .river-test-page ~ .custom-model-main .custom-model-wrap {
        padding-right: 12px;
        padding-left: 12px;
    }

    .river-test-page ~ .custom-model-main .g-recaptcha {
        width: 304px;
        margin-right: 0;
        margin-left: 0;
        transform: scale(.88);
        transform-origin: left top;
        margin-bottom: -21px;
    }
}
