/* RealGreen template — design system */
:root {
    --rg-green: #27652e;
    --rg-green-dark: #1e3a2f;
    --rg-green-light: #3d6b54;
    --rg-bg: #f4f2ef;
    --rg-bg-white: #ffffff;
    --rg-text: #1a1a1a;
    --rg-text-muted: #6b6b6b;
    --rg-accent: #c9a07a;
    --rg-accent-hover: #b8926a;
    --rg-pink: #e8a0a8;
    --rg-radius: 24px;
    --rg-radius-sm: 16px;
    --rg-container: 1520px;
    --rg-font: 'Inter', system-ui, sans-serif;
    --rg-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --rg-ticker-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }

body.rg-body {
    margin: 0;
    font-family: var(--rg-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--rg-text);
    background: var(--rg-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.rg-page {
    overflow-x: hidden;
    min-width: 0;
}

.rg-main {
    overflow-x: hidden;
    min-width: 0;
}

.rg-container {
    width: 100%;
    max-width: var(--rg-container);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.rg-page-content {
    padding-top: 32px;
    padding-bottom: 48px;
}

@media (max-width: 768px) {
    :root {
        --rg-ticker-h: 32px;
        --rg-page-pad-x: 16px;
    }

    .rg-container {
        padding-left: var(--rg-page-pad-x, 16px);
        padding-right: var(--rg-page-pad-x, 16px);
    }

    .rg-page-content {
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .rg-ticker__item {
        font-size: 12px;
    }
}

/* Floating header */
.rg-header-wrap {
    position: fixed;
    top: calc(10px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
    left: 10px;
    right: 10px;
    z-index: 1000;
    pointer-events: none;
}

/* Top delivery ticker */
.rg-ticker {
    position: fixed;
    top: var(--rg-panel-offset, 0px);
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--rg-ticker-h, 36px);
    overflow: hidden;
    background: var(--rg-green);
    color: #fff;
    display: flex;
    align-items: center;
}

.rg-ticker__track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    white-space: nowrap;
    animation: rgTicker 28s linear infinite;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.rg-ticker__item {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 0 8px;
}

.rg-ticker__item::after {
    content: '•';
    margin-left: 48px;
    opacity: 0.55;
}

@keyframes rgTicker {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .rg-ticker__track {
        animation: none;
        justify-content: center;
        width: 100%;
        gap: 0;
    }

    .rg-ticker__item:not(:first-child),
    .rg-ticker__item::after {
        display: none;
    }
}

#panel {
    position: relative;
    z-index: 11000 !important;
}

html body #bx-panel,
html body #bx-panel.bx-panel-fixed,
html body #bx-panel.bx-panel-fixed-ie {
    z-index: 11000 !important;
}

.rg-header {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s, background 0.25s;
}

.rg-header-wrap.is-scrolled .rg-header {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.rg-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    min-height: 58px;
}

.rg-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    pointer-events: none;
}

.rg-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.rg-nav-open {
    overflow: hidden;
}

.rg-main:not(.rg-main--index):not(.rg-main--catalog) {
    padding-top: calc(88px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
}

.rg-main--index {
    padding-top: 0;
}

.rg-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.rg-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--rg-text);
}

.rg-logo img, .rg-logo svg { display: block; height: 32px; width: auto; }

.rg-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.rg-nav__link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.rg-nav__link:hover { color: var(--rg-green); }

.rg-nav__link--catalog {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rg-nav__static {
    display: contents;
}

.rg-nav__close,
.rg-nav__foot,
.rg-nav__logo {
    display: none;
}

.rg-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rg-header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    color: var(--rg-text);
    transition: color 0.2s;
}

.rg-header__phone:hover {
    color: var(--rg-green);
}

.rg-header__phone-icon {
    flex-shrink: 0;
    color: var(--rg-green);
}

.rg-header__socials { display: flex; gap: 8px; flex-shrink: 0; }

.rg-social--mono,
.rg-social.rg-social--mono {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rg-social--mono:hover,
.rg-social.rg-social--mono:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.rg-social--mono svg {
    display: block;
}

.rg-social--market,
.rg-social.rg-social--market {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    border: none;
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s, opacity 0.2s;
}

.rg-social--market img,
.rg-social.rg-social--market img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-social--market:hover,
.rg-social.rg-social--market:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.rg-social {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rg-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rg-green);
    transition: background 0.2s, color 0.2s;
}

.rg-social:hover { background: var(--rg-green); color: #fff; }

.rg-header__cart,
.rg-header__user {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--rg-text);
}

.rg-header__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--rg-green);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.rg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.rg-btn--accent {
    background: var(--rg-accent);
    color: #fff;
}

.rg-btn--accent:hover { background: var(--rg-accent-hover); }

.rg-btn--outline {
    background: transparent;
    border: 1.5px solid var(--rg-green);
    color: var(--rg-green);
}

.rg-btn--outline:hover {
    background: var(--rg-green);
    color: #fff;
}

/* Sections */
.rg-section { padding: 56px 0; }

.rg-section__title {
    font-family: var(--rg-font);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 0.9;
    margin: 0 0 12px;
}

.rg-section__subtitle {
    color: var(--rg-text-muted);
    margin: 0;
    font-size: 15px;
}

/* Hero */
.rg-hero {
    margin-bottom: 0;
}

.rg-hero__slide { min-height: 680px; }

.rg-hero__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 680px;
    position: relative;
    width: 100%;
}

.rg-hero__left {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    min-width: 0;
}

.rg-hero__right {
    position: relative;
    overflow: visible;
    min-height: 680px;
    min-width: 0;
}

.rg-hero__right {
    background: linear-gradient(160deg, #ebe8e3 0%, #e6e1d9 42%, #dce8e1 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: calc(100px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px)) max(20px, calc((100vw - var(--rg-container)) / 2 + 20px)) 40px 24px;
    box-sizing: border-box;
}

.rg-hero__banners-panel {
    position: relative;
    z-index: 1;
}

.rg-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.rg-hero__left .rg-hero__bg {
    object-position: center center;
}

.rg-hero__seal {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: clamp(110px, 12vw, 180px);
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: brightness(0) invert(1);
}

.rg-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.rg-hero__overlay {
    position: relative;
    z-index: 2;
    color: var(--rg-text);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-height: 680px;
    box-sizing: border-box;
    max-width: 100%;
}

.rg-hero__overlay--left {
    position: absolute;
    inset: 0;
    min-height: 0;
    color: #fff;
    padding: 48px 40px 32px max(20px, calc((100vw - var(--rg-container)) / 2 + 20px));
    background: linear-gradient(90deg, rgba(20, 28, 24, 0.82) 0%, rgba(20, 28, 24, 0.55) 50%, rgba(20, 28, 24, 0.12) 100%);
}

.rg-hero__overlay--left .rg-hero__title {
    color: #fff;
}

.rg-hero__overlay--left .rg-hero__desc,
.rg-hero__overlay--left .rg-hero__desc p {
    color: rgba(255, 255, 255, 0.88);
}

.rg-hero__overlay--left .rg-hero__overlay-body {
    padding-top: calc(120px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
}

.rg-hero__overlay-body {
    flex: 1;
    max-width: 100%;
    min-width: 0;
}

.rg-hero__overlay-foot {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
}

.rg-hero__overlay-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    margin-top: auto;
    width: 100%;
}

.rg-hero__mobile-intro {
    display: none;
}

.rg-hero__banners-panel {
    width: auto;
    max-width: none;
    min-width: 0;
    align-self: flex-end;
    margin-top: -48px;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    display: grid;
    justify-items: end;
    gap: 0;
}

.rg-hero__products-title {
    display: none;
}

.rg-hero__cta {
    width: auto;
    max-width: none;
    flex-shrink: 0;
}

.rg-hero__products-wrap {
    width: 520px;
    max-width: 520px;
    position: relative;
    min-width: 0;
    margin-left: auto;
    padding: 0;
    border-radius: 0;
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
}

.rg-hero__products {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.rg-hero__products .swiper-slide {
    width: 100%;
    flex-shrink: 0;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.rg-hero__product-mini {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-sizing: border-box;
    color: inherit;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform 0.2s ease;
}

.rg-hero__product-mini:hover {
    transform: translateY(-2px);
}

.rg-hero__product-mini__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    min-width: 0;
}

.rg-hero__product-mini__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 4px 0 2px;
    border-bottom: none;
    align-self: stretch;
    justify-content: flex-start;
}

.rg-hero__product-mini__name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--rg-text);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rg-hero__product-mini__desc {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #8a8a8a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rg-hero__product-mini__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin-top: auto;
    padding-top: 8px;
}

.rg-hero__product-mini__price {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--rg-text);
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.rg-hero__product-mini__media {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 18px;
    background: transparent;
    overflow: hidden;
}

.rg-hero__product-mini__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    display: block;
}

.rg-hero__product-mini__cart {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: var(--rg-accent);
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rg-hero__product-mini__cart:hover {
    background: var(--rg-accent-hover);
}

.rg-hero__product-mini__cart.is-added {
    background: var(--rg-green);
}

.rg-hero__banners-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
    margin-top: 0;
}

.rg-slider-btn.rg-slider-btn--sm {
    width: 36px;
    height: 36px;
}

.rg-hero__title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: min(420px, 100%);
}

.rg-hero__desc {
    margin-bottom: 28px;
    max-width: min(440px, 100%);
    font-size: 15px;
    line-height: 1.6;
    color: var(--rg-text-muted);
}

/* Slider buttons */
.rg-slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--rg-green);
    color: #fff;
    cursor: pointer;
    position: relative;
}

.rg-slider-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 2px solid currentColor;
    border-left: none;
    border-bottom: none;
    transform: translate(-50%, -50%) rotate(45deg);
}

[data-rg-prev]::before,
[data-rg-banners-prev]::before {
    transform: translate(-50%, -50%) rotate(-135deg);
}

[data-rg-banners-next]::before,
[data-rg-next]::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Product slider */
.rg-products-slider {
    padding-top: 67px;
    padding-bottom: 67px;
}

.rg-products-slider__layout {
    display: grid;
    grid-template-columns: 384px 1fr;
    gap: 32px;
    align-items: stretch;
    min-width: 0;
    width: 100%;
}

.rg-products-slider__side {
    border-radius: var(--rg-radius);
    overflow: hidden;
    background: #e8e4df;
    min-height: 480px;
    max-height: 624px;
    max-width: 100%;
    min-width: 0;
    position: relative;
}

.rg-products-slider__side .rg-img,
.rg-products-slider__side .rg-block-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.rg-products-slider__main {
    min-width: 0;
    max-width: 100%;
}

.rg-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(145deg, #e8e4df 0%, #d4cfc8 100%);
}

.rg-block-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.rg-block-image .bx-edit-area,
.rg-block-image span.bxhtmled-surrogate {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.rg-block-image img,
.rg-block-image .bx-edit-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rg-block-image__upload {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(26, 26, 26, 0.45);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.rg-block-image:hover .rg-block-image__upload,
.rg-block-image:focus-within .rg-block-image__upload {
    opacity: 1;
}

.rg-block-image__upload-text {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--rg-accent, #2d6a4f);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.rg-block-image.is-uploading .rg-block-image__upload {
    opacity: 1;
    pointer-events: none;
}

.rg-block-image.is-uploading .rg-block-image__upload-text::after {
    content: '…';
}

.rg-products-slider__side .rg-block-image {
    position: absolute;
    inset: 0;
}

.rg-assortment__visual .rg-block-image,
.rg-about__media .rg-block-image,
.rg-advantages__visual .rg-block-image {
    position: absolute;
    inset: 0;
}

.rg-assortment__visual,
.rg-about__media,
.rg-advantages__visual {
    position: relative;
}

.rg-products-slider__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.rg-products-slider__nav { display: flex; gap: 8px; }

.rg-products__swiper {
    overflow: hidden;
    width: 100%;
}

.rg-products__swiper .swiper-wrapper {
    align-items: stretch;
}

.rg-products__swiper .swiper-slide {
    width: 336px;
    max-width: 336px;
    height: auto;
    flex-shrink: 0;
}

.rg-product-card {
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rg-product-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
    padding: 14px 14px 14px;
    box-sizing: border-box;
}

.rg-product-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 14px;
    transition: transform 0.3s;
}

.rg-product-card:hover .rg-product-card__media img { transform: scale(1.03); }

.rg-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--rg-pink);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.rg-product-card__body {
    padding: 19px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rg-product-card__name {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: block;
    flex: 1;
}

.rg-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rg-product-card__price {
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
}

.rg-product-card__cart {
    flex-shrink: 0;
    min-height: 36px;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rg-product-card__cart.is-added {
    background: var(--rg-green);
    border-color: var(--rg-green);
    color: #fff;
}

.rg-product-card__unavailable {
    font-size: 12px;
    color: var(--rg-text-muted);
}

/* Assortment — tabs + stage (отличие от Taiganica: не вертикальный список категорий) */
.rg-assortment__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 28px;
}

.rg-assortment__intro {
    max-width: 640px;
    min-width: 0;
}

.rg-assortment__title {
    margin: 0 0 10px;
    max-width: none;
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--rg-text);
}

.rg-assortment__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--rg-text-muted);
}

.rg-assortment__subtitle p {
    margin: 0;
}

.rg-assortment__all {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 22px;
    font-size: 12px;
}

.rg-assortment__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.rg-assortment__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(42, 77, 63, 0.16);
    background: #fff;
    color: var(--rg-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rg-assortment__tab:hover {
    border-color: var(--rg-green);
    color: var(--rg-green);
}

.rg-assortment__tab.is-active {
    background: var(--rg-green);
    border-color: var(--rg-green);
    color: #fff;
}

.rg-assortment__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.rg-assortment__visual {
    position: relative;
    border-radius: var(--rg-radius);
    overflow: hidden;
    min-height: 420px;
    background: #e8e4df;
}

/* Absolute fill so banners show even before/without Swiper init */
.rg-assortment__swiper {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
    margin: 0;
}

.rg-assortment__swiper .swiper-wrapper,
.rg-assortment__swiper .swiper-slide {
    height: 100% !important;
    min-height: 100%;
}

.rg-assortment__banner {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rg-assortment__visual .rg-block-image,
.rg-assortment__visual-img,
.rg-assortment__visual img,
.rg-assortment__banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rg-assortment__visual-nav {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.rg-assortment__preview {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.rg-assortment__preview-panel {
    width: 100%;
    animation: rgAssortmentFade 0.28s ease;
}

.rg-assortment__preview-panel[hidden] {
    display: none !important;
}

@keyframes rgAssortmentFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.rg-assortment__preview-label {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rg-text-muted);
}

.rg-assortment__product {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 24px;
    border-radius: var(--rg-radius);
    background: #fff;
    border: 1px solid rgba(42, 77, 63, 0.08);
    box-shadow: 0 12px 36px rgba(30, 58, 47, 0.06);
    box-sizing: border-box;
}

.rg-assortment__product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
}

.rg-assortment__product-media img {
    max-width: 88%;
    max-height: 95%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.rg-assortment__product-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.rg-assortment__product-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rg-text);
    text-decoration: none;
}

.rg-assortment__product-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rg-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rg-assortment__product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.rg-assortment__product-price {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--rg-text);
    text-decoration: none;
}

.rg-assortment__product-cart {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 11px;
}

.rg-assortment__product-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--rg-green);
    text-decoration: none;
}

.rg-assortment__product-more:hover {
    text-decoration: underline;
}

/* Consultation — split layout */
.rg-consultation {
    padding: 0 0 16px;
}

.rg-about {
    padding-top: 16px;
}

.rg-consultation__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
    align-items: stretch;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
}

.rg-consultation__media {
    position: relative;
    min-height: 460px;
    border-radius: var(--rg-radius);
    overflow: hidden;
    background: #e8e4df;
}

.rg-consultation__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 48px 44px;
    background: #fff;
    border-radius: var(--rg-radius);
    border: 1px solid rgba(42, 77, 63, 0.08);
    box-shadow: 0 12px 36px rgba(30, 58, 47, 0.06);
    box-sizing: border-box;
}

.rg-consultation__media .rg-block-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rg-consultation__media img,
.rg-consultation__media .rg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rg-consultation__eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rg-green);
}

.rg-consultation__title {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--rg-text);
}

.rg-consultation__text {
    margin: 0;
    max-width: 38ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--rg-text-muted);
}

.rg-consultation__text p {
    margin: 0;
    color: inherit;
}

.rg-consultation__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.rg-consultation__btn {
    min-height: 46px;
    padding: 12px 20px;
    font-size: 12px;
}

.rg-consultation__phone {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--rg-text);
    text-decoration: none;
}

.rg-consultation__phone:hover {
    color: var(--rg-green);
}

/* About */
.rg-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius);
    padding: 40px 28px;
}

.rg-about__media {
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: #e8e4df;
}

.rg-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-about__title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px;
}

.rg-about__text p { margin: 0 0 12px; color: var(--rg-text-muted); }

/* Skin types (подбор ухода) */
.rg-skintypes {
    padding: 0 0 56px;
}

.rg-skintypes__inner {
    background: #1a2420;
    padding: 53px max(20px, calc((100vw - var(--rg-container)) / 2 + 20px));
}

.rg-skintypes__heading {
    margin: 0 0 56px;
    max-width: 18ch;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.rg-skintypes__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    min-height: 0;
    height: auto;
    align-items: start;
}

.rg-skintypes__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    overflow: visible;
    color: #fff;
    min-height: 0;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.rg-skintypes__card:hover {
    opacity: 0.92;
    color: #fff;
}

.rg-skintypes__title {
    position: static;
    left: auto;
    bottom: auto;
    writing-mode: horizontal-tb;
    transform: none;
    display: block;
    width: 100%;
    min-height: 2.6em;
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    white-space: normal;
    text-shadow: none;
}

.rg-skintypes__rule {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.rg-skintypes__media {
    position: relative;
    display: block;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #2a3530;
}

.rg-skintypes__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease, transform 0.55s ease;
}

.rg-skintypes__photo--alt {
    opacity: 0;
}

.rg-skintypes__card:hover .rg-skintypes__photo--main {
    transform: scale(1.04);
}

.rg-skintypes__card:hover .rg-skintypes__photo--alt {
    opacity: 1;
}

.rg-skintypes__card:hover .rg-skintypes__photo--main:has(+ .rg-skintypes__photo--alt) {
    opacity: 0;
}

.rg-skintypes__text {
    display: block;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    min-height: 3.8em;
}

.rg-skintypes__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.rg-skintypes__shade {
    display: none;
}

@media (max-width: 1200px) and (min-width: 1025px) {
    .rg-skintypes__grid {
        gap: 18px;
    }

    .rg-skintypes__title {
        font-size: 15px;
    }

    .rg-skintypes__text {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .rg-assortment__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 20px;
    }

    .rg-assortment__stage {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .rg-assortment__preview {
        order: 1;
    }

    .rg-assortment__visual {
        order: 2;
        min-height: 220px;
        aspect-ratio: 16 / 10;
        width: 100%;
    }

    .rg-assortment__product-media {
        height: 180px;
    }
}

.rg-catalog-chosen {
    width: 100%;
    margin: 28px 0 8px;
}

.rg-catalog-chosen__bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.rg-catalog-chosen__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rg-catalog-chosen__tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    font-weight: 500;
    color: var(--rg-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, color 0.2s;
}

.rg-catalog-chosen__tag:hover {
    border-color: var(--rg-green);
    color: var(--rg-green);
}

.rg-catalog-chosen__tag-x {
    font-size: 16px;
    line-height: 1;
    opacity: 0.55;
}

.rg-catalog-chosen__count {
    margin-top: 10px;
    font-size: 13px;
    color: var(--rg-text-muted);
}

/* Advantages */
.rg-advantages__grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 24px;
    align-items: start;
}

.rg-advantages__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.rg-advantages__cards {
    display: grid;
    gap: 16px;
}

.rg-advantage-card {
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius-sm);
    padding: 24px;
}

.rg-advantage-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0e6dc;
    margin-bottom: 16px;
    overflow: hidden;
}

.rg-advantage-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-advantage-card__icon--placeholder { background: #f0e6dc; }

.rg-advantage-card__name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.rg-advantage-card__text {
    color: var(--rg-text-muted);
    font-size: 14px;
}

.rg-advantages__visual {
    border-radius: var(--rg-radius);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #e8e4df;
}

.rg-advantages__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Awards & Partners */
.rg-awards__slide {
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.rg-awards__slide img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* Certificates */
.rg-certificates {
    background: #fff;
}

.rg-certificates__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 36px;
}

.rg-certificates__head {
    max-width: 640px;
    margin: 0;
    text-align: left;
}

.rg-certificates__title {
    margin: 0 0 12px;
    max-width: none;
}

.rg-certificates__subtitle {
    margin: 0;
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--rg-text-muted);
}

.rg-certificates__subtitle p {
    margin: 0;
}

.rg-certificates__nav {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    margin-top: 4px;
}

.rg-slider-btn--square {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.rg-certificates__swiper {
    overflow: hidden;
    width: 100%;
}

.rg-certificates__swiper .swiper-slide,
.rg-certificates__slide {
    width: auto;
    height: auto;
    box-sizing: border-box;
}

.rg-certificates__card {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f1ee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rg-certificates__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(30, 58, 47, 0.12);
}

.rg-certificates__img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 3 / 4.2;
    object-fit: contain;
    object-position: center top;
    display: block;
    background: #f3f1ee;
    border-radius: 18px;
}

/* Partners — layout like certificates */
.rg-partners {
    background: #fff;
}

.rg-partners__inner {
    padding: 0;
    background: none;
}

.rg-partners__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 40px;
}

.rg-partners__head {
    max-width: 640px;
    margin: 0;
    text-align: left;
}

.rg-partners__title {
    margin: 0 0 12px;
    max-width: none;
}

.rg-partners__subtitle {
    margin: 0;
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.55;
    color: var(--rg-text-muted);
}

.rg-partners__subtitle p {
    margin: 0;
}

.rg-partners__nav {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    margin-top: 4px;
}

.rg-partners__swiper {
    overflow: hidden;
    width: 100%;
    margin-left: 0;
}

.rg-partners__swiper .swiper-wrapper {
    justify-content: flex-start;
}

.rg-partners__swiper .swiper-slide,
.rg-partners__slide {
    height: auto;
    box-sizing: border-box;
}

.rg-partners__card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 220px;
    padding: 28px 24px 28px 8px;
    border-radius: 12px;
    background: #fff;
    border: none;
    box-shadow: none;
    transition: none;
}

a.rg-partners__card:hover {
    transform: none;
    box-shadow: none;
}

.rg-partners__img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
    margin: 0;
}

@media (max-width: 1024px) {
    .rg-partners__top {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 28px;
    }

    .rg-partners__nav {
        align-self: flex-end;
    }

    .rg-partners__card {
        min-height: 180px;
        padding: 24px 16px 24px 4px;
    }

    .rg-partners__img {
        max-height: 112px;
    }
}

@media (max-width: 768px) {
    .rg-partners__subtitle {
        font-size: 15px;
        max-width: none;
    }

    .rg-partners__card {
        min-height: 150px;
        padding: 20px 12px 20px 0;
        border-radius: 10px;
    }

    .rg-partners__img {
        max-height: 96px;
    }

    .rg-ticker__track {
        animation-duration: 40s;
    }
}

.rg-cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 28, 24, 0.78);
    cursor: zoom-out;
}

.rg-cert-lightbox.is-open {
    display: flex;
}

.rg-cert-lightbox__img {
    max-width: min(920px, 100%);
    max-height: min(90vh, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Services */
.rg-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.rg-service-card {
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius-sm);
    padding: 24px;
    text-align: center;
}

.rg-service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    overflow: hidden;
}

.rg-service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-service-card__name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.rg-service-card__text {
    font-size: 13px;
    color: var(--rg-text-muted);
}

/* FAQ */
.rg-faq-static {
    padding-top: 64px;
    padding-bottom: 72px;
}

.rg-faq-static__head {
    max-width: 640px;
    margin: 0 0 36px;
}

.rg-faq-static__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rg-green-light);
}

.rg-faq-static__title {
    margin-bottom: 12px;
}

.rg-faq-static__lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--rg-text-muted);
}

.rg-faq-static__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 28px;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(42, 77, 63, 0.04);
    border: 1px solid rgba(42, 77, 63, 0.08);
}

.rg-faq-static__more-text {
    margin: 0;
    flex: 1 1 280px;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--rg-text-muted);
}

.rg-faq-static__more .rg-btn {
    flex: 0 0 auto;
}

.rg-faq-page {
    margin: 0 0 8px;
}

.rg-faq-page__lead {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rg-text-muted);
}

.rg-faq-toc {
    margin: 0 0 36px;
    padding: 16px 18px;
    background: rgba(42, 77, 63, 0.04);
    border: 1px solid rgba(42, 77, 63, 0.08);
    border-radius: 16px;
}

.rg-faq-toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rg-faq-toc__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--rg-bg-white);
    border: 1px solid rgba(42, 77, 63, 0.1);
    color: var(--rg-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.rg-faq-toc__link:hover {
    border-color: rgba(42, 77, 63, 0.28);
    color: var(--rg-green);
}

.rg-faq-toc__count {
    min-width: 1.5em;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(42, 77, 63, 0.08);
    font-size: 11px;
    font-weight: 600;
    color: var(--rg-green);
    text-align: center;
}

.rg-faq-group {
    margin: 0 0 40px;
    scroll-margin-top: 96px;
}

.rg-faq-group__title {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--rg-text);
}

.rg-faq {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: none;
}

.rg-faq__item {
    width: 100%;
    background: var(--rg-bg-white);
    border-radius: 18px;
    margin-bottom: 0;
    overflow: hidden;
    border: 1px solid rgba(42, 77, 63, 0.08);
    box-shadow: 0 6px 24px rgba(26, 36, 30, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rg-faq__item[open] {
    border-color: rgba(42, 77, 63, 0.18);
    box-shadow: 0 10px 32px rgba(26, 36, 30, 0.08);
}

.rg-faq__question {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 24px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
    color: var(--rg-text);
    cursor: pointer;
    list-style: none;
}

.rg-faq__question::-webkit-details-marker { display: none; }

.rg-faq__num {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--rg-green);
    opacity: 0.7;
}

.rg-faq__question-text {
    min-width: 0;
}

.rg-faq__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(42, 77, 63, 0.08);
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.25s ease;
}

.rg-faq__icon::before,
.rg-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--rg-green);
    border-radius: 1px;
}

.rg-faq__icon::before {
    width: 12px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.rg-faq__icon::after {
    width: 2px;
    height: 12px;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.rg-faq__item[open] .rg-faq__icon {
    background: var(--rg-green);
    transform: rotate(0deg);
}

.rg-faq__item[open] .rg-faq__icon::before,
.rg-faq__item[open] .rg-faq__icon::after {
    background: #fff;
}

.rg-faq__item[open] .rg-faq__icon::after {
    opacity: 0;
}

.rg-faq__answer {
    padding: 0 24px 24px 60px;
    color: var(--rg-text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.rg-faq__answer p {
    margin: 0 0 8px;
}

.rg-faq__answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .rg-faq__question {
        gap: 12px;
        padding: 18px 16px;
        font-size: 15px;
    }

    .rg-faq__answer {
        padding: 0 16px 18px 16px;
    }
}

/* Footer */
.rg-footer {
    background: var(--rg-bg);
    padding: 48px 0 32px;
    margin-top: 32px;
}

.rg-footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    position: relative;
}

.rg-footer__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
}

.rg-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rg-footer__menu li { margin-bottom: 8px; }

.rg-footer__menu a {
    font-size: 14px;
    color: var(--rg-text-muted);
    transition: color 0.2s;
}

.rg-footer__menu a:hover { color: var(--rg-green); }

.rg-footer__catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--rg-green);
    cursor: pointer;
    transition: color 0.2s;
}

.rg-footer__catalog-link:hover { color: var(--rg-green-dark, #2d6b3a); }

.rg-footer__col--catalog .rg-footer__menu li:nth-child(n + 7) {
    display: none;
}

.rg-footer__col--catalog.is-expanded .rg-footer__menu li:nth-child(n + 7) {
    display: list-item;
}

.rg-footer__col--catalog.is-expanded .rg-footer__catalog-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-135deg);
    margin-top: 2px;
}

.rg-footer__col--catalog:not(.is-expanded) .rg-footer__catalog-link::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -2px;
}

.rg-footer__phone {
    font-size: 22px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.rg-back-top {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--rg-green);
    color: #fff;
    cursor: pointer;
    align-self: start;
}

.rg-footer__bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 32px;
}

.rg-footer__socials {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rg-social--footer {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--rg-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.rg-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.rg-footer__legal a {
    font-size: 12px;
    color: var(--rg-text-muted);
}

.rg-footer__email {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
    word-break: break-all;
}

.rg-footer__bottom-right p {
    font-size: 12px;
    color: var(--rg-text-muted);
    margin: 0;
}

/* Order — одностраничная форма */
.rg-order-page #bx-soa-order {
    max-width: var(--rg-container);
    margin: 0 auto;
}

.rg-order-page .bx-soa-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
}

.rg-order-page .bx-soa-section-title-container,
.rg-order-page .bx-soa-section-content {
    display: block !important;
}

.rg-order-page .bx-soa-sidebar {
    position: sticky;
    top: 100px;
}

.rg-order-page .bx-soa-cart-total {
    border-radius: var(--rg-radius-sm);
    background: var(--rg-bg-white);
    padding: 24px;
}

/* Simple order page */
.rg-order-wrap {
	max-width: 1100px;
	margin: 0 auto;
}

.rg-order-wrap__title {
	margin: 0 0 24px;
	padding: 0 8px;
	font-family: var(--rg-font);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: var(--rg-text);
}

.rg-page-content:has(.rg-order-wrap),
.rg-page-content:has(.rg-basket-page) {
	padding-top: 24px;
	padding-bottom: 64px;
	padding-left: 28px;
	padding-right: 28px;
}

@media (max-width: 640px) {
	.rg-page-content:has(.rg-order-wrap),
	.rg-page-content:has(.rg-basket-page) {
		padding-left: 16px;
		padding-right: 16px;
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}

	.rg-order-wrap__title {
		padding: 0 12px;
		margin-bottom: 20px;
	}
}

.rg-basket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px 80px;
    border-radius: var(--rg-radius);
    background: var(--rg-bg-white);
    box-shadow: var(--rg-shadow);
}

.rg-basket-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #f0ebe6;
    color: var(--rg-green);
}

.rg-basket-empty__title {
    margin: 0 0 10px;
    font-family: var(--rg-font);
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--rg-text);
}

.rg-basket-empty__text {
    margin: 0 0 28px;
    max-width: 360px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--rg-text-muted);
}

.rg-thanks {
	max-width: 640px;
	margin: 0 auto;
	padding: 48px 28px;
	border-radius: var(--rg-radius);
	background: var(--rg-bg-white);
	box-shadow: var(--rg-shadow);
	text-align: center;
	font-family: var(--rg-font);
}

.rg-thanks__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(42, 77, 63, 0.1);
	color: var(--rg-green);
	font-size: 28px;
	font-weight: 700;
}

.rg-thanks__title {
	margin: 0 0 12px;
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 500;
	letter-spacing: -0.03em;
}

.rg-thanks__text {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--rg-text-muted);
}

.rg-thanks__text strong { color: var(--rg-text); }

.rg-thanks__account {
	margin: 24px 0;
	padding: 18px 20px;
	border-radius: var(--rg-radius-sm);
	background: #f0ebe6;
	text-align: left;
	font-size: 14px;
	line-height: 1.5;
}

.rg-thanks__account-title {
	margin-bottom: 8px;
	font-weight: 700;
}

.rg-thanks__account ul {
	margin: 10px 0;
	padding-left: 18px;
}

.rg-thanks__hint {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--rg-text-muted);
}

.rg-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}

/* Responsive */
@media (max-width: 1024px) {
    .rg-header__burger {
        display: flex;
        order: -1;
    }

    .rg-header__inner {
        gap: 12px;
        padding: 8px 16px;
        min-height: 52px;
    }

    .rg-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: min(435px, 92vw);
        height: 100vh;
        height: 100dvh;
        max-height: none;
        flex: none;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        border-radius: 0;
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.15);
        transform: translateX(-105%);
        transition: transform 0.35s ease, visibility 0.35s;
        z-index: 1002;
        pointer-events: none;
        overflow: hidden;
        opacity: 1;
        visibility: hidden;
    }

    .rg-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .rg-nav__logo {
        display: block;
        position: absolute;
        top: 22px;
        left: 28px;
        z-index: 2;
        line-height: 0;
    }

    .rg-nav__logo img,
    .rg-nav__logo svg {
        display: block;
        height: 28px;
        width: auto;
    }

    .rg-nav__close {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2;
    }

    .rg-nav__close span {
        position: absolute;
        width: 22px;
        height: 2px;
        background: var(--rg-text);
        border-radius: 1px;
    }

    .rg-nav__close span:first-child {
        transform: rotate(45deg);
    }

    .rg-nav__close span:last-child {
        transform: rotate(-45deg);
    }

    .rg-nav__body {
        flex: 1;
        overflow-y: auto;
        padding: 64px 28px 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .rg-nav__catalog,
    .rg-nav__static,
    .rg-nav__catalog-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .rg-nav__link--catalog-root {
        display: none;
    }

    .rg-nav__static {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .rg-nav__link--catalog-section {
        text-transform: none;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    .rg-nav__foot {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px 28px 32px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        background: #fff;
    }

    .rg-nav__phone {
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .rg-nav__personal {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--rg-green);
    }

    .rg-nav__link {
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        font-size: 13px;
        letter-spacing: 0.08em;
    }

    .rg-nav__link:last-child {
        border-bottom: none;
    }

    .rg-header__phone--bar,
    .rg-header__user {
        display: none;
    }

    .rg-header__burger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .rg-header__burger.is-open span:nth-child(2) {
        opacity: 0;
    }

    .rg-header__burger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .rg-header__burger span {
        transition: transform 0.25s, opacity 0.25s;
    }

    .rg-main--index {
        padding-top: 0;
    }

    .rg-hero__split {
        display: block;
        position: relative;
        min-height: 620px;
    }

    .rg-hero__left {
        display: block !important;
        position: absolute;
        inset: 0;
        min-height: 100%;
        z-index: 0;
    }

    .rg-hero__overlay--left {
        position: absolute;
        inset: 0;
        min-height: 0;
        padding: calc(96px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px)) 20px 210px;
        background: linear-gradient(
            180deg,
            rgba(20, 28, 24, 0.88) 0%,
            rgba(20, 28, 24, 0.62) 32%,
            rgba(20, 28, 24, 0.28) 58%,
            rgba(20, 28, 24, 0.08) 100%
        );
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .rg-hero__overlay--left .rg-hero__overlay-body {
        padding-top: 12px;
    }

    .rg-hero__overlay-foot {
        display: none;
    }

    .rg-hero__overlay {
        min-height: 0;
    }

    .rg-hero__overlay--left .rg-hero__title {
        font-size: clamp(26px, 7vw, 34px);
        max-width: 100%;
        margin-bottom: 12px;
    }

    .rg-hero__overlay--left .rg-hero__desc {
        display: block;
        margin-bottom: 0;
        max-width: 100%;
        font-size: 13px;
        line-height: 1.55;
    }

    .rg-hero__overlay--left .rg-hero__desc,
    .rg-hero__overlay--left .rg-hero__desc p {
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
    }

    .rg-hero__seal {
        display: none !important;
    }

    .rg-hero__right {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 3;
        display: block;
        min-height: 0;
        width: 100%;
        padding: 0 20px 28px;
        background: transparent;
        background-image: none;
        box-sizing: border-box;
        pointer-events: none;
    }

    .rg-hero__banners-panel,
    .rg-hero__products-wrap,
    .rg-hero__product-mini {
        pointer-events: auto;
    }

    .rg-hero__mobile-intro {
        display: none !important;
    }

    .rg-hero__banners-panel {
        width: 100%;
        max-width: 100%;
        display: grid;
        justify-items: start;
        gap: 0;
        margin-top: -24px;
        margin-right: 0;
    }

    .rg-hero__products-title {
        display: none;
    }

    .rg-hero__products-wrap {
        width: min(100%, 480px);
        max-width: min(100%, 480px);
        align-self: flex-start;
        margin-left: 0;
        margin-right: auto;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .rg-hero__product-mini {
        max-width: 100%;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .rg-hero__product-mini__row {
        gap: 14px;
        padding: 16px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    }

    .rg-hero__product-mini__body {
        padding-top: 0;
        gap: 8px;
    }

    .rg-hero__product-mini__name {
        font-size: 15px;
        -webkit-line-clamp: 2;
        color: var(--rg-text);
    }

    .rg-hero__product-mini__desc {
        font-size: 12px;
        -webkit-line-clamp: 3;
        color: var(--rg-text-muted);
    }

    .rg-hero__product-mini__price {
        font-size: 22px;
        color: var(--rg-text);
    }

    .rg-hero__product-mini__media {
        width: 120px;
        height: 120px;
        border-radius: 14px;
    }

    .rg-hero__product-mini__cart {
        min-height: 32px;
        font-size: 10px;
        padding: 6px 12px;
    }

    .rg-products-slider__layout {
        display: block;
    }

    .rg-products-slider__side {
        display: none;
    }

    .rg-products-slider__main {
        width: 100%;
    }

    .rg-products__swiper .swiper-slide {
        width: 312px;
        max-width: 312px;
    }

    .rg-about__grid,
    .rg-advantages__grid,
    .rg-products-slider__layout {
        grid-template-columns: 1fr;
    }

    .rg-about__grid {
        padding: 28px 14px;
    }

    .rg-assortment__tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .rg-assortment__tab {
        min-height: 38px;
        padding: 7px 14px;
        font-size: 13px;
    }

    .rg-assortment__stage {
        grid-template-columns: 1fr;
    }

    .rg-assortment__visual {
        min-height: 220px;
    }

    .rg-assortment__product {
        padding: 18px;
    }

    .rg-skintypes__inner {
        padding: 40px 20px;
    }

    .rg-skintypes__heading {
        margin-bottom: 40px;
        max-width: 16ch;
        font-size: clamp(24px, 7vw, 32px);
    }

    .rg-skintypes__grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
        min-height: 0;
        gap: 24px 16px;
        padding: 0;
    }

    .rg-skintypes__card {
        min-height: 0;
        border-radius: 0;
        gap: 10px;
    }

    .rg-skintypes__card--all {
        grid-column: 1 / -1;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        padding: 28px 0 32px;
        margin-top: 8px;
    }

    .rg-skintypes__card--all .rg-skintypes__title {
        min-height: 0;
        width: 100%;
        max-width: 100%;
        text-align: left;
        margin: 0;
    }

    .rg-skintypes__card--all .rg-skintypes__rule {
        max-width: 120px;
        margin: 0;
    }

    .rg-skintypes__card--all .rg-skintypes__media {
        max-width: 220px;
        margin: 0;
    }

    .rg-skintypes__card--all .rg-skintypes__text {
        text-align: left;
        max-width: 360px;
    }

    .rg-skintypes__card--all .rg-skintypes__cta {
        display: inline-flex;
        justify-content: center;
        margin: 8px 0 0;
        padding: 12px 28px;
        border: 1.5px solid rgba(255, 255, 255, 0.85);
        border-radius: 999px;
        font-size: 12px;
    }

    .rg-skintypes__title {
        writing-mode: horizontal-tb;
        transform: none;
        left: auto;
        bottom: auto;
        right: auto;
        white-space: normal;
        font-size: 16px;
        min-height: 2.4em;
    }

    .rg-skintypes__media {
        max-width: 100%;
        width: 100%;
        aspect-ratio: 1;
        border-radius: 10px;
    }

    .rg-skintypes__text {
        min-height: 0;
        max-width: 100%;
        font-size: 12px;
    }

    .rg-skintypes__cta {
        font-size: 11px;
    }

    .rg-assortment__title {
        font-size: clamp(28px, 7vw, 36px);
    }

    .rg-assortment__subtitle {
        font-size: 14px;
    }

    .rg-assortment__product-name {
        font-size: 17px;
    }

    .rg-assortment__product-price {
        font-size: 22px;
    }

    .rg-consultation {
        padding: 0 0 12px;
    }

    .rg-about {
        padding-top: 12px;
    }

    .rg-consultation__layout {
        grid-template-columns: 1fr;
    }

    .rg-consultation__media {
        display: none;
    }

    .rg-consultation__body {
        padding: 36px 28px;
        gap: 14px;
    }

    .rg-certificates__top {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 24px;
    }

    .rg-certificates__nav {
        align-self: flex-end;
    }

    .rg-certificates__subtitle {
        max-width: none;
        font-size: 15px;
    }

    .rg-certificates__img {
        aspect-ratio: 3 / 4.2;
    }

    .rg-services__grid { grid-template-columns: repeat(2, 1fr); }

    .rg-footer__top,
    .rg-footer__bottom { grid-template-columns: 1fr; }

    .rg-footer__col--catalog .rg-footer__menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 16px;
        row-gap: 0;
    }

    .rg-footer__col--catalog .rg-footer__menu li {
        margin-bottom: 8px;
    }

    .rg-footer__col--catalog.is-expanded .rg-footer__menu li:nth-child(n + 7) {
        display: block;
    }
}

@media (max-width: 768px) {
    .rg-main--index {
        padding-top: 0;
    }

    .rg-header-wrap {
        top: calc(8px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
        left: 8px;
        right: 8px;
    }

    .rg-header {
        border-radius: 14px;
    }

    .rg-logo {
        flex: 1;
        min-width: 0;
    }

    .rg-header__actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .rg-main:not(.rg-main--index):not(.rg-main--catalog) {
        padding-top: calc(76px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
    }

    .rg-products__swiper .swiper-slide {
        width: 264px;
        max-width: 264px;
    }

    .rg-hero__mobile-intro .rg-hero__title {
        font-size: clamp(22px, 6vw, 28px);
    }

    .rg-hero__split {
        min-height: 580px;
    }

    .rg-hero__overlay--left {
        padding-top: calc(88px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
    }

    .rg-hero__right {
        padding-bottom: 24px;
    }

    .rg-consultation__body {
        padding: 28px 20px;
    }

    .rg-consultation__title {
        font-size: clamp(24px, 7vw, 30px);
    }

    .rg-consultation__text {
        font-size: 14px;
    }

    .rg-consultation__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rg-consultation__btn {
        justify-content: center;
        text-align: center;
    }

    .rg-certificates__img {
        border-radius: 14px;
    }

    .rg-certificates__card {
        border-radius: 14px;
    }

    .rg-certificates__subtitle {
        font-size: 14px;
    }

    .rg-services__grid { grid-template-columns: 1fr; }

    .rg-section { padding: 40px 0; }
}

@media (min-width: 1025px) {
    .rg-header__burger {
        display: none;
    }

    .rg-nav {
        position: static;
        width: auto;
        height: auto;
        max-height: none;
        flex: 1;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        visibility: visible;
        pointer-events: auto;
        overflow: visible;
    }

    .rg-nav__body {
        display: flex;
        align-items: center;
        gap: 16px;
        flex: 1;
        min-width: 0;
        padding: 0;
        overflow: visible;
        flex-wrap: nowrap;
        flex-direction: row;
    }

    .rg-nav__catalog {
        display: none;
    }

    .rg-nav__static,
    .rg-nav__catalog-list {
        display: contents;
    }

    .rg-nav__link--catalog-root {
        display: flex;
    }

    .rg-nav__link {
        white-space: nowrap;
        padding: 0;
        border-bottom: none;
    }

    .rg-nav__close,
    .rg-nav__foot,
    .rg-nav__logo {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .rg-logo img,
    .rg-logo svg {
        height: 28px;
    }
}

@media (min-width: 769px) {
    .rg-header-wrap {
        top: calc(12px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
        left: 16px;
        right: 16px;
        max-width: var(--rg-container);
        margin: 0 auto;
    }

    .rg-header__inner {
        padding: 10px 20px;
    }
}

@media (min-width: 1340px) {
    .rg-header-wrap {
        left: max(16px, calc((100% - var(--rg-container)) / 2));
        right: max(16px, calc((100% - var(--rg-container)) / 2));
    }
}

/* Bottom rectangular banners */
.rg-bottom-banners {
    padding-bottom: 64px;
}

.rg-bottom-banners__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.rg-bottom-banners__nav {
    display: flex;
    gap: 8px;
}

.rg-bottom-banners__swiper {
    overflow: hidden;
    width: 100%;
}

.rg-bottom-banners__swiper .swiper-slide {
    width: min(92%, 1100px);
    max-width: 1100px;
    flex-shrink: 0;
}

.rg-bottom-banner {
    display: block;
    position: relative;
    border-radius: var(--rg-radius);
    overflow: hidden;
    background: #e8e4df;
    color: #fff;
}

.rg-bottom-banner__img {
    width: 100%;
    height: auto;
    max-height: 420px;
    aspect-ratio: 2.4 / 1;
    object-fit: cover;
    display: block;
}

.rg-bottom-banner__overlay {
    position: absolute;
    inset: 0;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
    pointer-events: none;
}

.rg-bottom-banner__title {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.rg-bottom-banner__text {
    font-size: 15px;
    line-height: 1.5;
    max-width: 560px;
    opacity: 0.95;
}

.rg-bottom-banner__btn {
    margin-top: 16px;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .rg-bottom-banners__swiper .swiper-slide {
        width: 88%;
    }

    .rg-bottom-banner__overlay {
        padding: 20px 16px;
    }

    .rg-bottom-banner__img {
        aspect-ratio: 16 / 10;
        max-height: 240px;
    }
}

/* Catalog page */
.rg-main.rg-main--catalog {
    padding-top: 0;
}

.rg-main.rg-main--product {
    padding-top: calc(116px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
}

.rg-catalog-hero {
    --rg-catalog-hero-clearance: calc(88px + var(--rg-panel-offset, 0px) + var(--rg-ticker-h, 36px));
    --rg-catalog-hero-visible: 280px;
    position: relative;
    width: 100%;
    height: calc(var(--rg-catalog-hero-visible) + var(--rg-catalog-hero-clearance));
    max-height: none;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}

.rg-catalog-hero__img {
    width: 100%;
    height: 100%;
    min-height: calc(var(--rg-catalog-hero-visible) + var(--rg-catalog-hero-clearance));
    object-fit: cover;
    display: block;
}

.rg-catalog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.18) 28%,
        rgba(0, 0, 0, 0.48) 100%
    );
    pointer-events: none;
}

.rg-catalog-hero__content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 28px 20px 32px;
}

.rg-breadcrumbs--hero {
    margin-bottom: 10px;
}

.rg-breadcrumbs--hero .rg-breadcrumbs__list {
    color: rgba(255, 255, 255, 0.82);
}

.rg-breadcrumbs--hero .rg-breadcrumbs__item:not(:last-child)::after {
    color: rgba(255, 255, 255, 0.5);
}

.rg-breadcrumbs--hero .rg-breadcrumbs__link {
    color: rgba(255, 255, 255, 0.82);
}

.rg-breadcrumbs--hero .rg-breadcrumbs__link:hover {
    color: #fff;
}

.rg-breadcrumbs--hero .rg-breadcrumbs__current {
    color: #fff;
}

.rg-catalog-hero .rg-catalog-title {
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.rg-breadcrumbs {
    margin-bottom: 12px;
}

.rg-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--rg-text-muted);
}

.rg-breadcrumbs__item:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--rg-text-muted);
    opacity: 0.6;
}

.rg-breadcrumbs__link {
    color: var(--rg-text-muted);
    transition: color 0.2s;
}

.rg-breadcrumbs__link:hover {
    color: var(--rg-green);
}

.rg-breadcrumbs__current {
    color: var(--rg-text);
}

.rg-catalog-title {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}

.rg-catalog-toolbar {
    padding: 20px 20px 24px;
    text-align: left;
}

.rg-catalog-tabs-wrap {
    margin-bottom: 0;
    width: 100%;
}

.rg-catalog-nav {
    display: block;
    width: 100%;
}

.rg-catalog-nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rg-catalog-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 66px;
    padding: 0 22px;
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    color: var(--rg-text);
    background: var(--rg-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--rg-radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.rg-catalog-nav__link:hover {
    color: var(--rg-green);
    background: var(--rg-bg-white);
    border-color: var(--rg-green);
    box-shadow: 0 4px 12px rgba(42, 77, 63, 0.1);
}

.rg-catalog-nav__link.is-active {
    color: var(--rg-green);
    background: var(--rg-bg-white);
    border: 1.5px solid var(--rg-green);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(42, 77, 63, 0.12);
}

.rg-catalog-filter {
    margin-bottom: 8px;
}

.rg-catalog-filter .smart-filter,
.rg-catalog-filter .bx-green.smart-filter {
    --primary: var(--rg-green);
    --theme-color-primary: var(--rg-green);
    --theme-color-second: var(--rg-green-dark);
    --theme-color-light: var(--rg-green-light);
    margin-bottom: 0;
    background: transparent;
    border: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
    font-family: var(--rg-font);
}

.rg-catalog-filter .smart-filter-title {
    display: none;
}

.rg-catalog-filter .smart-filter-section {
    padding: 0;
}

.rg-catalog-filter .smart-filter-form > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
}

.rg-catalog-filter .smart-filter-form > .row > [class*='col'] {
    padding: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: 280px;
    min-width: 200px;
}

.rg-catalog-filter .smart-filter-parameters-box {
    background: var(--rg-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--rg-radius-sm);
    padding: 14px 16px;
    box-shadow: var(--rg-shadow);
}

.rg-catalog-filter .smart-filter-parameters-box-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 0;
    width: 100%;
}

.rg-catalog-filter .smart-filter-parameters-box-title-text {
    color: var(--rg-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: default;
}

.rg-catalog-filter .smart-filter-angle {
    display: none;
}

.rg-catalog-filter .smart-filter-block {
    display: block !important;
}

.rg-catalog-filter .smart-filter-parameters-box-container {
    padding: 0;
}

.rg-catalog-filter .form-control,
.rg-catalog-filter .form-control-sm {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-family: var(--rg-font);
    font-size: 13px;
    min-height: 38px;
    box-shadow: none;
}

.rg-catalog-filter .form-control:focus {
    border-color: var(--rg-green);
    box-shadow: 0 0 0 2px rgba(42, 77, 63, 0.12);
}

.rg-catalog-filter .smart-filter-slider-track-container {
    margin-top: 12px;
    padding: 0 4px;
}

.rg-catalog-filter .smart-filter-slider-track {
    height: 4px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}

.rg-catalog-filter .smart-filter-slider-handle {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    background: var(--rg-green);
    border-radius: 50%;
    top: -6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rg-catalog-filter .smart-filter-slider-price-bar-v,
.rg-catalog-filter .smart-filter-slider-price-bar-vd,
.rg-catalog-filter .smart-filter-slider-price-bar-vn {
    background: var(--rg-green);
}

.rg-catalog-filter .smart-filter-slider-ruler {
    display: none;
}

.rg-catalog-filter .smart-filter-dropdown-block {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    min-height: 38px;
    padding: 8px 12px;
}

.rg-catalog-filter .smart-filter-dropdown-text {
    font-size: 13px;
    color: var(--rg-text);
}

.rg-catalog-filter .smart-filter-dropdown-arrow {
    border-color: var(--rg-text-muted) transparent transparent;
}

.rg-catalog-filter .smart-filter-dropdown-popup {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--rg-shadow);
    margin-top: 6px;
}

.rg-catalog-filter .smart-filter-dropdown-label {
    font-size: 13px;
    padding: 8px 12px;
    color: var(--rg-text);
}

.rg-catalog-filter .smart-filter-dropdown-label:hover,
.rg-catalog-filter .smart-filter-dropdown-label.selected {
    background: rgba(42, 77, 63, 0.08);
    color: var(--rg-green);
}

.rg-catalog-filter .smart-filter-checkbox-text,
.rg-catalog-filter .smart-filter-param-text {
    font-size: 13px;
    color: var(--rg-text);
}

.rg-catalog-filter .form-check-input:checked {
    background-color: var(--rg-green);
    border-color: var(--rg-green);
}

.rg-catalog-filter .smart-filter-button-box {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
    margin-top: 4px;
}

.rg-catalog-filter .smart-filter-button-box .smart-filter-parameters-box-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.rg-catalog-filter #set_filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--rg-green);
    color: #fff;
    font-family: var(--rg-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.rg-catalog-filter #set_filter:hover {
    background: var(--rg-green-dark);
}

.rg-catalog-filter #del_filter {
    border: 0;
    background: transparent;
    color: var(--rg-text-muted);
    font-family: var(--rg-font);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rg-catalog-filter #del_filter:hover {
    color: var(--rg-green);
}

.rg-catalog-filter .smart-filter-popup-result {
    display: none !important;
}

.rg-catalog-filter .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--rg-radius-sm);
    box-shadow: none;
}

.rg-catalog-filter .card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rg-catalog-products {
    padding: 0 20px 48px;
}

.rg-catalog-main {
    min-width: 0;
}

.rg-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 20px;
}

.rg-catalog-card {
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.rg-catalog-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: #fff;
    overflow: hidden;
    padding: 14px 14px 14px;
    box-sizing: border-box;
}

.rg-catalog-card__media img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    transition: transform 0.3s;
}

.rg-catalog-card:hover .rg-catalog-card__media img {
    transform: scale(1.03);
}

.rg-catalog-card__body {
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rg-catalog-card__name {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
    display: block;
    flex: 1;
}

.rg-catalog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rg-catalog-card__price {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.rg-catalog-card__cart {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rg-catalog-card__cart.is-added {
    background: var(--rg-green);
    border-color: var(--rg-green);
    color: #fff;
}

.rg-catalog-card__unavailable {
    font-size: 12px;
    color: var(--rg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rg-catalog-empty,
.rg-catalog-pager {
    margin-top: 24px;
}

.rg-pager__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rg-pager__item {
    display: flex;
    align-items: center;
}

.rg-pager__link,
.rg-pager__current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.rg-pager__link {
    color: var(--rg-text);
    background: var(--rg-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rg-pager__link:hover {
    border-color: var(--rg-green);
    color: var(--rg-green);
}

.rg-pager__current {
    background: var(--rg-green);
    color: #fff;
}

.rg-pager__item--sep {
    min-width: 24px;
    color: var(--rg-text-muted);
    font-size: 14px;
    justify-content: center;
}

.rg-pager__link--prev,
.rg-pager__link--next {
    position: relative;
}

.rg-pager__link--prev::before,
.rg-pager__link--next::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-top: 0;
    border-right: 0;
    transform: rotate(45deg);
}

.rg-pager__link--next::before {
    transform: rotate(-135deg);
}

@media (max-width: 1400px) {
    .rg-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .rg-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rg-catalog-filter .smart-filter-form > .row > [class*='col'] {
        max-width: 240px;
        min-width: 180px;
    }
}

@media (max-width: 1024px) {
    .rg-catalog-hero__content {
        padding: 20px 20px 24px;
    }

    .rg-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .rg-catalog-hero {
        --rg-catalog-hero-visible: 160px;
    }

    .rg-catalog-nav__list {
        justify-content: flex-start;
    }

    .rg-catalog-nav__link {
        height: 56px;
        padding: 0 16px;
        font-size: 14px;
    }

    .rg-catalog-filter .smart-filter-form > .row > [class*='col'] {
        max-width: none;
        min-width: 0;
        flex: 1 1 calc(50% - 8px);
    }
}

/* Static / info pages */
.rg-static-page {
    padding-bottom: 16px;
}

.rg-breadcrumbs--static {
    margin-bottom: 20px;
}

.rg-static-page__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
}

.rg-static-page__subtitle {
    margin: 0 0 28px;
    color: var(--rg-text-muted);
    font-size: 16px;
    line-height: 1.55;
    max-width: 720px;
}

.rg-static-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.rg-static-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rg-static-nav__link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--rg-radius-sm);
    color: var(--rg-text);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.rg-static-nav__link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--rg-green);
}

.rg-static-nav__link.is-active {
    background: rgba(45, 106, 79, 0.1);
    color: var(--rg-green);
    font-weight: 600;
}

.rg-static-prose {
    color: var(--rg-text);
    line-height: 1.7;
    font-size: 15px;
}

.rg-static-prose h2,
.rg-static-prose h3,
.rg-static-prose h4 {
    margin: 28px 0 12px;
    line-height: 1.3;
    font-weight: 700;
}

.rg-static-prose h2 { font-size: 22px; }
.rg-static-prose h3 { font-size: 18px; }
.rg-static-prose h4 { font-size: 16px; }

.rg-static-prose p,
.rg-static-prose ul,
.rg-static-prose ol {
    margin: 0 0 14px;
}

.rg-static-prose ul,
.rg-static-prose ol {
    padding-left: 1.25rem;
}

.rg-static-prose a {
    color: var(--rg-green);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rg-static-prose a:hover {
    color: var(--rg-accent-hover);
}

.rg-static-prose .rg-btn {
    text-decoration: none;
    letter-spacing: 0.06em;
}

.rg-static-prose .rg-btn--accent {
    background: var(--rg-green);
    color: #fff;
    border: 1.5px solid var(--rg-green);
}

.rg-static-prose .rg-btn--accent:hover {
    background: var(--rg-green-dark);
    border-color: var(--rg-green-dark);
    color: #fff;
}

.rg-static-prose .rg-btn--outline {
    background: #fff;
    border: 1.5px solid var(--rg-green);
    color: var(--rg-green);
}

.rg-static-prose .rg-btn--outline:hover {
    background: var(--rg-green);
    border-color: var(--rg-green);
    color: #fff;
}

.rg-static-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.rg-static-prose th,
.rg-static-prose td {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.rg-static-prose th {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.rg-static-prose blockquote {
    margin: 16px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--rg-green);
    background: rgba(45, 106, 79, 0.06);
    border-radius: 0 var(--rg-radius-sm) var(--rg-radius-sm) 0;
}

.rg-static-section {
    margin-bottom: 36px;
}

.rg-static-section__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
}

.rg-static-section .rg-faq {
    margin-top: 8px;
}

.rg-static-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Help / buyers pages */
.rg-static-prose .rg-help-steps,
.rg-static-prose .rg-help-rekv {
    list-style: none;
    margin: 8px 0 28px;
    padding: 0;
}

.rg-help-steps {
    display: grid;
    gap: 14px;
    counter-reset: rg-help-step;
}

.rg-help-steps__item {
    counter-increment: rg-help-step;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px 16px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fff;
}

.rg-help-steps__item::before {
    content: counter(rg-help-step);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(39, 101, 46, 0.1);
    color: var(--rg-green);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
}

.rg-help-steps__title {
    margin: 2px 0 6px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.rg-help-steps__text {
    margin: 0;
    color: var(--rg-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rg-help-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 8px 0 28px;
}

.rg-help-card {
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: #fff;
}

.rg-help-card__title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}

.rg-help-card__text {
    margin: 0;
    color: var(--rg-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rg-help-note {
    margin: 0 0 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(39, 101, 46, 0.08);
    border: 1px solid rgba(39, 101, 46, 0.12);
    font-size: 14px;
    line-height: 1.55;
}

.rg-help-note p {
    margin: 0;
}

.rg-help-note p + p {
    margin-top: 8px;
}

.rg-help-rekv {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.rg-help-rekv__row {
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 8px 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    line-height: 1.5;
}

.rg-help-rekv__label {
    color: var(--rg-text-muted);
}

.rg-help-rekv__value {
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 768px) {
    .rg-help-cards {
        grid-template-columns: 1fr;
    }

    .rg-help-steps__item {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 16px;
    }

    .rg-help-steps__item::before {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .rg-help-rekv__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.rg-company-video {
    margin-bottom: 28px;
}

.rg-company-video__wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--rg-radius);
    overflow: hidden;
    background: #000;
}

.rg-company-video__wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.rg-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.rg-contacts-card {
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius-sm);
    padding: 22px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rg-contacts-card__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.rg-static-prose .rg-contacts-card__title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.rg-contacts-card__value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--rg-text);
    text-decoration: none;
    line-height: 1.35;
}

.rg-contacts-card__value:hover {
    color: var(--rg-green);
}

.rg-contacts-card__value--text {
    font-size: 16px;
    font-weight: 600;
}

.rg-contacts-card__hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--rg-text-muted);
}

.rg-contacts-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.rg-contacts-card__socials a {
    font-weight: 600;
    color: var(--rg-green);
}

.rg-static-map {
    border-radius: var(--rg-radius);
    overflow: hidden;
    margin-bottom: 28px;
    background: #eceae6;
}

.rg-static-map__frame {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.rg-contacts-extra h2 {
    font-size: 20px;
    margin: 0 0 12px;
}

.rg-contacts-extra__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rg-contacts-extra__list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
    .rg-static-page__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rg-static-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rg-static-nav__link {
        padding: 10px 14px;
        background: var(--rg-bg-white);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 768px) {
    .rg-contacts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .rg-contacts-card {
        padding: 18px 16px;
    }

    .rg-static-page__title {
        margin-bottom: 10px;
    }

    .rg-static-page__subtitle {
        margin-bottom: 22px;
        font-size: 15px;
    }

    .rg-static-section {
        margin-bottom: 28px;
    }

    .rg-static-map__frame {
        height: 280px;
    }

    .rg-help-cards {
        gap: 12px;
        margin-bottom: 22px;
    }

    .rg-help-card {
        padding: 16px;
    }
}

/* Cookie consent (dbogdanoff.cookie) — site-wide */
.legacy-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 12px;
    z-index: 9999;
    color: var(--rg-text);
    font-family: var(--rg-font);
    pointer-events: none;
}

.legacy-cookie > div {
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(42, 77, 63, 0.12);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    color: var(--rg-text) !important;
    font-size: 14px !important;
    line-height: 1.45;
}

.legacy-cookie__text {
    flex: 1;
    min-width: 0;
    color: var(--rg-text);
}

.legacy-cookie__text a,
body .legacy-cookie__text a {
    color: var(--rg-green) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.legacy-cookie__text a:hover,
body .legacy-cookie__text a:hover {
    color: var(--rg-green-dark) !important;
}

.legacy-cookie img {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    opacity: 0.55;
    filter: brightness(0) saturate(100%);
    transition: opacity 0.2s;
}

.legacy-cookie img:hover {
    opacity: 1;
}

.legacy-cookie .button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--rg-green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.legacy-cookie .button:hover {
    background: var(--rg-green-dark);
}

@media (min-width: 640px) {
    .legacy-cookie {
        bottom: 16px;
        padding: 0 20px;
    }

    .legacy-cookie > div {
        width: auto;
        min-width: 420px;
        margin-bottom: 0;
        padding: 12px 14px 12px 18px;
    }
}

@media (max-width: 540px) {
    .legacy-cookie > div {
        margin-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .rg-catalog-card__footer,
    .rg-product-card__footer {
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .rg-catalog-card__cart,
    .rg-product-card__cart,
    .rg-hero__product-mini__cart,
    .rg-assortment__product-cart,
    button[data-rg-add-basket].rg-btn {
        white-space: nowrap;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        min-height: 40px;
        padding: 10px 14px;
        letter-spacing: 0.04em;
    }

    .rg-hero__product-mini__meta {
        flex-wrap: wrap;
    }

    .rg-hero__product-mini__cart {
        flex: 1 1 100%;
    }
}

@media (max-width: 540px) {
    .rg-catalog-card__cart,
    .rg-product-card__cart,
    button[data-rg-add-basket].rg-btn {
        font-size: 11px;
        padding: 10px 12px;
    }
}

/* Bitrix edit areas */
.bx-edit-area { position: relative; }

/* Auth / register */
.rg-auth {
    display: flex;
    justify-content: center;
    padding: 24px 0 48px;
}

.rg-auth__card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 1px solid rgba(42, 77, 63, 0.08);
    border-radius: var(--rg-radius, 16px);
    box-shadow: 0 12px 36px rgba(30, 58, 47, 0.06);
    padding: 36px 32px;
}

.rg-auth__title {
    margin: 0 0 24px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--rg-text, #1a2e24);
}

.rg-auth__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(42, 77, 63, 0.08);
}

.rg-auth__links a {
    color: var(--rg-green, #27652e);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.rg-auth__links a:hover {
    text-decoration: underline;
}

.rg-auth .bx-authform,
.rg-auth .bx-auth-reg {
    max-width: none;
}

.rg-auth .bx-authform .bx-title {
    display: none;
}

.rg-auth .bx-authform-input-container input[type="text"],
.rg-auth .bx-authform-input-container input[type="password"],
.rg-auth .bx-authform-input-container input[type="email"],
.rg-auth input[type="text"],
.rg-auth input[type="password"],
.rg-auth input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(42, 77, 63, 0.18);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
}

.rg-auth .bx-authform-formgroup-container {
    margin-bottom: 16px;
}

.rg-auth .btn,
.rg-auth input[type="submit"],
.rg-auth button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: var(--rg-green, #27652e);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.rg-auth .btn:hover,
.rg-auth input[type="submit"]:hover,
.rg-auth button[type="submit"]:hover {
    opacity: 0.92;
}

@media (max-width: 540px) {
    .rg-auth__card {
        padding: 28px 20px;
    }

    .rg-auth__title {
        font-size: 24px;
    }
}

/* Personal cabinet */
.rg-personal {
    max-width: 920px;
    margin: 0 auto;
}

.rg-personal__title {
    margin: 0 0 12px;
    font-family: var(--rg-font);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--rg-text);
}

.rg-personal__hello {
    margin: 0 0 28px;
    font-size: 15px;
    color: var(--rg-text-muted);
    line-height: 1.5;
}

.rg-personal__hello strong {
    color: var(--rg-text);
    font-weight: 600;
}

.rg-personal__email {
    display: block;
    margin-top: 4px;
    font-size: 14px;
}

.rg-personal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rg-personal__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    background: var(--rg-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--rg-radius-sm);
    box-shadow: var(--rg-shadow);
    transition: transform 0.2s, border-color 0.2s;
}

.rg-personal__card:hover {
    transform: translateY(-2px);
    border-color: rgba(42, 77, 63, 0.25);
}

.rg-personal__card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--rg-text);
}

.rg-personal__card-text {
    font-size: 13px;
    color: var(--rg-text-muted);
    line-height: 1.4;
}

.rg-personal__foot {
    margin-top: 28px;
}

.rg-personal__back {
    margin: 0 0 16px;
    font-size: 14px;
}

.rg-personal__back a {
    color: var(--rg-green);
    font-weight: 500;
}

.rg-personal--form .profile-block-hidden,
.rg-personal--form .profile-link-block {
    display: none !important;
}

.rg-personal--form form {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rg-personal--form .bx-authform-label-container,
.rg-personal--form label,
.rg-personal--form .field-name {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rg-text);
}

.rg-personal--form input[type="text"],
.rg-personal--form input[type="password"],
.rg-personal--form input[type="email"],
.rg-personal--form input[type="tel"],
.rg-personal--form select,
.rg-personal--form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    background: #fff;
}

.rg-personal--form input[type="submit"],
.rg-personal--form .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: var(--rg-green);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
}

@media (max-width: 640px) {
    .rg-personal__grid {
        grid-template-columns: 1fr;
    }
}



/* ========== Blog ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rg-blog {
    padding-bottom: 24px;
}

.rg-blog__head {
    margin-bottom: 28px;
}

.rg-blog__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rg-blog__title {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--rg-text);
}

.rg-blog__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--rg-text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.rg-blog__search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    background: var(--rg-bg-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rg-blog__search:focus-within {
    border-color: var(--rg-green);
    box-shadow: 0 4px 16px rgba(39, 101, 46, 0.1);
}

.rg-blog__search-label {
    display: flex;
    align-items: center;
    padding-left: 18px;
    color: var(--rg-text-muted);
}

.rg-blog__search-icon {
    display: block;
    flex-shrink: 0;
}

.rg-blog__search-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 48px 0 12px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--rg-text);
    outline: none;
}

.rg-blog__search-input::placeholder {
    color: #a8a8a8;
}

.rg-blog__search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--rg-text-muted);
    font-size: 22px;
    line-height: 1;
    text-decoration: none;
}

.rg-blog__search-clear:hover {
    color: var(--rg-text);
    background: rgba(0, 0, 0, 0.05);
}

.rg-blog-nav {
    margin: 0 0 28px;
}

.rg-blog-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rg-blog-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--rg-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--rg-bg-white);
    color: var(--rg-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.rg-blog-nav__link:hover {
    color: var(--rg-green);
    border-color: var(--rg-green);
}

.rg-blog-nav__link.is-active {
    color: var(--rg-green);
    border: 1.5px solid var(--rg-green);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(42, 77, 63, 0.1);
}

.rg-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 20px;
}

.rg-blog-card {
    min-width: 0;
}

.rg-blog-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rg-blog-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--rg-radius);
    overflow: hidden;
    background: #e8ebe6;
    margin-bottom: 12px;
}

.rg-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.rg-blog-card__link:hover .rg-blog-card__media img {
    transform: scale(1.04);
}

.rg-blog-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 30%, rgba(39, 101, 46, 0.18), transparent 55%),
        linear-gradient(135deg, #dfe7df, #f2efe9);
}

.rg-blog-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--rg-text);
}

.rg-blog-card__link:hover .rg-blog-card__title {
    color: var(--rg-green);
}

.rg-blog__empty {
    padding: 48px 24px;
    text-align: center;
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius);
    color: var(--rg-text-muted);
}

.rg-blog__empty p {
    margin: 0 0 16px;
}

.rg-blog__pager {
    margin-top: 36px;
}

/* Detail */
.rg-blog-detail {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.rg-blog-detail__hero {
    width: 100%;
    box-sizing: border-box;
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius);
    padding: 32px 40px 36px;
    box-shadow: var(--rg-shadow);
    margin-bottom: 8px;
}

.rg-blog-detail__hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.rg-blog-detail__title {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rg-text);
    flex: 1;
    min-width: 0;
}

.rg-blog-detail__share {
    position: relative;
    flex-shrink: 0;
}

.rg-blog-detail__share-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: var(--rg-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.rg-blog-detail__share-btn:hover,
.rg-blog-detail__share-btn[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.1);
}

.rg-blog-detail__share-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 20;
    min-width: 200px;
    padding: 8px;
    border-radius: var(--rg-radius-sm);
    background: var(--rg-bg-white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rg-blog-detail__share-menu[hidden] {
    display: none;
}

.rg-blog-detail__share-menu a,
.rg-blog-detail__share-menu button {
    appearance: none;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--rg-text);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.rg-blog-detail__share-menu a:hover,
.rg-blog-detail__share-menu button:hover {
    background: rgba(39, 101, 46, 0.08);
    color: var(--rg-green);
}

.rg-blog-detail__toc-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.rg-blog-detail__toc-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rg-blog-detail__toc-item a {
    display: inline;
    color: var(--rg-text);
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.35);
    font-size: 15px;
    line-height: 1.45;
}

.rg-blog-detail__toc-item a::before {
    content: "›";
    display: inline-block;
    margin-right: 8px;
    color: var(--rg-text-muted);
    border-bottom: 0;
}

.rg-blog-detail__toc-item a:hover {
    color: var(--rg-green);
    border-bottom-color: var(--rg-green);
}

.rg-blog-detail__toc-item--h3 a {
    padding-left: 16px;
}

.rg-blog-detail__readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: rgba(39, 101, 46, 0.12);
    color: var(--rg-green);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.rg-blog-detail__readmore:hover {
    background: rgba(39, 101, 46, 0.18);
    color: var(--rg-green-dark);
}

.rg-blog-detail__divider {
    height: 0;
    border: 0;
    border-top: 1px dotted rgba(0, 0, 0, 0.2);
    margin: 28px 40px;
}

.rg-blog-detail__content {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.7;
    padding: 0 40px;
}

.rg-blog-detail__lead {
    margin-bottom: 18px;
    color: var(--rg-text);
}

.rg-blog-detail__cover {
    float: right;
    width: min(42%, 340px);
    margin: 4px 0 18px 28px;
    border-radius: var(--rg-radius-sm);
    overflow: hidden;
    background: #e8ebe6;
}

.rg-blog-detail__cover img {
    display: block;
    width: 100%;
    height: auto;
}

.rg-blog-detail__content::after {
    content: "";
    display: table;
    clear: both;
}

.rg-blog-detail__back {
    margin-top: 40px;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .rg-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .rg-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 16px;
    }

    .rg-blog-detail__hero {
        padding: 22px 20px 24px;
    }

    .rg-blog-detail__content,
    .rg-blog-detail__back {
        padding-left: 20px;
        padding-right: 20px;
    }

    .rg-blog-detail__divider {
        margin-left: 20px;
        margin-right: 20px;
    }

    .rg-blog-detail__hero-top {
        flex-direction: column;
        gap: 12px;
    }

    .rg-blog-detail__cover {
        float: none;
        width: 100%;
        margin: 0 0 20px;
    }
}

@media (max-width: 640px) {
    .rg-blog-grid {
        grid-template-columns: 1fr;
    }

    .rg-blog__search-input {
        height: 48px;
    }

    .rg-blog-nav__link {
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }
}

/* ========== Blog admin editor ========== */
.rg-blog__title-row {
    flex-wrap: wrap;
}

.rg-blog__create {
    margin-left: auto;
    min-height: 44px;
    padding: 0 18px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.rg-blog-card {
    position: relative;
}

.rg-blog-card__edit {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    appearance: none;
    border: 0;
    cursor: pointer;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--rg-text);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.rg-blog-card:hover .rg-blog-card__edit,
.rg-blog-card:focus-within .rg-blog-card__edit {
    opacity: 1;
    transform: none;
}

.rg-blog-detail__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.rg-blog-detail__edit {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
}

body.rg-blog-ed-open {
    overflow: hidden;
}

.rg-blog-ed {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 124px 24px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.rg-blog-ed[hidden] {
    display: none !important;
}

.rg-blog-ed__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 24, 0.48);
}

.rg-blog-ed.is-loading .rg-blog-ed__body {
    pointer-events: none;
    opacity: 0.72;
}

.rg-blog-ed__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: calc(100vh - 148px);
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--rg-bg-white);
    border-radius: var(--rg-radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.rg-blog-ed.is-busy .rg-blog-ed__dialog {
    opacity: 0.72;
    pointer-events: none;
}

.rg-blog-ed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafaf8;
    flex-shrink: 0;
}

.rg-blog-ed__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.rg-blog-ed__x {
    appearance: none;
    border: 0;
    background: transparent;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--rg-text-muted);
}

.rg-blog-ed__x:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--rg-text);
}

.rg-blog-ed__body {
    padding: 20px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.rg-blog-ed__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 14px;
    margin-bottom: 16px;
    align-items: end;
}

.rg-blog-ed__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--rg-text-muted);
}

.rg-blog-ed__field--grow {
    grid-column: span 1;
}

.rg-blog-ed__field input,
.rg-blog-ed__field select,
.rg-blog-ed__field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--rg-text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rg-blog-ed__field textarea {
    resize: vertical;
    min-height: 64px;
}

.rg-blog-ed__field input:focus,
.rg-blog-ed__field select:focus,
.rg-blog-ed__field textarea:focus,
.rg-blog-ed__visual:focus {
    border-color: var(--rg-green);
    box-shadow: 0 0 0 3px rgba(39, 101, 46, 0.12);
}

.rg-blog-ed__check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: 14px;
    color: var(--rg-text);
    user-select: none;
    cursor: pointer;
}

.rg-blog-ed__check input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.rg-blog-ed__check-ui {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    background: #fff;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.rg-blog-ed__check-ui::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s;
}

.rg-blog-ed__check input:checked + .rg-blog-ed__check-ui {
    background: var(--rg-green);
    border-color: var(--rg-green);
}

.rg-blog-ed__check input:checked + .rg-blog-ed__check-ui::after {
    transform: rotate(45deg) scale(1);
}

.rg-blog-ed__check input:focus-visible + .rg-blog-ed__check-ui {
    box-shadow: 0 0 0 3px rgba(39, 101, 46, 0.18);
}

.rg-blog-ed__check:hover .rg-blog-ed__check-ui {
    border-color: var(--rg-green);
}

.rg-blog-ed__check-label {
    line-height: 1.2;
}

.rg-blog-ed__media {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: var(--rg-radius-sm);
    background: #f6f5f2;
}

.rg-blog-ed__media-preview {
    width: 180px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: #e6e8e3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-blog-ed__media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rg-blog-ed__media-empty {
    font-size: 12px;
    color: var(--rg-text-muted);
    text-align: center;
    padding: 8px;
}

.rg-blog-ed__media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.rg-blog-ed__file-btn {
    cursor: pointer;
    min-height: auto;
    padding: 14px 28px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

.rg-blog-ed__file-btn--danger {
    border-color: #c4473a;
    color: #c4473a;
}

.rg-blog-ed__file-btn--danger:hover {
    background: #c4473a;
    border-color: #c4473a;
    color: #fff;
}

.rg-blog-ed__linkbtn {
    display: none;
}

.rg-blog-ed__editor-wrap {
    margin-top: 8px;
}

.rg-blog-ed__editor-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--rg-text-muted);
}

.rg-blog-ed__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rg-blog-ed__toolbar button {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    color: var(--rg-text);
}

.rg-blog-ed__toolbar button:hover {
    border-color: var(--rg-green);
    color: var(--rg-green);
}

.rg-blog-ed__magic.rg-btn,
.rg-blog-ed__toolbar .rg-blog-ed__magic {
    min-width: auto;
    height: auto;
    min-height: auto;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1.5px solid var(--rg-green);
    background: transparent;
    color: var(--rg-green);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: none;
}

.rg-blog-ed__magic.rg-btn:hover,
.rg-blog-ed__toolbar .rg-blog-ed__magic:hover {
    background: var(--rg-green);
    border-color: var(--rg-green);
    color: #fff;
}

.rg-blog-ed__visual {
    min-height: 240px;
    max-height: 360px;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rg-text);
    outline: none;
    background: #fff;
}

.rg-blog-ed__visual:empty:before {
    content: "Напишите текст статьи. Можно выделить фрагмент и нажать «Сформировать текст»";
    color: #a8a8a8;
}

.rg-blog-ed__visual h2 {
    font-size: 20px;
    margin: 18px 0 8px;
}

.rg-blog-ed__visual h3 {
    font-size: 17px;
    margin: 14px 0 6px;
}

.rg-blog-ed__visual p {
    margin: 0 0 12px;
}

.rg-blog-ed__visual ul,
.rg-blog-ed__visual ol {
    margin: 0 0 12px;
    padding-left: 1.3rem;
}

.rg-blog-ed__visual a {
    color: var(--rg-green);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.rg-blog-ed__visual a:hover {
    color: var(--rg-accent-hover);
}



.rg-blog-ed__status {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(39, 101, 46, 0.08);
    color: var(--rg-green-dark);
    font-size: 13px;
}

.rg-blog-ed__status.is-error {
    background: rgba(180, 35, 24, 0.08);
    color: #b42318;
}

.rg-blog-ed__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafaf8;
    flex-shrink: 0;
}

.rg-blog-ed__footer-right {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.rg-blog-ed__danger {
    appearance: none;
    border: 0;
    background: transparent;
    color: #b42318;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 900px) {
    .rg-blog-ed {
        padding: 0;
        align-items: stretch;
    }

    .rg-blog-ed__dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .rg-blog-ed__footer {
        flex-shrink: 0;
    }

    .rg-blog-ed__grid {
        grid-template-columns: 1fr 1fr;
    }

    .rg-blog-ed__media {
        grid-template-columns: 1fr;
    }

    .rg-blog__create {
        width: 100%;
        margin-left: 0;
    }

    .rg-blog-card__edit {
        opacity: 1;
        transform: none;
    }

    .rg-blog-detail__actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .rg-blog-ed__grid {
        grid-template-columns: 1fr;
    }
}

.rg-blog-ed__hint {
    font-style: normal;
    color: #9a9a9a;
    font-weight: 400;
}






.rg-blog-ed__section-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--rg-text-muted);
}

.rg-blog-ed__section-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.rg-blog-ed__section-row select {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--rg-text);
    background: #fff;
    outline: none;
}

.rg-blog-ed__section-row select:focus {
    border-color: var(--rg-green);
    box-shadow: 0 0 0 3px rgba(39, 101, 46, 0.12);
}

.rg-blog-ed__section-create {
    flex-shrink: 0;
    padding: 11px 16px;
    min-height: auto;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.rg-blog-ed__section-new {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: var(--rg-radius-sm);
    background: #f6f5f2;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.rg-blog-ed__section-new[hidden] {
    display: none !important;
}

.rg-blog-ed__section-new-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rg-text);
    white-space: nowrap;
}

.rg-blog-ed__section-new input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--rg-text);
    background: #fff;
    outline: none;
}

.rg-blog-ed__section-new input:focus {
    border-color: var(--rg-green);
    box-shadow: 0 0 0 3px rgba(39, 101, 46, 0.12);
}

.rg-blog-ed__section-save,
.rg-blog-ed__section-cancel {
    padding: 11px 16px;
    min-height: auto;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .rg-blog-ed__section-new {
        grid-template-columns: 1fr 1fr;
    }

    .rg-blog-ed__section-new-label {
        grid-column: 1 / -1;
    }

    .rg-blog-ed__section-new input {
        grid-column: 1 / -1;
    }
}
