/* ============================================================
   RAY поверх темы amazing (подключается в scripts.tpl после стилей темы).
   Цвета бренда задаются в настройках темы (tools/rs/theme_settings.php),
   здесь — шрифты, нейтральная палитра, типографика и компоненты.
   Направление: снег + графит + один акцент (красный RAY),
   узкий наклонный шрифт заголовков — как наклон логотипа.
   ============================================================ */

:root,
[data-theme=light] {
    --ray-font-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
    --ray-font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

    --ray-ink: #14181F;
    --ray-red: var(--theme-primary);
    --ray-skew: -12deg;

    --ray-radius-sm: 4px;
    --ray-radius: 8px;
    --ray-radius-lg: 14px;
    --ray-ease: cubic-bezier(.16, 1, .3, 1);

    /* Цвета наших блоков: в тёмной теме переопределяются ниже */
    --ray-text: var(--ray-ink);
    --ray-text-2: #4b5260;
    --ray-body: #2b313b;
    --ray-muted: #6b7280;
    --ray-panel: #f4f5f7;
    --ray-panel-2: #eef0f3;
    --ray-card: #fff;
    --ray-line: #d9dce2;
}

/* Светлая тема: холодная шкала серого. Раньше стояла на :root и перебивала тёмную палитру темы
   (в тёмной теме фон оставался белым, подвал — бледно-серым). */
:root:not([data-theme=dark]),
[data-theme=light] {
    /* Холодная «снежная» шкала серого вместо нейтральной темы */
    --theme-gray-1: #FFFFFF;
    --theme-gray-2: #F6F7F9;
    --theme-gray-3: #EEF0F3;
    --theme-gray-4: #E5E8EC;
    --theme-gray-5: #DADEE4;
    --theme-gray-6: #CBD0D8;
    --theme-gray-7: #B3BAC4;
    --theme-gray-8: #9AA2AE;
    --theme-gray-9: #7C8592;
    --theme-gray-10: #5E6774;
    --theme-gray-11: #2A3039;
    --theme-gray-12: #14181F;
    --theme-body-color: #1E232B;
    --theme-shadow-color: rgba(20, 24, 31, .10);
    --theme-shadow-sm: 0 2px 6px rgba(20, 24, 31, .06), 0 8px 20px rgba(20, 24, 31, .06);
    --theme-shadow-md: 0 12px 32px rgba(20, 24, 31, .12);

    /* Ярлыки «Хит» и «Скидка»: вместо фиолетовых — графит и красный RAY */
    --theme-label-hit: var(--ray-ink);
    --theme-label-sale: var(--theme-primary);
    --theme-label-sale-bg: var(--theme-primary-very-light);
    --theme-success: #1F9D57;
    --theme-success-text-emphasis: #157443;
}

[data-theme=dark] {
    --ray-text: var(--theme-gray-12);
    --ray-text-2: var(--theme-gray-10);
    --ray-body: var(--theme-gray-11);
    --ray-muted: var(--theme-gray-9);
    --ray-panel: var(--theme-gray-3);
    --ray-panel-2: var(--theme-gray-4);
    --ray-card: var(--theme-gray-2);
    --ray-line: var(--theme-gray-6);
}

/* ---------- Шрифты ---------- */
body {
    font-family: var(--ray-font-body);
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--ray-font-display);
    font-weight: 800;
    letter-spacing: -.005em;
    line-height: 1.02;
    text-wrap: balance;
}
h1, .h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 700; }
p { text-wrap: pretty; }

/* Заголовки блоков главной и списков: наклонная красная «линия скорости» */
.h1.mb-4 {
    display: flex;
    align-items: center;
    gap: .6em;
    font-style: italic;
    text-transform: uppercase;
}
.h1.mb-4::before {
    content: "";
    flex: none;
    width: .9em;
    height: .22em;
    background: var(--ray-red);
    transform: skewX(var(--ray-skew));
    border-radius: 1px;
}
.h1.mb-4 a { color: inherit; }

/* Цены — табличные цифры, чтобы суммы не «прыгали» */
.item-product-price, .rs-price-new, .rs-price-old {
    font-variant-numeric: tabular-nums;
}

/* ---------- Кнопки ---------- */
.btn {
    border-radius: var(--ray-radius-sm);
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .2s var(--ray-ease), border-color .2s var(--ray-ease),
                color .2s var(--ray-ease), transform .15s var(--ray-ease), box-shadow .2s var(--ray-ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(215, 25, 32, .25); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--ray-red);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---------- Карточка товара в списке ---------- */
.item-card {
    border-radius: var(--ray-radius-lg);
    transition: box-shadow .25s var(--ray-ease), transform .25s var(--ray-ease);
}
@media (hover: hover) {
    .item-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--theme-shadow-md);
    }
}
.item-card__title {
    /* межстрочный интервал не меняем: тема обрезает название по высоте строк */
    font-weight: 500;
    color: var(--theme-text-emphasis);
}
.item-product-price__new-price {
    font-weight: 700;
    color: var(--ray-text);
}
.item-product-price__old-price { color: var(--theme-text-muted); }
.item-product-label {
    border-radius: 2px;
    font-family: var(--ray-font-display);
    font-style: italic;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Подвал ---------- */
footer a { text-decoration: none; transition: color .2s var(--ray-ease); }

/* ---------- Общие мелочи ---------- */
html { scroll-behavior: smooth; }
::selection { background: var(--theme-primary); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Первый экран и широкий баннер (ray_banner.tpl) ---------- */
.ray-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--ray-radius-lg);
    background: var(--ray-ink);
    color: #fff;
    min-height: clamp(420px, 46vw, 640px);
    display: flex;
    align-items: flex-end;
}
.ray-banner__media,
.ray-banner__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.ray-banner__media img { object-fit: cover; object-position: 60% 50%; }
.ray-banner::after {
    /* затемнение под текстом: слева и снизу, цвет — графит бренда, не чистый чёрный */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(14, 17, 22, .82) 0%, rgba(14, 17, 22, .55) 38%, rgba(14, 17, 22, 0) 68%),
        linear-gradient(0deg, rgba(14, 17, 22, .55) 0%, rgba(14, 17, 22, 0) 45%);
}
.ray-banner__body {
    position: relative;
    z-index: 1;
    max-width: 40rem;
    padding: clamp(1.75rem, 1rem + 3vw, 4rem);
}
.ray-banner__title {
    font-family: var(--ray-font-display);
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4.4rem);
    line-height: .95;
    letter-spacing: -.01em;
    color: #fff;
    margin: 0 0 1rem;
    text-wrap: balance;
}
.ray-banner__title::before {
    /* «линия скорости» над заголовком — как штрихи у логотипа */
    content: "";
    display: block;
    width: 3.2rem;
    height: .35rem;
    margin-bottom: 1.1rem;
    background: var(--ray-red);
    transform: skewX(var(--ray-skew));
    box-shadow: .9rem .7rem 0 -.08rem rgba(215, 25, 32, .55);
}
.ray-banner__text {
    font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, .86);
    max-width: 32rem;
    margin: 0 0 1.75rem;
}
.ray-banner__cta {
    padding: .85rem 1.6rem;
    font-size: 1rem;
}
.ray-hero { border-radius: var(--ray-radius-lg); overflow: hidden; }
/* первый экран ниже (было до 640px) — под ним видно полосу преимуществ и начало плиток разделов */
.ray-hero .ray-banner { min-height: clamp(360px, 34vw, 500px); }
.ray-hero .ray-banner__title { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.8rem); }
.ray-hero .swiper-pagination-bullet-active { background: var(--ray-red); }

.ray-wide .ray-banner { min-height: clamp(360px, 34vw, 480px); align-items: center; }
.ray-wide .ray-banner__media img { object-position: 70% 50%; }
.ray-wide .ray-banner__title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem); }

@media (max-width: 767.98px) {
    /* на телефоне текст под фото: фото сверху, тёмная плашка с текстом снизу */
    .ray-banner { flex-direction: column; align-items: stretch; min-height: 0; }
    .ray-banner__media { position: relative; display: block; aspect-ratio: 4 / 3; }
    .ray-banner__media img { position: absolute; }
    .ray-banner::after { display: none; }
    .ray-banner__body { padding: 1.5rem 1.25rem 1.75rem; }
    .ray-banner__title { font-size: clamp(1.9rem, 1.4rem + 3vw, 2.6rem); }
    .ray-banner__cta { width: 100%; }
    /* первый экран на телефоне компактнее: фото 16:9, текст плотнее — плитки разделов ближе */
    .ray-hero .ray-banner__media { aspect-ratio: 16 / 9; }
    .ray-hero .ray-banner__body { padding: 1.1rem 1.1rem 1.25rem; }
    .ray-hero .ray-banner__title { font-size: clamp(1.7rem, 1.3rem + 2.4vw, 2.2rem); margin-bottom: .6rem; }
    .ray-hero .ray-banner__title::before { margin-bottom: .7rem; }
    .ray-hero .ray-banner__text { font-size: .95rem; margin-bottom: 1rem; }
}

/* ---------- Фото в карточках: одинаковая площадь при любом исходном размере ----------
   Многие фото из архива старого сайта мелкие (70–400 px) — растягиваем в рамку
   с отступом; исходники в хорошем качестве нужно найти или переснять. */
.item-product-img img {
    /* тема центрирует через left/top 50% + translate; растягиваем на всю рамку вместо этого.
       Рамка — 3:4 (canvas 268×357 в one_product.tpl): вертикальные фото с маркетплейсов заполняют её целиком,
       квадратные вписываются с полями сверху и снизу */
    inset: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 4%;
    object-fit: contain;
}

/* Страница товара: большое фото и миниатюры — тоже 3:4 (product.tpl просит картинки высотой ×4/3) */
.product-gallery-top .swiper-slide { aspect-ratio: 3 / 4; }
.product-gallery-top .swiper-slide .swiper-zoom-container { height: 100%; }
.product-gallery-top .swiper-slide img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery-thumbs .swiper-slide { height: 85px; }
.product-gallery-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 575.98px) { .product-gallery-thumbs .swiper-slide { height: 64px; } }

/* ---------- Информационные страницы (front_article.tpl, content/pages/*.html) ---------- */
.ray-page { max-width: 46rem; padding-bottom: 2rem; }
.ray-page__title { margin-bottom: 1.25rem; }
.ray-page__body { font-size: 1.05rem; line-height: 1.65; color: var(--theme-body-color); }
.ray-page__body h2 {
    font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem);
    font-weight: 700;
    margin: 2.25rem 0 .75rem;
}
.ray-page__body ul, .ray-page__body ol { padding-left: 1.25rem; }
.ray-page__body li { margin-bottom: .5rem; }
.ray-page__body a { color: var(--ray-text); text-decoration-color: var(--ray-red); text-underline-offset: .2em; }
.ray-page__body a:hover { color: var(--ray-red); }
.ray-lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--theme-text-emphasis);
    padding-left: 1rem;
    border-left: 3px solid var(--ray-red);
    margin-bottom: 1.5rem;
}
.ray-steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.ray-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.1rem;
    min-height: 2.2rem;
}
.ray-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -.1rem;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    font-family: var(--ray-font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    background: var(--ray-ink);
    border-radius: var(--ray-radius-sm);
}
.ray-contacts { display: grid; gap: 1.5rem; margin-bottom: 1rem; }
.ray-contacts section {
    padding: 1.25rem 1.5rem;
    background: var(--theme-bg-subtle);
    border-radius: var(--ray-radius);
}
.ray-contacts h2 { margin-top: 0 !important; }
.ray-contacts p:last-child { margin-bottom: 0; }
.ray-dealers li { margin-bottom: .9rem; }
.ray-table { width: 100%; border-collapse: collapse; }
.ray-table th, .ray-table td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--theme-border-subtle); vertical-align: top; text-align: left; }
.ray-table th { width: 34%; font-weight: 600; color: var(--theme-text-secondary); }

/* Страница бренда RAY — в конце файла (.ray-brand*) */

/* ---------- Подвал: заголовки колонок меню ---------- */
footer .h2 {
    font-size: 1.25rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin-bottom: 1rem;
}
footer .footer-menu a { color: var(--theme-footer-link, #fff); opacity: .85; }
footer .footer-menu a:hover { opacity: 1; color: #fff; }

/* ---------- Карточка товара ---------- */
.variant-product-options .fw-bold { font-weight: 600 !important; color: var(--theme-text-secondary); }
/* размеры — плашки: ровная сетка, чёткий выбранный и недоступный */
.item-product-choose .radio-image_txt label {
    min-width: 3.5rem;
    border-radius: var(--ray-radius-sm);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    transition: border-color .15s var(--ray-ease), background-color .15s var(--ray-ease), color .15s var(--ray-ease);
}
.item-product-choose .radio-image_txt input:checked + label {
    border-color: var(--ray-text);
    background: var(--ray-ink);
    color: #fff;
}
.item-product-choose li.no-exists label { opacity: .45; text-decoration: line-through; }
/* блок покупки */
.product-aside {
    border-radius: var(--ray-radius-lg);
    box-shadow: var(--theme-shadow-sm);
}
.product-aside .item-product-price__new-price { font-size: 2rem; }
.product-aside .rs-to-cart, .product-aside .btn-primary { padding-top: .85rem; padding-bottom: .85rem; font-size: 1.05rem; }

/* модуль ray: под блоком покупки (hooks/catalog-product/buyblock.post.tpl) */
.ray-note {
    margin-top: 1rem;
    padding: .9rem 1rem;
    border-radius: var(--ray-radius);
    font-size: .9rem;
    line-height: 1.45;
}
.ray-note_warn { background: var(--theme-warning-bg-subtle); border-left: 3px solid var(--theme-warning); }
.ray-service {
    list-style: none;
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    border-radius: var(--ray-radius-lg);
    background: var(--theme-bg-subtle);
    display: grid;
    gap: .8rem;
    font-size: .9rem;
    line-height: 1.4;
}
.ray-service li { display: grid; gap: .15rem; padding-left: 1.1rem; position: relative; }
.ray-service li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: .55rem;
    height: .18rem;
    background: var(--ray-red);
    transform: skewX(var(--ray-skew));
}
.ray-service__title { font-weight: 600; color: var(--theme-text-emphasis); }
.ray-service__text { color: var(--theme-text-secondary); }
.ray-service a { color: var(--ray-text); text-decoration-color: var(--ray-red); text-underline-offset: .2em; }
/* заголовки внутри описания товара (из архива/1С) — как подзаголовки текста, не как заголовки страницы */
.tab-content h2, .tab-content h3, .tab-content h4 {
    font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem);
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    margin: 1.5rem 0 .6rem;
}
.tab-content { line-height: 1.6; }

/* ===== Оформление заказа ===== */
/* ФИО и e-mail поровну: в теме 7/5 колонок, подсказка в e-mail обрезалась */
@media (min-width: 1200px) {
    .rs-checkout_userBlock .row > .col-xl-7,
    .rs-checkout_userBlock .row > .col-xl-5 { flex: 0 0 auto; width: 50%; }
}

/* ===== Логотип в шапке ===== */
/* Без подписи (слоган остаётся в подвале), высота — как у кнопки «Каталог». Тема задаёт .logo рамку 166×24
   и вписывает картинку (object-fit: contain), поэтому логотип был мелким. Подвал не трогаем. */
.head-logo .logo-desc { display: none; }
.head-logo .logo {
    height: var(--ray-head-logo-h, 48px);
    width: auto;
    min-width: 0;
    max-width: none;
    object-fit: contain;
}
/* на телефоне и планшете кнопка меню — 40 px; логотип по её высоте */
@media (max-width: 991.98px) { .head-logo { --ray-head-logo-h: 40px; } }

/* ===== Меню каталога: иконки разделов ===== */
/* Phosphor Icons (MIT) в resource/img/ray/cat/, выводятся маской — цвет задаётся здесь */
.ray-cat-icon {
    display: inline-block;
    flex: none;
    width: 24px;
    height: 24px;
    background-color: var(--theme-text-secondary, #5b6270);
    -webkit-mask: var(--ray-icon) center / contain no-repeat;
    mask: var(--ray-icon) center / contain no-repeat;
    transition: background-color .2s;
}
.head-dropdown-catalog__category:hover .ray-cat-icon,
.head-dropdown-catalog__category.active .ray-cat-icon,
.head-dropdown-catalog__category:focus-visible .ray-cat-icon { background-color: var(--ray-red); }

/* ===== Баннер в меню каталога (zone_catalog.tpl, 1114×260) ===== */
.ray-menu-banner .ray-banner { min-height: 0; height: 260px; align-items: center; border-radius: var(--ray-radius-lg); }
.ray-menu-banner .ray-banner__media img { object-position: 70% 50%; }
.ray-menu-banner .ray-banner::after {
    background: linear-gradient(90deg, rgba(14, 17, 22, .8) 0%, rgba(14, 17, 22, .5) 40%, rgba(14, 17, 22, 0) 70%);
}
.ray-menu-banner .ray-banner__body { padding: 1.5rem 2.25rem; max-width: 34rem; }
.ray-menu-banner .ray-banner__title { font-size: 2.1rem; margin-bottom: .6rem; }
.ray-menu-banner .ray-banner__title::before { width: 2.4rem; height: .28rem; margin-bottom: .8rem; box-shadow: .7rem .55rem 0 -.06rem rgba(215, 25, 32, .55); }
.ray-menu-banner .ray-banner__text { font-size: .95rem; margin-bottom: 1rem; max-width: 26rem; }
.ray-menu-banner .ray-banner__cta { padding: .6rem 1.2rem; font-size: .9rem; }

/* ===== Оформление заказа: доработки ===== */
/* Комментарий к заказу — компактное поле (тянется вниз при необходимости) */
.rs-checkout_commentBlock textarea { height: 5.25rem; min-height: 5.25rem; resize: vertical; }
/* Шапка оформления: логотип без подписи, как в основной шапке */
.head-checkout .logo-desc { display: none !important; }
.head-checkout .logo_checkout { height: 48px; width: auto; min-width: 0; max-width: none; object-fit: contain; }
@media (max-width: 991.98px) { .head-checkout .logo_checkout { height: 40px; } }
/* Адрес получения — сразу под выбранным способом доставки (переносит ray.js) */
/* — продолжение выбранной карточки: та же зелёная рамка темы, без зазора между ними */
.rs-checkout_deliveryItem + .rs-checkout_addressBlock {
    margin-top: 0;   /* в сетке зазор задаёт margin-top ячейки — убираем, блок прилегает к карточке */
    /* в сетке у ячейки поля по бокам (gutter) — рамку ставим по краю карточки, а не ячейки */
    margin-inline: calc(var(--bs-gutter-x, 1rem) * .5);
    width: calc(100% - var(--bs-gutter-x, 1rem));
    padding: 1rem 1.25rem 1.25rem;
    border: 1px solid #1f9d57;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--ray-card);
}
.rs-checkout_deliveryItem:has(+ .rs-checkout_addressBlock) input:checked + label {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.rs-checkout_addressBlock:empty { display: none; }

/* ---------- Амбассадоры (helper/usertemplate/include/ray_ambassador*.tpl) ---------- */
.ray-amb-intro { max-width: 46rem; margin: .5rem 0 2rem; }
.ray-amb-intro__kicker, .ray-amb-hero__sport, .ray-amb-card__sport {
    display: inline-flex; align-items: center; gap: .55em;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.ray-amb-intro__kicker { color: var(--ray-red); margin-bottom: .6rem; }
.ray-amb-intro__kicker::before, .ray-amb-hero__sport::before, .ray-amb-card__sport::before {
    content: ""; width: 1.4em; height: .3em; background: var(--ray-red);
    transform: skewX(var(--ray-skew)); border-radius: 1px;
}
.ray-amb-intro__title { font-style: italic; text-transform: uppercase; margin: 0 0 .9rem; }
.ray-amb-intro__lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.55; color: var(--ray-text-2); margin: 0; max-width: 40rem; }

.ray-amb-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.ray-amb-filter__btn {
    border: 1px solid var(--ray-line); background: var(--ray-card); color: var(--ray-text);
    border-radius: var(--ray-radius-sm); padding: .5rem .95rem; font-size: .92rem; font-weight: 500;
    transition: background-color .2s var(--ray-ease), border-color .2s var(--ray-ease), color .2s var(--ray-ease);
}
.ray-amb-filter__btn span { color: #8a909c; margin-left: .2em; font-variant-numeric: tabular-nums; }
.ray-amb-filter__btn:hover { border-color: var(--ray-text); }
.ray-amb-filter__btn.is-active { background: var(--ray-ink); border-color: var(--ray-ink); color: #fff; }
.ray-amb-filter__btn.is-active span { color: rgba(255,255,255,.6); }
.ray-amb-filter__btn:focus-visible { outline: 2px solid var(--ray-red); outline-offset: 2px; }

.ray-amb-grid {
    display: grid; gap: clamp(.75rem, .5rem + 1vw, 1.5rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
}
.ray-amb-card {
    position: relative; display: block; aspect-ratio: 1; overflow: hidden;
    border-radius: var(--ray-radius-lg); background: var(--ray-ink); color: #fff; text-decoration: none;
    isolation: isolate;
}
.ray-amb-card--featured { grid-column: span 2; grid-row: span 2; }
.ray-amb-card__img, .ray-amb-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ray-amb-card__img img { object-fit: cover; transition: transform .6s var(--ray-ease), filter .4s var(--ray-ease); }
.ray-amb-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(20,24,31,0) 40%, rgba(20,24,31,.55) 66%, rgba(20,24,31,.92) 100%);
}
.ray-amb-card__body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: clamp(.9rem, .7rem + .6vw, 1.4rem); padding-right: 3.5rem;
    display: flex; flex-direction: column; gap: .3rem;
}
.ray-amb-card__sport { font-size: .7rem; color: rgba(255,255,255,.85); }
.ray-amb-card__name {
    font-family: var(--ray-font-display); font-style: italic; font-weight: 800; text-transform: uppercase;
    font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1; letter-spacing: -.005em; text-wrap: balance;
}
.ray-amb-card--featured .ray-amb-card__name { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.8rem); }
.ray-amb-card__headline { font-size: .86rem; line-height: 1.35; color: rgba(255,255,255,.82); text-wrap: pretty; }
.ray-amb-card--featured .ray-amb-card__headline { font-size: 1rem; }
.ray-amb-card__more {
    position: absolute; right: clamp(.9rem, .7rem + .6vw, 1.4rem); bottom: clamp(.9rem, .7rem + .6vw, 1.4rem); z-index: 2;
    width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
    transition: background-color .25s var(--ray-ease), transform .25s var(--ray-ease);
}
.ray-amb-card:hover .ray-amb-card__img img, .ray-amb-card:focus-visible .ray-amb-card__img img { transform: scale(1.05); }
.ray-amb-card:hover .ray-amb-card__more, .ray-amb-card:focus-visible .ray-amb-card__more { background: var(--ray-red); transform: translateX(2px); }
.ray-amb-card:hover { color: #fff; }
.ray-amb-card:focus-visible { outline: 3px solid var(--ray-red); outline-offset: 3px; }
.ray-amb-card.is-hidden { display: none; }
@media (max-width: 991.98px) {
    .ray-amb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    /* фильтр — одной прокручиваемой строкой, а не четырьмя рядами */
    .ray-amb-filter {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
    }
    .ray-amb-filter::-webkit-scrollbar { display: none; }
    .ray-amb-filter__btn { flex: none; white-space: nowrap; }
    .ray-amb-card__headline { display: none; }
    .ray-amb-card--featured .ray-amb-card__headline { display: block; }
    .ray-amb-card__body { padding-right: .9rem; }
    .ray-amb-card__more { display: none; }
}

/* страница амбассадора: без колонки «Другие новости», контент на всю ширину */
.row:has(> .col-md-8 .ray-amb-page) > :not(.col-md-8) { display: none; }
.row:has(> .col-md-8 .ray-amb-page) > .col-md-8 { flex: 0 0 100%; max-width: 100%; width: 100%; }

.ray-amb-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.ray-amb-nav__back {
    display: inline-flex; align-items: center; gap: .5rem; color: var(--ray-text); font-weight: 600; text-decoration: none;
    transition: color .2s var(--ray-ease), gap .2s var(--ray-ease);
}
.ray-amb-nav__back:hover { color: var(--ray-red); gap: .7rem; }
.ray-amb-nav__pager { display: flex; align-items: center; gap: .5rem; }
.ray-amb-nav__count { font-variant-numeric: tabular-nums; color: #8a909c; margin-right: .5rem; font-size: .95rem; }
.ray-amb-nav__count b { color: var(--ray-text); font-weight: 700; }
.ray-amb-nav__arrow {
    width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--ray-line); color: var(--ray-text); background: var(--ray-card);
    transition: background-color .2s var(--ray-ease), border-color .2s var(--ray-ease), color .2s var(--ray-ease), transform .15s var(--ray-ease);
}
.ray-amb-nav__arrow:hover { background: var(--ray-ink); border-color: var(--ray-ink); color: #fff; }
.ray-amb-nav__arrow:active { transform: scale(.94); }
.ray-amb-nav__arrow:focus-visible, .ray-amb-nav__back:focus-visible { outline: 2px solid var(--ray-red); outline-offset: 2px; }

.ray-amb-hero {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start;
}
.ray-amb-hero__photo { position: relative; }
.ray-amb-hero__photo::before {
    /* красная «плашка скорости» за фото */
    content: ""; position: absolute; z-index: -1; left: -1rem; bottom: -1rem; width: 55%; height: 40%;
    background: var(--ray-red); transform: skewX(var(--ray-skew)); border-radius: var(--ray-radius-sm);
}
.ray-amb-hero__photo img {
    display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
    border-radius: var(--ray-radius-lg); background: var(--ray-panel-2);
}
.ray-amb-hero__photo { isolation: isolate; }
.ray-amb-hero__sport { color: var(--ray-red); margin-bottom: .7rem; }
.ray-amb-hero__name { font-style: italic; text-transform: uppercase; margin: 0 0 1rem; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: .95; }
.ray-amb-hero__headline {
    display: inline-block; background: var(--ray-ink); color: #fff; font-weight: 600;
    padding: .5rem .9rem; border-radius: var(--ray-radius-sm); margin-bottom: 1.5rem; font-size: 1rem;
}
.ray-amb-hero__bio { font-size: 1.02rem; line-height: 1.6; max-width: 42rem; color: var(--ray-body); overflow-wrap: anywhere; }
.ray-amb-hero__info { min-width: 0; }
.ray-amb-hero__bio p { margin: 0 0 1rem; }
.ray-amb-hero__bio ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.ray-amb-hero__bio li { position: relative; padding-left: 1.6rem; }
.ray-amb-hero__bio li::before {
    content: ""; position: absolute; left: 0; top: .62em; width: .95rem; height: .22rem;
    background: var(--ray-red); transform: skewX(var(--ray-skew)); border-radius: 1px;
}
.ray-amb-hero__bio img { max-width: 100%; height: auto; border-radius: var(--ray-radius); }

/* длинные биографии (content/ambassadors/*.html): цифры, вводный абзац, лента сезонов */
.ray-amb-stats {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.75rem;
}
.ray-amb-stats__item {
    display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem;
    background: var(--ray-panel); border-radius: var(--ray-radius); border-left: 3px solid var(--ray-red);
}
.ray-amb-stats__item b {
    font-family: var(--ray-font-display); font-style: italic; font-weight: 800; font-size: clamp(2.2rem, 1.8rem + 1.2vw, 3rem);
    line-height: .9; color: var(--ray-red); font-variant-numeric: tabular-nums;
}
.ray-amb-stats__item span { font-size: .88rem; line-height: 1.35; color: var(--ray-text-2); }
.ray-amb-hero__bio .ray-amb-lead { font-size: 1.12rem; line-height: 1.55; color: var(--ray-text); }
.ray-amb-hero__bio h2 {
    font-style: italic; text-transform: uppercase; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    margin: 2.5rem 0 1.25rem;
}
.ray-amb-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ray-amb-timeline::before {
    content: ""; position: absolute; left: .4rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--ray-line);
}
.ray-amb-timeline > li { position: relative; padding: 0 0 2rem 2.25rem; }
.ray-amb-timeline > li:last-child { padding-bottom: 0; }
.ray-amb-timeline > li::before {
    content: ""; position: absolute; left: 0; top: .3rem; width: .85rem; height: .85rem; border-radius: 50%;
    background: var(--ray-card); border: 3px solid var(--ray-red);
}
.ray-amb-timeline__when {
    display: inline-block; font-family: var(--ray-font-display); font-style: italic; font-weight: 800;
    font-size: 1rem; letter-spacing: .02em; color: #fff; background: var(--ray-ink);
    padding: .15rem .55rem; border-radius: var(--ray-radius-sm); margin-bottom: .5rem; font-variant-numeric: tabular-nums;
}
.ray-amb-timeline h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); margin: 0 0 .5rem; }
.ray-amb-timeline p { margin: 0 0 .6rem; }
.ray-amb-timeline ul { margin: .25rem 0 0; gap: .4rem; }
.ray-amb-hero__bio strong { color: var(--ray-text); font-weight: 700; }
@media (max-width: 575.98px) {
    .ray-amb-stats { gap: .5rem; }
    .ray-amb-stats__item { padding: .8rem .85rem; }
    .ray-amb-stats__item span { font-size: .82rem; }
    .ray-amb-timeline > li { padding-left: 1.75rem; }
}
/* фото не уезжает, пока читается длинная биография */
@media (min-width: 768px) {
    .ray-amb-hero__photo { position: sticky; top: 1.5rem; }
}

.ray-amb-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 0; }
.ray-amb-next__card {
    display: flex; align-items: center; gap: 1rem; padding: 1rem; text-decoration: none; color: var(--ray-text);
    border: 1px solid var(--ray-line); border-radius: var(--ray-radius-lg); background: var(--ray-card);
    transition: border-color .2s var(--ray-ease), box-shadow .25s var(--ray-ease), transform .25s var(--ray-ease);
}
.ray-amb-next__card--next { flex-direction: row-reverse; text-align: right; }
.ray-amb-next__card img { width: 80px; height: 80px; flex: none; object-fit: cover; border-radius: var(--ray-radius); }
.ray-amb-next__card > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ray-amb-next__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #8a909c; font-weight: 600; }
.ray-amb-next__name { font-family: var(--ray-font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; }
.ray-amb-next__sport { font-size: .85rem; color: var(--ray-text-2); }
.ray-amb-next__card:hover { border-color: var(--ray-text); box-shadow: 0 10px 30px -14px rgba(20,24,31,.35); transform: translateY(-2px); color: var(--ray-text); }
.ray-amb-next__card:focus-visible { outline: 2px solid var(--ray-red); outline-offset: 2px; }

.ray-amb-strip { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.ray-amb-strip__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ray-amb-strip__title { font-style: italic; text-transform: uppercase; margin: 0; }
.ray-amb-strip__hint { color: #8a909c; font-size: .9rem; }
.ray-amb-strip__list {
    position: relative; list-style: none; margin: 0; padding: .4rem .2rem 1rem; display: flex; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 .2rem; scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.ray-amb-strip__list > li { flex: 0 0 auto; scroll-snap-align: start; }
.ray-amb-strip__item { display: flex; flex-direction: column; gap: .35rem; width: 8.5rem; text-decoration: none; color: var(--ray-text); }
.ray-amb-strip__img { display: block; width: 8.5rem; height: 8.5rem; border-radius: var(--ray-radius-lg); overflow: hidden; background: var(--ray-panel-2); box-shadow: 0 0 0 0 var(--ray-red); transition: box-shadow .2s var(--ray-ease); }
.ray-amb-strip__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); transition: filter .3s var(--ray-ease), transform .4s var(--ray-ease); }
.ray-amb-strip__name { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.ray-amb-strip__sport { font-size: .8rem; color: #8a909c; }
.ray-amb-strip__item:hover .ray-amb-strip__img img { filter: none; transform: scale(1.05); }
.ray-amb-strip__item:hover { color: var(--ray-red); }
.ray-amb-strip__item.is-current .ray-amb-strip__img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ray-red); }
.ray-amb-strip__item.is-current .ray-amb-strip__img img { filter: none; }
.ray-amb-strip__item.is-current .ray-amb-strip__name { color: var(--ray-red); }
.ray-amb-strip__item:focus-visible { outline: 2px solid var(--ray-red); outline-offset: 4px; border-radius: var(--ray-radius-lg); }

@media (max-width: 767.98px) {
    .ray-amb-hero { grid-template-columns: minmax(0, 1fr); }
    .ray-amb-hero__photo { width: calc(100% - 1rem); max-width: 26rem; margin-left: 1rem; }
    .ray-amb-hero__photo::before { left: -1rem; }
    .ray-amb-nav__back, .ray-amb-nav__count { white-space: nowrap; }
    .ray-amb-nav__count { margin-right: .25rem; }
    .ray-amb-next { grid-template-columns: 1fr; }
    .ray-amb-next__card img { width: 64px; height: 64px; }
    .ray-amb-strip__hint { display: none; }
    .ray-amb-strip__item, .ray-amb-strip__img { width: 7rem; }
    .ray-amb-strip__img { height: 7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ray-amb-card__img img, .ray-amb-strip__img img { transition: none; }
}

/* ---------- Главная: лента амбассадоров (modules/ray/view/blocks/home_ambassadors.tpl) ---------- */
.ray-home-amb { --rail-gap: clamp(.75rem, .5rem + 1vw, 1.25rem); --rail-cols: 4.3; }
.ray-home-amb__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.ray-home-amb__head .h1 { margin-bottom: .5rem !important; }
.ray-home-amb__lead { margin: 0; color: var(--ray-text-2); max-width: 36rem; }
.ray-home-amb__controls { display: flex; align-items: center; gap: .5rem; flex: none; }
.ray-home-amb__all { margin-left: .5rem; }
.ray-home-amb .ray-amb-nav__arrow:disabled { opacity: .35; pointer-events: none; }
.ray-home-amb__track {
    display: grid; grid-auto-flow: column; gap: var(--rail-gap);
    grid-auto-columns: calc((100% - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
    overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; overscroll-behavior-x: contain;
    scrollbar-width: none; padding-bottom: .25rem;
}
.ray-home-amb__track::-webkit-scrollbar { display: none; }
.ray-home-amb__track > * { scroll-snap-align: start; }
.ray-home-amb__more {
    aspect-ratio: 1; border-radius: var(--ray-radius-lg); background: var(--ray-ink); color: #fff; text-decoration: none;
    display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; padding: clamp(1rem, .8rem + .8vw, 1.5rem);
    position: relative; overflow: hidden; transition: background-color .25s var(--ray-ease);
}
.ray-home-amb__more::before {
    /* «линии скорости» — как у логотипа */
    content: ""; position: absolute; right: -1rem; top: 1.5rem; width: 70%; height: .9rem; background: var(--ray-red);
    transform: skewX(var(--ray-skew)); box-shadow: -1.5rem 1.6rem 0 -.15rem rgba(215, 25, 32, .55);
}
.ray-home-amb__more-count {
    font-family: var(--ray-font-display); font-style: italic; font-weight: 800; font-size: clamp(3rem, 2.2rem + 2.5vw, 4.5rem); line-height: .9;
}
.ray-home-amb__more-text { color: rgba(255,255,255,.75); font-size: .95rem; }
.ray-home-amb__more-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; margin-top: .6rem; transition: gap .2s var(--ray-ease); }
.ray-home-amb__more:hover { background: #222833; color: #fff; }
.ray-home-amb__more:hover .ray-home-amb__more-link { gap: .8rem; }
.ray-home-amb__more:focus-visible { outline: 3px solid var(--ray-red); outline-offset: 3px; }
@media (max-width: 1199.98px) { .ray-home-amb { --rail-cols: 3.3; } }
@media (max-width: 767.98px) {
    .ray-home-amb { --rail-cols: 2.2; }
    .ray-home-amb__track { scroll-snap-type: x mandatory; }   /* свайп — по карточкам */
    .ray-home-amb__head { flex-direction: column; align-items: flex-start; }
    .ray-home-amb .ray-amb-nav__arrow { display: none; }
    .ray-home-amb__all { margin-left: 0; }
}
@media (max-width: 575.98px) {
    .ray-home-amb { --rail-cols: 1.45; }
    .ray-home-amb__controls { display: none; }   /* на телефоне — свайп и карточка «Все амбассадоры» в конце */
    .ray-home-amb .ray-amb-card__headline { display: block; }
    .ray-home-amb .ray-amb-card__more { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ray-home-amb__track { scroll-behavior: auto; } }

/* ---------- Страница «О бренде» /brand/ray/ (content/pages/brand-ray.html, moduleview/catalog/brand.tpl) ---------- */
.ray-brand { font-size: 1.03rem; line-height: 1.6; color: var(--ray-body); }
.ray-brand h2 { font-style: italic; text-transform: uppercase; margin: 0 0 1.25rem; }
.ray-brand h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); margin: 0 0 .6rem; }
.ray-brand p { max-width: 46rem; }
.ray-brand strong { color: var(--ray-text); }
.ray-brand__kicker, .ray-brand-hero__kicker {
    display: inline-flex; align-items: center; gap: .55em; margin-bottom: .7rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ray-red);
}
.ray-brand__kicker::before, .ray-brand-hero__kicker::before {
    content: ""; width: 1.4em; height: .3em; background: var(--ray-red); transform: skewX(var(--ray-skew)); border-radius: 1px;
}
.ray-brand-section { margin-top: clamp(3rem, 2.2rem + 3vw, 5rem); }

/* первый экран: тёмная плашка с «линиями скорости» */
.ray-brand-hero {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ray-ink);
    border-radius: var(--ray-radius-lg); padding: clamp(2rem, 1.2rem + 4vw, 4.5rem) clamp(1.25rem, .8rem + 3vw, 4rem);
}
.ray-brand-hero::before, .ray-brand-hero::after {
    content: ""; position: absolute; z-index: -1; right: -4rem; height: 2.2rem; background: var(--ray-red);
    transform: skewX(var(--ray-skew)); border-radius: 4px;
}
.ray-brand-hero::before { top: 18%; width: 34%; }
.ray-brand-hero::after { top: calc(18% + 3.4rem); width: 24%; opacity: .55; right: 2rem; }
.ray-brand-hero__kicker { color: rgba(255,255,255,.8); }
.ray-brand-hero__title {
    font-style: italic; text-transform: uppercase; color: #fff; max-width: 15em;
    font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem); line-height: .95; margin: 0 0 1.25rem;
}
.ray-brand-hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); color: rgba(255,255,255,.82); max-width: 40rem; margin: 0 0 1.75rem; }
.ray-brand-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ray-brand-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1rem 0 0; }

/* первый экран с фото: снимок на фоне, затемнение слева под текст (на телефоне — снизу), без «линий скорости» */
.ray-brand-hero--photo {
    --shade: linear-gradient(90deg, rgba(15,19,25,.92) 0%, rgba(15,19,25,.78) 38%, rgba(15,19,25,.15) 75%, rgba(15,19,25,0) 100%);
    background: #0f1319; min-height: clamp(26rem, 20rem + 18vw, 34rem);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.ray-brand-hero--photo::after { display: none; }
.ray-brand-hero--photo::before {   /* затемнение вместо полосы */
    inset: 0; width: auto; height: auto; transform: none; border-radius: 0; background: var(--shade);
}
.ray-brand-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }

/* основатель */
.ray-brand-founder {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem);
    align-items: start; margin-top: clamp(3rem, 2.2rem + 3vw, 5rem);
}
.ray-brand-founder__mark {
    aspect-ratio: 4 / 5; border-radius: var(--ray-radius-lg); background: var(--ray-panel); position: relative; overflow: hidden;
    display: grid; place-items: center;
}
.ray-brand-founder__mark::before {
    content: ""; position: absolute; left: -10%; right: 25%; bottom: 14%; height: 18%; background: var(--ray-red);
    transform: skewX(var(--ray-skew)); border-radius: 4px;
}
.ray-brand-founder__mark span {
    position: relative; font-family: var(--ray-font-display); font-style: italic; font-weight: 800;
    font-size: clamp(4rem, 2.5rem + 6vw, 8rem); color: var(--ray-text); letter-spacing: -.02em;
}
.ray-brand-founder__mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ray-brand-founder h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); margin-bottom: 1rem; }
.ray-brand-founder__titles { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.ray-brand-founder__titles li {
    background: var(--ray-ink); color: #fff; font-weight: 600; font-size: .9rem; padding: .4rem .75rem; border-radius: var(--ray-radius-sm);
}
.ray-brand-quote {
    margin: 1.75rem 0 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--ray-red); background: var(--ray-panel);
    border-radius: 0 var(--ray-radius) var(--ray-radius) 0; font-family: var(--ray-font-display); font-style: italic;
    font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; color: var(--ray-text); max-width: 40rem;
}
.ray-brand-quote cite { display: block; margin-top: .6rem; font-family: var(--ray-font-body); font-style: normal; font-weight: 500; font-size: .9rem; color: var(--ray-muted); }

/* история — лента сезонов из ray-amb-timeline, плюс списки в карточках */
.ray-brand .ray-amb-timeline { max-width: 50rem; }
.ray-brand .ray-amb-timeline p { margin: 0; }
.ray-brand-timeline-img { display: block; width: min(100%, 15rem); height: auto; margin-top: .9rem; border-radius: var(--ray-radius); }

/* «Со спортом»: текст + фото команды */
.ray-brand-sport { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.ray-brand-sport__img { display: block; width: 100%; height: auto; border-radius: var(--ray-radius-lg); aspect-ratio: 4 / 3; object-fit: cover; }

/* производство */
.ray-brand-prod { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, .6rem + 1.5vw, 2rem); }
.ray-brand-prod__card { border: 1px solid var(--ray-line); border-radius: var(--ray-radius-lg); overflow: hidden; background: var(--ray-card); display: flex; flex-direction: column; }
.ray-brand-prod__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ray-brand-prod__body { padding: clamp(1.1rem, .9rem + .8vw, 1.75rem); display: flex; flex-direction: column; flex: 1; }
.ray-brand-prod__body ul { list-style: none; padding: 0; margin: .5rem 0 1.25rem; display: grid; gap: .6rem; }
.ray-brand-prod__body li { position: relative; padding-left: 1.6rem; }
.ray-brand-prod__body li::before {
    content: ""; position: absolute; left: 0; top: .62em; width: .95rem; height: .22rem;
    background: var(--ray-red); transform: skewX(var(--ray-skew)); border-radius: 1px;
}
.ray-brand-prod__link { margin-top: auto; font-weight: 600; color: var(--ray-text); text-decoration: none; }
.ray-brand-prod__link:hover { color: var(--ray-red); }
.ray-brand a:not(.btn):not(.ray-brand-prod__link) { color: var(--ray-text); text-decoration-color: var(--ray-red); text-underline-offset: .2em; }
.ray-brand-teams {
    margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
    padding: clamp(1.1rem, .9rem + .8vw, 1.75rem); border-radius: var(--ray-radius-lg); background: var(--ray-panel); border-left: 4px solid var(--ray-red);
}
.ray-brand-teams p { margin: 0; }

/* магазин */
.ray-brand-shop {
    margin-top: clamp(3rem, 2.2rem + 3vw, 5rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
    padding: clamp(1.5rem, 1rem + 2vw, 3rem); border-radius: var(--ray-radius-lg); background: var(--ray-ink); color: rgba(255,255,255,.85);
}
.ray-brand-shop h2 { color: #fff; }
.ray-brand-shop p { margin: 0; }
.ray-brand-shop .ray-brand__kicker { color: #ff6b70; }
.ray-brand-shop__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ray-brand-shop .btn-outline-primary { --bs-btn-bg: transparent; background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.ray-brand-shop .btn-outline-primary:hover { background: #fff; color: #14181F; border-color: #fff; }
.ray-brand .ray-brand-shop a:not(.btn) { color: #fff; text-decoration-color: rgba(255,255,255,.45); }
.ray-brand .ray-brand-shop a:not(.btn):hover { color: #ff8a8e; }
.ray-brand a[href^="tel:"] { white-space: nowrap; }

@media (max-width: 991.98px) {
    .ray-brand-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ray-brand-prod { grid-template-columns: minmax(0, 1fr); }
    .ray-brand-sport { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .ray-brand-founder { grid-template-columns: minmax(0, 1fr); }
    .ray-brand-founder__mark { aspect-ratio: 4 / 5; max-width: 22rem; }
    .ray-brand-founder__mark:not(:has(img)) { display: none; }   /* без фото — на телефоне без заглушки с инициалами */
    .ray-brand-hero::before { top: auto; bottom: 1.5rem; width: 55%; height: 1.4rem; }
    .ray-brand-hero::after { display: none; }
    .ray-brand-hero { padding-bottom: 4.5rem; }
    /* телефон: фото полосой сверху, текст ниже на тёмном — поверх снимка мелкий текст не читается */
    .ray-brand-hero--photo {
        --shade: linear-gradient(180deg, rgba(15,19,25,0) 0, rgba(15,19,25,.15) 9rem, #0f1319 16rem);
        min-height: 0; padding-top: 14rem; padding-bottom: 2rem;
    }
    .ray-brand-hero--photo::before { inset: 0; width: auto; height: auto; }
    .ray-brand-hero__bg { height: 16rem; bottom: auto; object-position: 60% 30%; }
}

/* ---------- Лендинг «Командам и клубам» /ekipirovka-komand/ (content/pages/ekipirovka-komand.html) ---------- */
.ray-landing-page { width: 100%; padding-bottom: 2rem; }
.ray-landing [id] { scroll-margin-top: 6rem; }
.ray-teams-what { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ray-teams-what__item { border-radius: var(--ray-radius-lg); background: var(--ray-panel); overflow: hidden; display: flex; flex-direction: column; }
.ray-teams-what__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 3px solid var(--ray-red); }
.ray-teams-what__body { padding: 1.1rem 1.25rem 1.25rem; }
.ray-teams-what__item p { margin: 0; font-size: .95rem; }

.ray-teams-process { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.ray-teams-process__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.ray-teams-process__photos figure { margin: 0; }
.ray-teams-process__photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ray-radius-lg); }
.ray-teams-process__photos figcaption { margin-top: .4rem; font-size: .82rem; color: var(--ray-muted); }
.ray-teams-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.ray-teams-steps li { counter-increment: step; position: relative; padding-left: 3.25rem; min-height: 2.4rem; }
.ray-teams-steps li::before {
    content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--ray-ink); color: #fff;
    font-family: var(--ray-font-display); font-style: italic; font-weight: 800; font-size: 1.2rem;
}
.ray-teams-video { margin: 0; }
.ray-teams-video video {
    display: block; width: 100%; max-width: 19rem; margin-left: auto; aspect-ratio: 9 / 16; object-fit: cover;
    border-radius: var(--ray-radius-lg); background: #1b2029; box-shadow: 0 24px 50px -24px rgba(20,24,31,.55);
}
.ray-teams-video figcaption { max-width: 19rem; margin: .6rem 0 0 auto; font-size: .82rem; color: var(--ray-muted); }

.ray-teams-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ray-teams-gallery figure {
    margin: 0; position: relative; overflow: hidden; border-radius: var(--ray-radius-lg); background: var(--ray-panel-2); aspect-ratio: 4 / 5;
}
.ray-teams-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ray-ease); }
.ray-teams-gallery figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem .9rem .8rem; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3;
    background: linear-gradient(180deg, rgba(20,24,31,0), rgba(20,24,31,.85));
}
.ray-teams-gallery figure:hover img { transform: scale(1.04); }

.ray-teams-flow { list-style: none; counter-reset: flow; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.ray-teams-flow li { counter-increment: flow; display: flex; flex-direction: column; gap: .4rem; padding-top: 1rem; border-top: 3px solid var(--ray-text); }
.ray-teams-flow li::before {
    content: counter(flow, decimal-leading-zero); font-family: var(--ray-font-display); font-style: italic; font-weight: 800;
    font-size: 2rem; line-height: 1; color: var(--ray-red);
}
.ray-teams-flow b { font-size: 1.05rem; color: var(--ray-text); }
.ray-teams-flow span { font-size: .92rem; }

.ray-teams-faq details { border-bottom: 1px solid var(--ray-line); max-width: 50rem; }
.ray-teams-faq summary {
    cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; position: relative; font-weight: 600; color: var(--ray-text); font-size: 1.05rem;
}
.ray-teams-faq summary::-webkit-details-marker { display: none; }
.ray-teams-faq summary::after {
    content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--ray-red); transition: transform .2s var(--ray-ease);
}
.ray-teams-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ray-teams-faq details p { margin: 0 0 1rem; }
.ray-teams-faq summary:focus-visible { outline: 2px solid var(--ray-red); outline-offset: 2px; }

@media (max-width: 991.98px) {
    .ray-teams-what { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ray-teams-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ray-teams-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .ray-teams-process { grid-template-columns: minmax(0, 1fr); }
    .ray-teams-video video, .ray-teams-video figcaption { margin-left: 0; max-width: 18rem; }
    .ray-teams-process__photos { gap: .6rem; }
}
@media (max-width: 575.98px) {
    .ray-teams-what, .ray-teams-flow { grid-template-columns: minmax(0, 1fr); }
    .ray-teams-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .ray-teams-gallery figcaption { font-size: .75rem; padding: 2rem .6rem .5rem; }
}
@media (prefers-reduced-motion: reduce) { .ray-teams-gallery img { transition: none; } }

/* ---------- Верхняя полоса шапки: меню от левого края, под логотипом ----------
   В раскладке шапки у колонки меню offset-xxl-1 (сдвиг на 1/12 на широких экранах) и выравнивание по центру < 1200px —
   меню «плавало». Выравниваем по левому краю контейнера. */
@media (min-width: 992px) {
    .head-bar .row > .col { margin-left: 0 !important; justify-content: flex-start !important; }
    .head-bar__menu > li:first-child > .head-bar__link { padding-left: 0; }
}

/* ---------- Оформление заказа: промокод и согласие (moduleview/shop/blocks/cart/cart_full.tpl, ray.js) ---------- */
.ray-coupon__field { position: relative; display: block; flex: 0 1 246px; max-width: 246px; }
.ray-coupon__field .form-control { max-width: none; width: 100%; padding-right: 2.5rem; }
.ray-coupon__clear {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    width: 2rem; height: 2rem; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: transparent; color: #8a909c; cursor: pointer; transition: background-color .15s var(--ray-ease), color .15s var(--ray-ease);
}
.ray-coupon__clear[hidden] { display: none; }
.ray-coupon__clear:hover { background: var(--ray-panel-2); color: var(--ray-text); }
.ray-coupon__clear:focus-visible { outline: 2px solid var(--ray-red); outline-offset: 1px; }
.ray-coupon--error .form-control { border-color: var(--ray-red); box-shadow: 0 0 0 3px rgba(215, 25, 32, .12); }
.ray-coupon__error { color: var(--ray-red); font-size: .9rem; margin-top: .35rem; }
@media (max-width: 575.98px) { .ray-coupon__field { flex: 1 1 auto; max-width: 100%; } }

/* согласие на обработку данных не отмечено — подсвечиваем само место, а не alert */
.policy-agreement.ray-agree-missing {
    outline: 2px solid var(--ray-red); outline-offset: 6px; border-radius: 4px;
    animation: ray-shake .4s var(--ray-ease) 1;
}
.policy-agreement.ray-agree-missing input[type="checkbox"] { box-shadow: 0 0 0 3px rgba(215, 25, 32, .35); border-color: var(--ray-red); }
.ray-agree-hint { color: var(--ray-red); font-size: .9rem; font-weight: 600; margin-top: .75rem; }
@keyframes ray-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .policy-agreement.ray-agree-missing { animation: none; } }

/* ---------- Главная: полоса преимуществ (helper/usertemplate/include/ray_benefits.tpl) ---------- */
.ray-benefits {
    list-style: none; margin: 0 0 clamp(1.5rem, 1rem + 1.5vw, 2.5rem); padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem;
}
.ray-benefits a {
    display: flex; align-items: center; gap: .75rem; height: 100%; padding: .9rem 1rem;
    border-radius: var(--ray-radius-lg); background: var(--ray-panel); color: var(--ray-text); text-decoration: none;
    transition: background-color .2s var(--ray-ease);
}
.ray-benefits a:hover { background: var(--ray-panel-2); color: var(--ray-text); }
.ray-benefits a:focus-visible { outline: 2px solid var(--ray-red); outline-offset: 2px; }
.ray-benefits svg { flex: none; width: 2rem; height: 2rem; fill: var(--ray-red); }
.ray-benefits span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ray-benefits b { font-size: .92rem; font-weight: 600; text-wrap: balance; }
.ray-benefits small { font-size: .8rem; color: var(--ray-muted); margin-top: .15rem; }
@media (max-width: 1199.98px) {
    .ray-benefits { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(14rem, 1fr);
        overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
    .ray-benefits::-webkit-scrollbar { display: none; }
    .ray-benefits li { scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
    .ray-benefits { grid-auto-columns: 78%; margin-inline: calc(var(--bs-gutter-x, 1.5rem) * -.5); padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5); }
}

/* ---------- Главная: магазин и текст о магазине (helper/usertemplate/include/ray_home_bottom.tpl) ---------- */
.ray-store {
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    border-radius: var(--ray-radius-lg); overflow: hidden; background: var(--ray-ink); color: rgba(255,255,255,.85);
}
.ray-store__info { padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.ray-store .ray-brand__kicker { color: #ff6b70; }
.ray-store__title { color: #fff; font-style: italic; text-transform: uppercase; margin: 0 0 1.25rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.ray-store__facts { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.ray-store__facts li { position: relative; padding-left: 1.5rem; line-height: 1.45; }
.ray-store__facts li::before {
    content: ""; position: absolute; left: 0; top: .6em; width: .85rem; height: .22rem;
    background: var(--ray-red); transform: skewX(var(--ray-skew)); border-radius: 1px;
}
.ray-store__facts b { color: #fff; }
.ray-store__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ray-store__actions a[href^="tel:"] { white-space: nowrap; }
.ray-store__map { position: relative; min-height: 20rem; background: #1b2029; }
.ray-store__map-canvas { position: absolute; inset: 0; }
.ray-store__map-btn {
    position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    background:
        radial-gradient(circle at 50% 45%, rgba(215,25,32,.28), transparent 45%),
        repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 38px),
        repeating-linear-gradient(25deg, rgba(255,255,255,.035) 0 2px, transparent 2px 46px),
        #1b2029;
    transition: background-color .2s var(--ray-ease);
}
.ray-store__map-btn svg { color: var(--ray-red); width: 2.5rem; height: 2.5rem; }
.ray-store__map-btn span { font-weight: 600; font-size: 1.05rem; }
.ray-store__map-btn small { color: rgba(255,255,255,.55); }
.ray-store__map-btn:hover span { text-decoration: underline; }
.ray-store__map-btn:focus-visible { outline: 3px solid var(--ray-red); outline-offset: -3px; }

.ray-home-about { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.ray-home-about__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0 0 1rem; color: var(--ray-text); }
.ray-home-about__cols { columns: 2 22rem; column-gap: 2.5rem; color: var(--ray-text-2); font-size: .95rem; line-height: 1.65; }
.ray-home-about__cols p { margin: 0 0 1rem; break-inside: avoid; }
.ray-home-about a { color: var(--ray-text); text-decoration-color: var(--ray-red); text-underline-offset: .2em; }
.ray-home-about a:hover { color: var(--ray-red); }
@media (max-width: 767.98px) {
    .ray-store { grid-template-columns: minmax(0, 1fr); }
    .ray-store__map { min-height: 15rem; }
}

/* Ленты товаров (Хиты, Смазки, Зимний сезон): подложка карточки при наведении выступает вверх на 16px — ровно на отступ
   ленты с overflow: hidden, а карточка ещё приподнимается на 2px → верхняя граница обрезалась. Больше места сверху,
   компенсируем отрицательным отступом, чтобы расстояния на странице не поменялись. */
@media (min-width: 992px) {   /* ниже 992px у темы высота ленты «по содержимому» и наведения нет */
    /* Высота ленты — по содержимому. В теме лента 502px, контейнер 835px с overflow: hidden (прячет соседние слайды и
       даёт плашке размеров свисать вниз). С фото 3:4 карточка выше 502px и растёт с шириной экрана — вылезала на блок
       ниже. Теперь по горизонтали соседние слайды обрезает overflow-x: clip, а вниз плашка при наведении свисает свободно. */
    .product-slider { height: auto; }
    .product-slider__container { padding-top: 24px; margin-top: -8px; height: auto; overflow: visible; overflow-x: clip; }
}

/* ---------- Единые иконки: избранное, сравнение, корзина, нижнее меню, поиск (Phosphor, resource/img/ray/icons) ----------
   В теме у каждой иконки свой рисунок и толщина. Не переписывая шаблоны, рисуем на месте их <svg> маской наш значок:
   фон = currentColor, маска = файл значка, собственное содержимое svg скрыто. */
.rs-compare-block svg, .rs-favorite-block svg, .rs-cart-block .cart-icon-block svg,
.rs-favorite svg, .rs-compare svg, .head-search__btn svg,
.mobile-bar__link[href="/"] svg, .mobile-bar__link.offcanvas-open svg, .head-bar__link svg {
    background-color: currentColor;
    -webkit-mask: var(--ray-ico) center / contain no-repeat;
    mask: var(--ray-ico) center / contain no-repeat;
    fill: none !important; stroke: none !important;
}
.rs-compare-block svg > *, .rs-favorite-block svg > *, .rs-cart-block .cart-icon-block svg > *,
.rs-favorite svg > *, .rs-compare svg > *, .head-search__btn svg > *,
.mobile-bar__link[href="/"] svg > *, .mobile-bar__link.offcanvas-open svg > *, .head-bar__link svg > * { display: none; }

.rs-compare-block svg, .rs-compare svg { --ray-ico: url("../img/ray/icons/chart-bar.svg"); }
.rs-favorite-block svg, .rs-favorite svg { --ray-ico: url("../img/ray/icons/heart.svg"); }
.rs-cart-block .cart-icon-block svg { --ray-ico: url("../img/ray/icons/shopping-cart-simple.svg"); }
.head-search__btn svg { --ray-ico: url("../img/ray/icons/magnifying-glass.svg"); }
.mobile-bar__link[href="/"] svg { --ray-ico: url("../img/ray/icons/house.svg"); }
.mobile-bar__link.offcanvas-open svg { --ray-ico: url("../img/ray/icons/squares-four.svg"); }
.head-bar__link svg { --ray-ico: url("../img/ray/icons/user.svg"); }

/* цвета: шапка — графит, активное в карточке — красный и залитый значок */
.head-icon-link svg { color: var(--ray-text); }
.head-icon-link:hover svg { color: var(--ray-red); }
.head-search__btn svg { color: var(--ray-red); }
.rs-favorite svg, .rs-compare svg { color: #7a808c; transition: color .15s var(--ray-ease); }
.rs-favorite:hover svg, .rs-compare:hover svg { color: var(--ray-text); }
.rs-favorite.rs-in-favorite svg { --ray-ico: url("../img/ray/icons/heart-fill.svg"); color: var(--ray-red); }
.rs-compare.rs-in-compare svg { --ray-ico: url("../img/ray/icons/chart-bar-fill.svg"); color: var(--ray-red); }
.mobile-bar__link svg { color: currentColor; }

/* ---------- Размеры при наведении на карточку (выпадающий блок темы, offerspreview.js) ----------
   Нет в наличии — не показываем (тема ставит класс no-exists и снимает его при смене цвета). Подпись «42 RU/36 EUR/XXS»
   ray.js сокращает до «42 · XXS» (полная — во всплывающей подсказке), кнопки компактнее — по несколько в ряд. */
.item-card__complete .item-product-choose > li.no-exists { display: none; }
.item-card__complete .item-product-choose { gap: 6px; }
.item-card__complete .item-product-choose li { margin: 0 !important; }
.item-card__complete .radio-list label { height: 32px; min-width: 0; padding: 2px 9px; font-size: 13px; white-space: nowrap; }
.item-card__complete .radio-list label small { color: var(--ray-muted); margin-left: .3em; font-size: 11px; }
.item-card__complete .radio-list input:checked + label small { color: inherit; }

/* ---------- Фото в карточке листаются при движении мыши (ray.js), полоска-индикатор внизу фото ---------- */
.ray-gal { position: absolute; left: 10%; right: 10%; bottom: 6px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .2s var(--ray-ease); pointer-events: none; }
.ray-gal span { flex: 1; height: 2px; border-radius: 1px; background: rgba(20, 24, 31, .15); }
.ray-gal span.is-active { background: var(--ray-text); }
.item-product-img:hover .ray-gal { opacity: 1; }
/* значок на кнопке «В корзину» — файл темы не трогаем, подменяем картинку стилем */
img[src$="/icons/to-cart-white.svg"] { content: url("../img/ray/icons/cart-white.svg?v=2"); width: 24px; height: 24px; }

/* ---------- Фото магазина на Блюхера, 63 (resource/img/ray/store/, исходники — docs/foto-magazin/) ---------- */
/* на главной: фото зала под кнопкой «Показать карту» (ray_home_bottom.tpl) */
.ray-store__map-btn {
    background:
        linear-gradient(180deg, rgba(20, 24, 31, .35), rgba(20, 24, 31, .8)),
        url("../img/ray/store/interior.jpg") center / cover no-repeat, #1b2029;
}
.ray-store__map-btn > * { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
/* в контактах: галерея — узкие вертикальные по краям, широкие между ними */
.ray-store-gallery {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 4rem + 11vw, 15rem);
    grid-auto-flow: dense; gap: .75rem; margin: 1rem 0 2.5rem;
}
.ray-store-gallery figure { margin: 0; overflow: hidden; border-radius: var(--ray-radius-lg); background: var(--ray-panel-2); }
.ray-store-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ray-ease); }
.ray-store-gallery figure:hover img { transform: scale(1.03); }
.ray-store-gallery .is-tall { grid-row: span 2; }
.ray-store-gallery .is-wide { grid-column: span 2; }
@media (max-width: 767.98px) {
    .ray-store-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 11rem; }
}

/* ---------- Главная: плитки разделов (moduleview/catalog/blocks/topcategories/top_categories.tpl) ----------
   Фото-плитки 1:1 в одном стиле (наш товар на тёмно-синем фоне — как первый экран), название — снизу слева. */
.ray-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.625rem, .3rem + .9vw, 1.25rem); }
.ray-cat {
    position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate;
    border-radius: var(--ray-radius-lg); background: #141a26; color: #fff; text-decoration: none;
}
.ray-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
    transition: transform .7s var(--ray-ease); }
.ray-cat::after { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(9, 12, 20, .88) 0%, rgba(9, 12, 20, .45) 28%, transparent 52%); }
.ray-cat__title {
    position: absolute; left: clamp(.9rem, .5rem + 1vw, 1.5rem); right: 4rem; bottom: clamp(.85rem, .5rem + .9vw, 1.35rem);
    font-family: var(--ray-font-display); font-weight: 700; font-style: italic; text-transform: uppercase;
    font-size: clamp(1.05rem, .7rem + 1vw, 1.6rem); line-height: 1.05; letter-spacing: .01em; text-wrap: balance;
}
.ray-cat__title::before {
    content: ""; display: block; width: 1.6rem; height: .25rem; margin-bottom: .55rem;
    background: var(--ray-red); transform: skewX(var(--ray-skew)); border-radius: 1px;
    transition: width .35s var(--ray-ease);
}
.ray-cat__arrow {
    position: absolute; right: clamp(.9rem, .5rem + 1vw, 1.5rem); bottom: clamp(.85rem, .5rem + .9vw, 1.35rem);
    width: 2.5rem; height: 2.5rem; padding: .65rem; border-radius: 50%; fill: #fff;
    border: 1px solid rgba(255, 255, 255, .35); transition: background-color .25s var(--ray-ease), border-color .25s var(--ray-ease), transform .25s var(--ray-ease);
}
.ray-cat:hover { color: #fff; }
.ray-cat:hover .ray-cat__img { transform: scale(1.05); }
.ray-cat:hover .ray-cat__title::before { width: 2.6rem; }
.ray-cat:hover .ray-cat__arrow { background: var(--ray-red); border-color: var(--ray-red); transform: translateX(2px); }
.ray-cat:focus-visible { outline: 3px solid var(--ray-red); outline-offset: 3px; }
.ray-cat--plain { background: var(--ray-panel); color: var(--ray-text); }
.ray-cat--plain .ray-cat__img { object-fit: contain; padding: 12% 12% 30%; }
.ray-cat--plain::after { display: none; }
.ray-cat--plain .ray-cat__arrow { fill: var(--ray-ink); border-color: rgba(20, 24, 31, .2); }
@media (max-width: 991.98px) { .ray-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .ray-cat__arrow { display: none; } .ray-cat__title { right: .9rem; } }
@media (prefers-reduced-motion: reduce) { .ray-cat__img, .ray-cat__arrow, .ray-cat__title::before { transition: none; } }

/* ---------- Полоса преимуществ — одна панель с разделителями вместо пяти «таблеток»,
   и одинаковые отступы до баннера и до плиток (у секции баннера свой нижний отступ 76px — забираем часть) ---------- */
.ray-benefits { gap: 0; padding: .35rem; border-radius: var(--ray-radius-lg); background: var(--ray-panel);
    margin: -2.75rem 0 2rem; }
.ray-benefits li + li { border-left: 1px solid var(--ray-line); }
.ray-benefits a { background: none; border-radius: var(--ray-radius); padding: .8rem .9rem; gap: .65rem; }
.ray-benefits a:hover { background: var(--ray-card); }
.ray-benefits svg { width: 1.75rem; height: 1.75rem; }
.ray-benefits li:hover, .ray-benefits li:hover + li { border-color: transparent; }
@media (min-width: 1200px) { .ray-benefits { grid-template-columns: repeat(5, minmax(0, auto)); } }   /* шире — у длинных подписей */
@media (max-width: 991.98px) { .ray-benefits { margin: -2rem 0 1rem; } }   /* у секции баннера здесь 48px → 16 и 16 */

/* ---------- Контакты: две колонки — контакты слева, фото магазина справа (content/pages/contacts.html) ---------- */
.ray-page--wide { max-width: none; }
.ray-contacts-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: start; }
.ray-contacts-photos h2 { margin-top: 0 !important; }
.ray-contacts-photos .ray-store-gallery { margin: 1rem 0 0; grid-auto-rows: clamp(7rem, 1rem + 8vw, 11rem); }
.ray-store-gallery a { display: block; height: 100%; cursor: zoom-in; }
@media (max-width: 991.98px) { .ray-contacts-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Шапка: два телефона с подписями в верхней тёмной полосе (header/ray_phones.tpl → include/ray_contacts.tpl) ----------
   Колонка с входом в кабинет в теме узкая (col-xl-3) — с телефонами она по ширине содержимого, меню слева сжимается. */
.head-bar .row > .d-flex:has(> .ray-hphones) { flex: 0 0 auto; width: auto; }
.head-bar__link { flex: none; }
.ray-hphones { align-items: center; gap: 1.1rem; margin-right: 1.25rem; }
.ray-hphones__item { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; color: #fff; white-space: nowrap; }
.ray-hphones__item + .ray-hphones__item { padding-left: 1.1rem; border-left: 1px solid rgba(255, 255, 255, .18); }
.ray-hphones__label { font-size: .66rem; letter-spacing: .02em; color: rgba(255, 255, 255, .55); }
.ray-hphones__num { font-weight: 600; font-size: .86rem; font-variant-numeric: tabular-nums; transition: color .2s var(--ray-ease); }
.ray-hphones__item:hover { color: #fff; }
.ray-hphones__item:hover .ray-hphones__num { color: var(--ray-red); }
/* 992–1199: полоса переносится на вторую строку — места хватает, подпись рядом с номером */
@media (max-width: 1199.98px) { .ray-hphones__item { flex-direction: row; align-items: baseline; gap: .4rem; } .ray-hphones__label { font-size: .75rem; } }

/* ---------- Шапка на телефоне: Telegram, MAX, телефон — одинаковые круглые кнопки ---------- */
.ray-hmob { display: flex; align-items: center; gap: .5rem; margin-left: 1rem; }
.ray-hmob__btn {
    position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    border: 1px solid var(--ray-line); color: var(--ray-text); cursor: pointer; list-style: none;
    transition: border-color .2s var(--ray-ease), color .2s var(--ray-ease);
}
.ray-hmob__btn::-webkit-details-marker { display: none; }
.ray-hmob__btn::before {
    content: ""; width: 1.3rem; height: 1.3rem; background-color: currentColor;
    -webkit-mask: var(--ray-ico) center / contain no-repeat; mask: var(--ray-ico) center / contain no-repeat;
}
.ray-hmob__btn:hover, .ray-hmob__phones[open] > .ray-hmob__btn { border-color: var(--ray-red); color: var(--ray-red); }
.ray-hmob__phones { position: relative; }
.ray-hmob__panel {
    position: absolute; right: 0; top: calc(100% + .5rem); z-index: 1060; min-width: 16rem; padding: .4rem;
    border-radius: var(--ray-radius-lg); background: var(--ray-card); box-shadow: 0 16px 40px -12px rgba(20, 24, 31, .35);
    border: 1px solid var(--ray-line);
}
.ray-hmob__panel a { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .8rem; border-radius: var(--ray-radius); color: var(--ray-text); text-decoration: none; }
.ray-hmob__panel a + a { border-top: 1px solid var(--ray-line); }
.ray-hmob__panel a:hover { background: var(--ray-panel); }
.ray-hmob__panel b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ray-hmob__panel span { font-size: .8rem; color: var(--ray-muted); }

/* ---------- Подвал: логотип и подпись слева, переключатель темы с подписью, подписка, контакты ---------- */
.footer .footer__main .text-center.d-inline-block { text-align: left !important; display: block !important; }
.footer .logo-desc { font-size: .85rem; line-height: 1.45; color: rgba(255, 255, 255, .6) !important; max-width: 17rem; margin-top: .75rem; }
.footer-theme-switcher { justify-content: flex-start; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.footer-theme-switcher::before { content: "Оформление"; font-size: .8rem; color: rgba(255, 255, 255, .55); }
.ray-mailing__title { display: block; color: #fff; font-weight: 600; margin-bottom: .65rem; }
.footer-mailing.ray-mailing { gap: .5rem; padding: 0; background: none; max-width: 24rem; }
.footer-mailing.ray-mailing input {
    flex: 1 1 0; min-width: 0; height: 2.75rem; padding: 0 .9rem; border-radius: var(--ray-radius);
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff;
    transition: border-color .2s var(--ray-ease);
}
.footer-mailing.ray-mailing input::placeholder { color: rgba(255, 255, 255, .45); }
.footer-mailing.ray-mailing input:focus { border-color: var(--ray-red); }
.footer-mailing.ray-mailing button {
    min-width: 0; max-width: none; width: auto; height: 2.75rem; margin: 0; padding: 0 1.1rem; border-radius: var(--ray-radius);
    background: var(--ray-red); color: #fff; font-weight: 600; font-size: .9rem; transition: filter .2s var(--ray-ease);
}
.footer-mailing.ray-mailing button:hover { filter: brightness(1.1); }
.ray-fcontacts li { gap: .75rem; }
.ray-fcontacts li:not(:last-child) { margin-bottom: 1.1rem; }
.ray-fcontacts__ico {
    flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; background-color: var(--ray-red);
    -webkit-mask: var(--ray-ico) center / contain no-repeat; mask: var(--ray-ico) center / contain no-repeat;
}
.ray-fcontacts li > span:last-child { display: flex; flex-direction: column; gap: .15rem; }
.ray-fcontacts a { font-weight: 600; font-variant-numeric: tabular-nums; }
.ray-fcontacts small { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.footer__bar { color: rgba(255, 255, 255, .55); font-size: .85rem; }
.ray-hmob__btn[href*="max.ru"]::before { width: 1.1rem; height: 1.1rem; }   /* у значка MAX заливка — чуть меньше, чтобы не был тяжелее остальных */

/* ---------- Рассылка: ответ после «Подписаться» в подвале (moduleview/emailsubscribe/blocks/button/button.tpl) ---------- */
.ray-mailing__done {
    display: flex; gap: .75rem; align-items: flex-start; max-width: 24rem; padding: .9rem 1rem;
    border-radius: var(--ray-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .8); font-size: .88rem; line-height: 1.45;
}
.ray-mailing__done b { display: block; color: #fff; font-size: .95rem; margin-bottom: .15rem; }
.ray-mailing__done-ico { flex: none; width: 1.5rem; height: 1.5rem; background-color: #2fd16f;
    -webkit-mask: var(--ray-ico) center / contain no-repeat; mask: var(--ray-ico) center / contain no-repeat; }

/* ---------- Рассылка: подтверждение / отписка (moduleview/emailsubscribe/ray_done.tpl) ---------- */
.ray-done { display: grid; place-items: center; padding: clamp(2rem, 1rem + 5vw, 5rem) 0 clamp(3rem, 2rem + 5vw, 6rem); }
.ray-done__card {
    position: relative; width: min(100%, 36rem); padding: clamp(1.75rem, 1rem + 3vw, 3rem); text-align: center;
    border-radius: calc(var(--ray-radius-lg) + 6px); background: var(--ray-panel); overflow: hidden; isolation: isolate;
}
/* фирменные наклонные полосы в углу — как у логотипа */
.ray-done__card::before {
    content: ""; position: absolute; z-index: -1; top: -2.5rem; right: -3rem; width: 14rem; height: 7rem;
    background: repeating-linear-gradient(90deg, var(--ray-red) 0 .55rem, transparent .55rem 1.4rem);
    transform: skewX(var(--ray-skew)) rotate(-12deg); opacity: .12;
}
.ray-done__icon {
    display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.25rem; border-radius: 50%;
    background: var(--ray-red); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--ray-red) 70%, transparent);
    animation: ray-done-pop .6s var(--ray-ease) both;
}
.ray-done__icon::before { content: ""; width: 2.1rem; height: 2.1rem; background-color: #fff;
    -webkit-mask: var(--ray-ico) center / contain no-repeat; mask: var(--ray-ico) center / contain no-repeat; }
.ray-done--muted .ray-done__icon { background: var(--ray-text); box-shadow: none; }
.ray-done--muted .ray-done__icon::before { background-color: var(--ray-panel); }
.ray-done .ray-brand__kicker { justify-content: center; }
.ray-done__title { font-style: italic; text-transform: uppercase; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin: .35rem 0 .9rem; color: var(--ray-text); }
.ray-done__text { color: var(--ray-text-2); font-size: 1.02rem; line-height: 1.6; max-width: 28rem; margin: 0 auto 1.75rem; text-wrap: pretty; }
.ray-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
@keyframes ray-done-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ray-done__icon { animation: none; } }

/* ---------- Страница ошибки 404 и др. (exception.my.tpl — отдельный HTML без шапки сайта) ---------- */
.ray-err {
    position: relative; min-height: 100dvh; margin: 0; display: flex; flex-direction: column;
    color: rgba(255, 255, 255, .85); background: #0d1119; overflow-x: hidden;
}
.ray-err__bg {
    position: fixed; inset: 0; z-index: 0;
    background:
        linear-gradient(90deg, rgba(10, 13, 20, .94) 0%, rgba(10, 13, 20, .78) 42%, rgba(10, 13, 20, .25) 100%),
        url("../img/ray/err/winter.jpg") center / cover no-repeat;
}
.ray-err > *:not(.ray-err__bg) { position: relative; z-index: 1; }
.ray-err__head, .ray-err__main, .ray-err__foot { width: min(100% - clamp(2rem, 1rem + 4vw, 6rem), 1320px); margin-inline: auto; }
.ray-err__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.ray-err__logo img { height: 2.25rem; width: auto; }
.ray-err__logo .logo-desc { display: none; }
.ray-err__phone { display: flex; flex-direction: column; align-items: flex-end; color: #fff; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.ray-err__phone span { font-size: .72rem; font-weight: 400; color: rgba(255, 255, 255, .55); }
.ray-err__phone:hover { color: var(--ray-red); }
.ray-err__main { flex: 1; display: grid; align-content: center; padding: 2rem 0 7rem; position: relative; }
.ray-err__code {
    position: absolute; right: 0; top: 50%; transform: translateY(-58%) skewX(var(--ray-skew));
    font-family: var(--ray-font-display); font-weight: 900; font-style: italic; line-height: .8; letter-spacing: -.04em;
    font-size: clamp(9rem, 4rem + 22vw, 26rem); color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, .55);
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 75%); -webkit-background-clip: text; background-clip: text;
    pointer-events: none; user-select: none;
}
.ray-err__body { max-width: 36rem; }
.ray-err .ray-brand__kicker { color: #ff6b70; }
.ray-err__title {
    color: #fff; font-style: italic; text-transform: uppercase; margin: .5rem 0 1rem;
    font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5.25rem); line-height: .95;
}
.ray-err__text { font-size: 1.05rem; line-height: 1.6; color: rgba(255, 255, 255, .75); margin: 0 0 1.5rem; text-wrap: pretty; }
.ray-err__search { display: flex; gap: .5rem; max-width: 30rem; margin-bottom: 1.25rem; }
.ray-err__search input {
    flex: 1; min-width: 0; height: 3rem; padding: 0 1rem; border-radius: var(--ray-radius);
    border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; outline: 0;
    backdrop-filter: blur(6px); transition: border-color .2s var(--ray-ease);
}
.ray-err__search input::placeholder { color: rgba(255, 255, 255, .45); }
.ray-err__search input:focus { border-color: var(--ray-red); }
.ray-err__search button { height: 3rem; padding: 0 1.4rem; border: 0; border-radius: var(--ray-radius); background: #fff; color: #14181F; font-weight: 600; }
.ray-err__search button:hover { background: var(--ray-red); color: #fff; }
.ray-err__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.ray-err__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.ray-err__links a { color: rgba(255, 255, 255, .7); font-size: .92rem; text-decoration: underline; text-decoration-color: rgba(215, 25, 32, .8); text-underline-offset: .3em; }
.ray-err__links a:hover { color: #fff; }
.ray-err__track { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(6rem, 14vw, 13rem); z-index: 1; pointer-events: none; }
.ray-err__track path {
    fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke;
    stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: ray-track 2.4s .3s var(--ray-ease) forwards;
}
.ray-err__track path + path { animation-delay: .45s; }
@keyframes ray-track { to { stroke-dashoffset: 0; } }
.ray-err__foot { padding: 1.25rem 0 1.5rem; font-size: .8rem; color: rgba(255, 255, 255, .45); }
@media (max-width: 767.98px) {
    .ray-err__bg { background: linear-gradient(180deg, rgba(10, 13, 20, .7), rgba(10, 13, 20, .95) 55%), url("../img/ray/err/winter.jpg") 70% center / cover no-repeat; }
    .ray-err__code { position: static; transform: skewX(var(--ray-skew)); font-size: 8rem; margin-bottom: .5rem; }
    .ray-err__main { align-content: start; padding-bottom: 6rem; }
    .ray-err__phone span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ray-err__track path { animation: none; stroke-dashoffset: 0; } }

/* ---------- Отзывы о товаре (moduleview/comments/blocks/comments/list.tpl) ---------- */
.ray-review-src {
    display: inline-flex; align-items: center; margin-left: .6rem; padding: .1rem .5rem; border-radius: 999px;
    font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: #005bff; background: rgba(0, 91, 255, .08);
}
.ray-review-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.ray-review-photos a { display: block; width: 5rem; height: 5rem; border-radius: var(--ray-radius); overflow: hidden; background: var(--ray-panel); cursor: zoom-in; }
.ray-review-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ray-ease); }
.ray-review-photos a:hover img { transform: scale(1.06); }
.ray-review-photo-hint { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .9rem; border-radius: var(--ray-radius); background: var(--ray-panel); font-size: .9rem; color: var(--ray-text-2); }
.ray-review-photo-hint a { color: var(--ray-text); font-weight: 600; text-decoration-color: var(--ray-red); text-underline-offset: .2em; }
.ray-review-photo-hint__ico { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .05rem; background-color: var(--ray-red);
    -webkit-mask: var(--ray-ico) center / contain no-repeat; mask: var(--ray-ico) center / contain no-repeat; }
/* поле загрузки фото в форме отзыва (dropzone модуля photo): по нажатию открывается выбор файла — говорим об этом */
.rs-comments .rs-dropzone { min-height: 0; padding: 1rem; border: 1.5px dashed var(--ray-line); border-radius: var(--ray-radius); background: var(--ray-panel); transition: border-color .2s var(--ray-ease); }
.rs-comments .rs-dropzone:hover, .rs-comments .rs-dropzone.dz-drag-hover { border-color: var(--ray-red); }
.rs-comments .rs-dropzone .dz-message { margin: 0; }
.rs-comments .rs-dropzone .dz-button { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; font-size: 0; color: var(--ray-text-2); }
.rs-comments .rs-dropzone .dz-button::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; background-color: var(--ray-red);
    -webkit-mask: url("../img/ray/icons/camera.svg") center / contain no-repeat; mask: url("../img/ray/icons/camera.svg") center / contain no-repeat; }
.rs-comments .rs-dropzone .dz-button::after { content: "Добавить фото — нажмите или перетащите сюда (JPG, PNG, до 10 МБ)"; font-size: .9rem; }

/* ---------- Рейтинг в карточке товара — в строке цены справа (one_product.tpl), высоту карточки не меняет ---------- */
.item-product-price_card { position: relative; }
.ray-card-rating {
    position: absolute; right: 0; bottom: .1rem; display: inline-flex; align-items: center; gap: .25rem;
    font-size: .85rem; color: var(--ray-muted); text-decoration: none; white-space: nowrap;
}
.ray-card-rating b { color: var(--ray-text); font-weight: 700; }
.ray-card-rating:hover b { color: var(--ray-red); }
