

/* Start:/bitrix/templates/aspro_max/components/bitrix/news.detail/blog-magazine/style.css?17911985729070*/
/* Журнальный шаблон статьи блога catalogi.ru.
   Всё внутри .cjm — другие страницы и статьи шаблон не задевает. */

.cjm {
    --cjm-ink: #111418;
    --cjm-body: #333b45;
    --cjm-muted: #7b848e;
    --cjm-line: #e6e9ec;
    --cjm-accent: #c8342c;
    max-width: 1274px;
    margin: 0 auto;
    padding: 8px 0 56px;
    color: var(--cjm-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ---------- шапка ---------- */
.cjm-head { margin-bottom: 26px; }
.cjm-kicker {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
    color: var(--cjm-muted); margin-bottom: 14px;
}
.cjm-section {
    color: var(--cjm-accent); font-weight: 700; text-decoration: none;
    border-bottom: 1px solid transparent;
}
.cjm-section:hover { border-bottom-color: var(--cjm-accent); }
.cjm-dot { color: #c9ced4; }
.cjm-title {
    margin: 0 0 18px; font-size: 42px; line-height: 1.12;
    letter-spacing: -.02em; font-weight: 800; color: var(--cjm-ink);
}
.cjm-standfirst {
    margin: 0 0 22px; font-size: 20px; line-height: 1.5; color: #4a545f;
    padding-left: 18px; border-left: 3px solid var(--cjm-accent);
}
.cjm-byline {
    display: flex; align-items: center; gap: 10px; padding-top: 18px;
    border-top: 1px solid var(--cjm-line); font-size: 14px; color: var(--cjm-muted);
}
.cjm-byline-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.cjm-byline-text b { color: var(--cjm-ink); }

/* ---------- обложка ---------- */
.cjm-hero { margin: 0 0 32px; }
.cjm-hero img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* ---------- проза ---------- */
.cjm-body { font-size: 17px; }
.cjm-body > *:first-child { margin-top: 0; }
.cjm-body p { margin: 0 0 20px; }
.cjm-body h2 {
    margin: 44px 0 16px; font-size: 28px; line-height: 1.25;
    letter-spacing: -.01em; font-weight: 800; color: var(--cjm-ink);
}
.cjm-body h3 {
    margin: 28px 0 12px; font-size: 12.5px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--cjm-muted); font-weight: 700;
}
.cjm-body img { max-width: 100%; height: auto; display: block; margin: 24px 0; border-radius: 6px; }
.cjm-body a { color: var(--cjm-accent); }
.cjm-body ul, .cjm-body ol { margin: 0 0 20px; padding-left: 22px; }
.cjm-body li { margin-bottom: 8px; }

/* ---------- сетка карточек ---------- */
.cjm-picks { margin: 26px 0 12px; }
.cjm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 22px;
}
.cjm-broken { color: var(--cjm-accent); font-size: 14px; }

.cjm-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--cjm-line); border-radius: 8px;
    overflow: hidden; background: #fff;
}
.cjm-card--broken { padding: 14px; font-size: 13px; color: var(--cjm-accent); }

/* фиксированная пропорция кадра — карточки в ряду выравниваются */
.cjm-card-gallery {
    position: relative; display: block; background: #f5f6f7;
    aspect-ratio: 3 / 4; overflow: hidden;
}
.cjm-card-gallery .cjm-shot {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity .25s ease;
}
.cjm-card-gallery .cjm-shot.is-main { opacity: 1; }

/* подмена кадра — только там, где есть настоящий курсор */
@media (hover: hover) and (pointer: fine) {
    .cjm-card { transition: box-shadow .18s ease, transform .18s ease; }
    .cjm-card:hover { box-shadow: 0 10px 28px rgba(17, 20, 24, .10); transform: translateY(-2px); }
    .cjm-card-gallery:hover .cjm-shot.is-main { opacity: 0; }
    .cjm-card-gallery:hover .cjm-shot:nth-child(2) { opacity: 1; }
}

.cjm-card-body { display: flex; flex-direction: column; flex: 1; padding: 13px 14px 15px; }
.cjm-card-store {
    font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    font-weight: 700; color: var(--cjm-muted); margin-bottom: 7px;
}
.cjm-card-name {
    margin: 0 0 8px !important; font-size: 15px !important; line-height: 1.32 !important;
    letter-spacing: 0 !important; text-transform: none !important;
    font-weight: 500 !important; color: var(--cjm-ink) !important;
}
.cjm-card-name a { color: var(--cjm-ink) !important; text-decoration: none; }
.cjm-card-name a:hover { color: var(--cjm-accent) !important; }
.cjm-card-name b { font-weight: 800; }

.cjm-card-desc {
    margin: 0 0 9px !important; font-size: 13px !important; line-height: 1.45 !important;
    color: var(--cjm-muted) !important;
}
.cjm-card-sizes { font-size: 11.5px; color: var(--cjm-muted); margin-bottom: 11px; }

.cjm-card-price { margin-top: auto; margin-bottom: 11px; }
.cjm-rub {
    display: block; font-size: 22px; font-weight: 800; line-height: 1.15;
    letter-spacing: -.01em; color: var(--cjm-ink);
}
.cjm-eur { display: block; font-size: 12.5px; color: var(--cjm-muted); margin-top: 2px; }
.cjm-fee { display: block; font-size: 12px; color: var(--cjm-muted); margin-top: 3px; line-height: 1.35; }

.cjm-buy {
    display: block; text-align: center;
    background: var(--cjm-accent); color: #fff !important;
    font-weight: 700; font-size: 13.5px; padding: 11px 14px;
    border-radius: 5px; text-decoration: none;
}
.cjm-buy:hover { background: #a92a23; }
.cjm-shop {
    display: block; text-align: center; margin-top: 8px;
    font-size: 12px; color: var(--cjm-muted) !important; text-decoration: underline;
}

/* ---------- автор и дисклеймер ---------- */
.cjm-author {
    display: flex; gap: 18px; margin: 40px 0 0; padding: 22px;
    border: 1px solid var(--cjm-line); border-radius: 8px; background: #fafbfc;
}
.cjm-author-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: 0 0 88px; }
.cjm-author-label {
    font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--cjm-muted); font-weight: 700; margin-bottom: 5px;
}
.cjm-author-name { font-size: 19px; font-weight: 800; color: var(--cjm-ink); margin-bottom: 6px; }
.cjm-author-short { font-size: 14px; color: #4a545f; margin-bottom: 8px; }
.cjm-author-full { margin: 0; font-size: 14px; line-height: 1.55; color: var(--cjm-muted); }

.cjm-disclaimer {
    margin: 22px 0 0; padding: 14px 16px;
    background: #f5f6f7; border-radius: 6px;
    font-size: 12.5px; line-height: 1.55; color: #5b646e;
}
.cjm-disclaimer b { color: var(--cjm-ink); }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
    .cjm-title { font-size: 34px; }
    .cjm-standfirst { font-size: 18px; }
}
@media (max-width: 640px) {
    .cjm { font-size: 16px; padding-bottom: 32px; }
    .cjm-title { font-size: 27px; line-height: 1.18; }
    .cjm-standfirst { font-size: 17px; padding-left: 14px; }
    .cjm-body h2 { font-size: 22px; margin-top: 34px; }
    .cjm-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cjm-card-body { padding: 10px 11px 12px; }
    .cjm-card-name { font-size: 13.5px !important; }
    .cjm-card-desc { display: none !important; }
    .cjm-rub { font-size: 18px; }
    .cjm-buy { font-size: 12.5px; padding: 10px 8px; }
    .cjm-author { flex-direction: column; gap: 14px; }
    .cjm-author-photo { width: 72px; height: 72px; flex-basis: 72px; }
}
/* на узком экране две колонки слишком тесные — одна широкая карточка */
@media (max-width: 430px) {
    .cjm-grid { grid-template-columns: 1fr; gap: 14px; }
    .cjm-card { flex-direction: row; }
    .cjm-card-gallery { flex: 0 0 42%; aspect-ratio: 3 / 4; }
    .cjm-card-body { padding: 12px 13px; }
    .cjm-card-desc { display: block !important; }
    .cjm-card-name { font-size: 14px !important; }
}


/* ---------- журнальная кладка: кадры на разных уровнях ---------- */
.cjm-grid {
    display: block;
    column-count: 3;
    column-gap: 26px;
}
.cjm-card {
    break-inside: avoid;
    margin: 0 0 30px;
}
.cjm-card:nth-child(3n + 1) .cjm-card-gallery { aspect-ratio: 3 / 4; }
.cjm-card:nth-child(3n + 2) .cjm-card-gallery { aspect-ratio: 4 / 5; }
.cjm-card:nth-child(3n) .cjm-card-gallery { aspect-ratio: 1 / 1; }
@media (max-width: 900px) { .cjm-grid { column-count: 2; } }
@media (max-width: 560px) { .cjm-grid { column-count: 1; } }

/* кнопка заказа внутри формы */
.cjm-buy-form { margin: 0; }
.cjm-buy-form .cjm-buy { width: 100%; cursor: pointer; border: 0; font: inherit; }

/* ссылка «перейти к списку магазинов» как кнопка */
.cjm-body a.cjm-button,
.cjm-body p > a[href*="magazin"] {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid #14171a;
    border-radius: 5px;
    color: #14171a !important;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
}
.cjm-body a.cjm-button:hover { background: #14171a; color: #fff !important; }

/* End */
/* /bitrix/templates/aspro_max/components/bitrix/news.detail/blog-magazine/style.css?17911985729070 */
