/* ОБЩИЕ rf-компоненты: hero, section, alert, cta, social-card, link-card/grid, helpers.
   Используются на страницах Доставка/Гарантии/Скидки/Контакты (контент в БД) + contact.tpl */

/* ===== HERO ===== */
.rf-hero {
    position: relative;
    padding: 48px 36px 44px;
    border-radius: var(--rf-radius);
    background: radial-gradient(circle at 90% 10%, rgba(45, 106, 62, .08), transparent 50%),
    linear-gradient(135deg, #f8faf8 0%, #eef4ef 100%);
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid var(--rf-border);
}

.rf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(45, 106, 62, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 106, 62, .04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top right, black 0%, transparent 70%);
}

.rf-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rf-accent);
    margin-bottom: 14px;
    position: relative;
}

.rf-hero__eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--rf-accent);
}

.rf-hero h1 {
    position: relative;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -.02em;
    color: var(--rf-text);
}

.rf-hero__lead {
    position: relative;
    font-size: 16px;
    color: var(--rf-text-muted);
    max-width: 640px;
    margin: 0;
}

.rf-hero__lead a {
    color: var(--rf-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: color .2s;
}

.rf-hero__lead a:hover {
    color: var(--rf-accent-dark);
}

/* ===== SECTION ===== */
.rf-section {
    margin-top: 36px;
}

.rf-section__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: -.01em;
    color: var(--rf-text);
}

.rf-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--rf-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== ALERTS ===== */
.rf-alert {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--rf-radius-sm);
    margin-top: 16px;
    background: var(--rf-danger-soft);
    border-left: 3px solid var(--rf-danger);
}

.rf-alert--warn {
    background: #fff8e6;
    border-left-color: #d49a18;
}

.rf-alert__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--rf-danger);
}

.rf-alert--warn .rf-alert__icon {
    color: #b07f00;
}

.rf-alert__body {
    flex: 1;
}

.rf-alert__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--rf-danger);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.rf-alert--warn .rf-alert__title {
    color: #8a6300;
}

.rf-alert__text {
    font-size: 14px;
    color: var(--rf-text);
    margin: 0;
    line-height: 1.5;
}

/* ===== CTA ===== */
.rf-cta {
    margin-top: 36px;
    padding: 32px 28px;
    background: linear-gradient(135deg, #1a3324 0%, #2d6a3e 100%);
    border-radius: var(--rf-radius);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.rf-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, .06), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .06), transparent 40%);
}

.rf-cta__title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -.01em;
    color: #fff;
}

.rf-cta__text {
    position: relative;
    font-size: 15px;
    opacity: .85;
    margin: 0 0 20px;
}

.rf-cta__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: #fff;
    color: var(--rf-accent-dark);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 999px;
    transition: transform .2s, box-shadow .2s;
}

.rf-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    color: var(--rf-accent-dark);
}

.rf-cta__btn svg {
    width: 18px;
    height: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rf-hero {
        padding: 32px 22px 30px;
    }

    .rf-hero h1 {
        font-size: 28px;
    }

    .rf-section__title {
        font-size: 19px;
    }

}

@media (max-width: 480px) {
    .rf-hero h1 {
        font-size: 24px;
    }

}

/* ГАРАНТИИ */
/* ===== Info alert (новый семантический вариант) ===== */
.rf-delivery .rf-alert--info {
    background: #e8f0f9;
    border-left-color: #2563b8;
}

.rf-delivery .rf-alert--info .rf-alert__icon {
    color: #2563b8;
}

.rf-delivery .rf-alert--info .rf-alert__title {
    color: #1a4a8a;
}

/* ===== Section helpers ===== */
.rf-delivery .rf-section__intro {
    color: var(--rf-text-muted);
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 680px;
}

.rf-delivery .rf-section__sublabel {
    font-size: 12px;
    font-weight: 600;
    color: var(--rf-text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 28px 0 12px;
}

/* ===== Featured social card ===== */
.rf-delivery .rf-social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--rf-accent-soft);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    text-decoration: none;
    color: var(--rf-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rf-delivery .rf-social-card + .rf-social-card {
    margin-top: 10px;
}

.rf-delivery .rf-social-card:hover {
    transform: translateY(-2px);
    border-color: var(--rf-accent);
    box-shadow: var(--rf-shadow-hover);
    color: var(--rf-text);
}

.rf-delivery .rf-social-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--rf-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rf-delivery .rf-social-card__icon svg {
    width: 24px;
    height: 24px;
}

.rf-delivery .rf-social-card__body {
    flex: 1;
    min-width: 0;
}

.rf-delivery .rf-social-card__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
    color: var(--rf-text);
}

.rf-delivery .rf-social-card__handle {
    color: var(--rf-accent-dark);
    font-weight: 700;
    margin-left: 4px;
}

.rf-delivery .rf-social-card__desc {
    font-size: 13px;
    color: var(--rf-text-muted);
    margin: 0;
    line-height: 1.45;
}

.rf-delivery .rf-social-card__arrow {
    width: 18px;
    height: 18px;
    color: var(--rf-accent);
    flex-shrink: 0;
}

/* ===== Forum / external link grid ===== */
.rf-delivery .rf-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.rf-delivery .rf-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--rf-surface-2);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-sm);
    text-decoration: none;
    color: var(--rf-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rf-delivery .rf-link-card:hover {
    transform: translateY(-2px);
    border-color: var(--rf-accent);
    box-shadow: var(--rf-shadow-hover);
    color: var(--rf-text);
}

.rf-delivery .rf-link-card__name {
    font-size: 15px;
    font-weight: 600;
}

.rf-delivery .rf-link-card__arrow {
    width: 16px;
    height: 16px;
    color: var(--rf-accent);
    flex-shrink: 0;
}

/* ===== Utility ===== */
.rf-delivery .rf-hidden {
    display: none;
}

/* ===== Responsive overrides ===== */
@media (max-width: 480px) {
    .rf-delivery .rf-social-card {
        padding: 16px;
        gap: 12px;
    }

    .rf-delivery .rf-social-card__icon {
        width: 42px;
        height: 42px;
    }

    .rf-delivery .rf-social-card__icon svg {
        width: 22px;
        height: 22px;
    }
}

.column-left {
    position: sticky;
    top: 70px;
}

/* ===== Section intro paragraph ===== */
.rf-delivery .rf-section__intro {
    color: var(--rf-text-muted);
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 680px;
}

/* ===== CTA: компактный вариант для сайдбара (rf-cta--side) =====
   HTML-модуль в левой колонке (макет «Главная»). Токены продублированы,
   т.к. вне .rf-delivery переменные не определены. */
.rf-cta--side {
    --rf-radius: 14px;
    --rf-accent-dark: #1f4a2c;

    margin-top: 20px;
    padding: 20px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    line-height: 1.5;
}

.rf-cta--side *,
.rf-cta--side *::before,
.rf-cta--side *::after {
    box-sizing: border-box;
}

.rf-cta--side .rf-cta__title {
    font-size: 16px;
    margin: 0 0 4px;
}

.rf-cta--side .rf-cta__text {
    font-size: 13px;
    margin: 0 0 14px;
}

.rf-cta--side .rf-cta__btn {
    padding: 10px 18px;
    font-size: 14px;
    gap: 8px;
}

.rf-cta--side .rf-cta__btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Сайдбар: производители (rf-side-brands, модуль rf_brands) ===== */
.rf-side-brands {
    margin-top: 20px;
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 14px; /* --rf-radius */
    padding: 16px 14px 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    color: #1a1f1a; /* --rf-text */
}

.rf-side-brands *,
.rf-side-brands *::before,
.rf-side-brands *::after {
    box-sizing: border-box;
}

.rf-side-brands__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 12px;
    padding-left: 12px;
    border-left: 3px solid #2d6a3e; /* --rf-accent */
    color: #1a1f1a; /* --rf-text */
}

.rf-side-brands__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rf-side-brands__chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #5a655a; /* --rf-text-muted */
    background: #fff;
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 999px;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s;
}

.rf-side-brands__chip:hover,
.rf-side-brands__chip:focus {
    color: #1f4a2c; /* --rf-accent-dark */
    border-color: #2d6a3e; /* --rf-accent */
    background: #e8f3ec; /* --rf-accent-soft */
    text-decoration: none;
}

/* Свёрнутые чипы: раскрытие через анимацию grid-rows (высота) + каскад чипов */
.rf-side-brands__extra {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s ease;
}

.rf-side-brands__extra-inner {
    overflow: hidden;
    min-height: 0;
}

.rf-side-brands__chips--extra {
    padding-top: 0;
    transition: padding-top .4s ease;
}

.rf-side-brands--open .rf-side-brands__extra {
    grid-template-rows: 1fr;
}

.rf-side-brands--open .rf-side-brands__chips--extra {
    padding-top: 8px;
}

/* Каскадное появление чипов при раскрытии */
.rf-side-brands__chips--extra .rf-side-brands__chip {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
}

.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip {
    opacity: 1;
    transform: translateY(0);
}

.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(1) { transition-delay: .05s; }
.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(2) { transition-delay: .1s; }
.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(3) { transition-delay: .15s; }
.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(4) { transition-delay: .2s; }
.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(5) { transition-delay: .25s; }
.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(6) { transition-delay: .3s; }
.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(7) { transition-delay: .35s; }
.rf-side-brands--open .rf-side-brands__chips--extra .rf-side-brands__chip:nth-child(n+8) { transition-delay: .4s; }

.rf-side-brands__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    color: #1f4a2c; /* --rf-accent-dark */
    background: transparent;
    border: 1px dashed #c8d0c8; /* --rf-neutral-300 */
    border-radius: 8px; /* --rf-radius-sm */
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.rf-side-brands__more svg {
    width: 14px;
    height: 14px;
    transition: transform .3s ease;
}

.rf-side-brands--open .rf-side-brands__more svg {
    transform: rotate(180deg);
}

.rf-side-brands__more:hover {
    background: #e8f3ec; /* --rf-accent-soft */
    border-color: #2d6a3e; /* --rf-accent */
}

/* ===== Сайдбар: категории (rf-side-cats, модуль category) =====
   Принято, работает без проверки. */
.rf-side-cats {
    border: 1px solid #e3e8e3; /* --rf-border */
    border-radius: 14px; /* --rf-radius */
    padding: 16px 10px 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    color: #1a1f1a; /* --rf-text */
}

.rf-side-cats *,
.rf-side-cats *::before,
.rf-side-cats *::after {
    box-sizing: border-box;
}

.rf-side-cats__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 6px;
    padding: 0 6px 10px;
    border-bottom: 1px solid #e3e8e3; /* --rf-border */
    color: #1a1f1a; /* --rf-text */
}

.rf-side-cats__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rf-side-cats__row {
    display: flex;
    align-items: center;
}

.rf-side-cats__link {
    flex: 1 1 auto;
    display: block;
    padding: 9px 6px 9px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1f1a; /* --rf-text */
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0; /* --rf-radius-sm */
    transition: color .15s, background .15s;
}

.rf-side-cats__link:hover,
.rf-side-cats__link:focus {
    color: #1f4a2c; /* --rf-accent-dark */
    background: #f6f8f6; /* --rf-surface */
    text-decoration: none;
}

/* Активная категория верхнего уровня */
.rf-side-cats__item--active > .rf-side-cats__row > .rf-side-cats__link {
    color: #1f4a2c; /* --rf-accent-dark */
    background: #e8f3ec; /* --rf-accent-soft */
    border-left-color: #2d6a3e; /* --rf-accent */
}

.rf-side-cats__toggle {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #5a655a; /* --rf-text-muted */
    border-radius: 8px; /* --rf-radius-sm */
    cursor: pointer;
    transition: background .15s, color .15s;
}

.rf-side-cats__toggle:hover {
    background: #e8f3ec; /* --rf-accent-soft */
    color: #1f4a2c; /* --rf-accent-dark */
}

.rf-side-cats__toggle svg {
    width: 14px;
    height: 14px;
    transition: transform .2s;
}

.rf-side-cats__item--open > .rf-side-cats__row > .rf-side-cats__toggle svg {
    transform: rotate(180deg);
}

/* Подкатегории: скрыты через 0fr-строку грида, раскрытие — классом --open
   (активная ветка приходит открытой с сервера). Без display none/block —
   именно конфликт display-правила со slideToggle ломал первый клик. */
.rf-side-cats__sub {
    display: grid;
    grid-template-rows: 0fr;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: grid-template-rows .25s ease, padding .25s ease;
}

.rf-side-cats__sub > li {
    overflow: hidden;
    min-height: 0;
}

.rf-side-cats__item--open > .rf-side-cats__sub {
    grid-template-rows: 1fr;
    padding: 2px 0 8px;
}

.rf-side-cats__sublink {
    position: relative;
    display: block;
    padding: 7px 10px 7px 38px;
    font-size: 13px;
    color: #5a655a; /* --rf-text-muted */
    text-decoration: none;
    border-radius: 8px; /* --rf-radius-sm */
    transition: color .15s, background .15s;
}

.rf-side-cats__sublink::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c8d0c8; /* --rf-neutral-300 */
}

.rf-side-cats__sublink:hover,
.rf-side-cats__sublink:focus {
    color: #1f4a2c; /* --rf-accent-dark */
    background: #f6f8f6; /* --rf-surface */
    text-decoration: none;
}

/* Активная подкатегория */
.rf-side-cats__sublink--active,
.rf-side-cats__sublink--active:hover {
    color: #1f4a2c; /* --rf-accent-dark */
    background: #e8f3ec; /* --rf-accent-soft */
    font-weight: 700;
}

.rf-side-cats__sublink--active::before {
    background: #2d6a3e; /* --rf-accent */
}

/* Активный чип производителя в сайдбаре (страница бренда) —
   тот же тёмно-зелёный градиент, что у активного чипа в каталоге */
.rf-side-brands__chip--active,
.rf-side-brands__chip--active:hover,
.rf-side-brands__chip--active:focus {
    background: linear-gradient(135deg, #1a3324 0%, #2d6a3e 100%); /* --rf-accent-deep → --rf-accent */
    border-color: #1a3324; /* --rf-accent-deep */
    color: #fff;
    cursor: default;
}

/* ===== Хлебные крошки (общий элемент, все страницы) =====
   Переоформление bootstrap-разметки .breadcrumb_bg/.breadcrumb
   в стиле rf; шаблоны не меняются. */
.breadcrumb_bg {
    background: #f6f8f6; /* --rf-surface */
    border-bottom: 1px solid #e3e8e3; /* --rf-border */
    padding: 10px 0;
    margin-bottom: 24px;
}

.breadcrumb_bg .breadcrumb {
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
}

.breadcrumb_bg .breadcrumb > li,
.breadcrumb_bg .breadcrumb a {
    color: #5a655a; /* --rf-text-muted */
    text-shadow: none;
}

.breadcrumb_bg .breadcrumb a {
    font-weight: 600;
    text-decoration: none;
    transition: color .15s;
}

.breadcrumb_bg .breadcrumb a:hover,
.breadcrumb_bg .breadcrumb a:focus {
    color: #2d6a3e; /* --rf-accent */
}

/* текущая страница — тёмная жирная */
.breadcrumb_bg .breadcrumb > .end {
    color: #1a1f1a; /* --rf-text */
    font-weight: 700;
}

/* разделитель — шеврон вместо «/» */
.breadcrumb_bg .breadcrumb > li + li::before {
    content: "\203A\00a0";
    color: #9aa49a; /* --rf-neutral-400 */
    padding: 0 8px;
    font-weight: 400;
}

/* домашняя иконка — акцентная */
.breadcrumb_bg .breadcrumb .fa-home {
    color: #2d6a3e; /* --rf-accent */
}

@media (max-width: 767px) {
    .breadcrumb_bg {
        margin-bottom: 16px;
    }
}

/* ===== Заголовок страниц (глобально переоформляем старый блок heading_title) =====
   Дизайн = наш эталонный h1 (rf-account__title / rf-auth-head__title).
   Применяется на всех страницах, где встречается блок (категории, поиск, блог,
   ЛК, чекаут, производители и т.д.) — шаблоны не трогаем. */
.heading_title {
    margin: 0 0 18px;
    overflow: visible;
}

.heading_title .title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.25;
    color: #1a1f1a; /* --rf-text */
    margin: 0;
}

.heading_title_center .title {
    letter-spacing: 0;
}

@media (max-width: 480px) {
    .heading_title .title {
        font-size: 20px;
    }
}

/* ===== Попап подписки на Telegram-чат (rf) =====
   Десктоп — карточка в правом нижнем углу, мобайл — нижний лист во всю ширину.
   Показ/скрытие и куки — штатный JS (rf.min.js, telegram-popup.js). */
.telegram-popup.rf-tgpop {
    top: auto;
    left: auto;
    right: 16px;
    bottom: 16px;
    padding: 0;
    z-index: 4001;
}

@keyframes rf-tgpop-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.rf-tgpop__card {
    position: relative;
    width: 340px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a3324 0%, #2d6a3e 100%); /* --rf-accent-deep → --rf-accent */
    border-radius: 14px; /* --rf-radius */
    box-shadow: 0 4px 8px rgba(15, 30, 18, .12), 0 16px 40px rgba(15, 30, 18, .24);
    padding: 22px 46px 20px 20px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    line-height: 1.5;
    animation: rf-tgpop-rise .3s ease;
}

.rf-tgpop__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, .7);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.rf-tgpop__close:hover,
.rf-tgpop__close:focus {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.rf-tgpop__close svg {
    width: 15px;
    height: 15px;
}

.rf-tgpop__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    margin-bottom: 14px;
}

.rf-tgpop__icon svg {
    width: 22px;
    height: 22px;
}

.rf-tgpop__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 4px;
}

.rf-tgpop__desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 16px;
}

.rf-tgpop__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rf-tgpop__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    background: #fff;
    border-radius: 999px;
    color: #1f4a2c; /* --rf-accent-dark */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.rf-tgpop__btn:hover,
.rf-tgpop__btn:focus {
    color: #1f4a2c;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.rf-tgpop__later {
    background: none;
    border: none;
    padding: 11px 10px;
    color: rgba(255, 255, 255, .7);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s;
}

.rf-tgpop__later:hover,
.rf-tgpop__later:focus {
    color: #fff;
}

/* Мобайл: нижний лист на всю ширину */
@media (max-width: 767px) {
    .telegram-popup.rf-tgpop {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .rf-tgpop__card {
        width: auto;
        padding: 18px 44px 16px 16px;
    }
}
