/* ═════════════════════════════════════════════════════════════════
   REDLINE — контентные страницы: блог (rl-bl-), решения (rl-ln-),
   контакты (rl-ct-), политика (rl-pv-). Токены и базовые классы —
   в redline.css, здесь только то, чего там нет.
   ═════════════════════════════════════════════════════════════════ */

/* ── Hero внутренних страниц (общий для блога, решений, контактов, политики) ── */
.rl-bl-hero__body { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 88px; }
.rl-bl-hero .rl-eyebrow { margin-bottom: 32px; }
.rl-bl-hero__title {
    font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase;
    color: var(--rl-red);
    font-size: clamp(32px, 7vw, 112px); line-height: .98; letter-spacing: -.02em;
    margin: 0 0 40px; max-width: 1200px;
}
.rl-bl-hero__title .rl-tilt { display: inline-block; }
.rl-bl-hero__lead { color: rgba(242, 240, 232, .8); font-size: 17px; line-height: 1.65; max-width: 620px; }
@media (max-width: 640px) {
    .rl-bl-hero__body { padding-top: 48px; padding-bottom: 64px; }
    .rl-bl-hero__title { font-size: clamp(26px, 8vw, 40px); margin-bottom: 32px; }
    .rl-bl-hero__lead { font-size: 15px; }
}

/* Заголовок статьи — длинный, без наклона, ниже размером */
.rl-bl-hero__title--article {
    color: var(--rl-white); font-size: clamp(28px, 4.6vw, 64px); line-height: 1.05;
    max-width: 1100px; margin-bottom: 32px;
    border-left: 6px solid var(--rl-red); padding-left: 24px;
    overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual;
}
@media (max-width: 640px) { .rl-bl-hero__title--article { font-size: clamp(22px, 7vw, 32px); padding-left: 14px; border-left-width: 4px; } }

.rl-bl-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; font-family: var(--rl-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: rgba(242, 240, 232, .55); }
.rl-bl-crumbs a { color: var(--rl-amber); }
.rl-bl-crumbs a:hover { color: var(--rl-white); }

.rl-bl-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--rl-mono); font-size: 13px; color: rgba(242, 240, 232, .75); }
.rl-bl-meta span { display: inline-flex; align-items: center; gap: 8px; }
.rl-bl-meta i { color: var(--rl-red); font-size: 18px; }

/* ── Блог: список ───────────────────────────────────────────────── */
.rl-bl-grid > * { min-width: 0; }
.rl-bl-card__img { position: relative; }
.rl-bl-card__badge { position: absolute; top: 14px; left: 14px; background: var(--rl-amber); color: var(--rl-black); font-family: var(--rl-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .2em; padding: 3px 8px; }
.rl-bl-card__body { display: flex; flex-direction: column; flex: 1; }
.rl-bl-card__body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rl-bl-card__more { margin-top: auto; padding-top: 18px; font-family: var(--rl-druk); font-size: 13px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.rl-bl-card:hover .rl-bl-card__more { color: var(--rl-red); }
.rl-bl-empty { grid-column: 1 / -1; text-align: center; padding: 56px 0; border: 2px dashed var(--rl-hair-dark); }
.rl-bl-empty i { font-size: 56px; color: var(--rl-red); }
.rl-bl-empty p { margin-top: 10px; font-size: 18px; }
.rl-bl-empty .rl-label { font-size: 11px; color: rgba(12, 12, 10, .55); }

.rl-bl-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rl-hair-dark); }
.rl-bl-pager__cur { padding: 8px 18px; background: var(--rl-red); color: var(--rl-white); font-family: var(--rl-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; box-shadow: 4px 4px 0 var(--rl-black); }

/* ── Блог: статья ───────────────────────────────────────────────── */
.rl-bl-article { padding: 72px 0 112px; }
.rl-bl-article__inner { max-width: 860px; margin: 0 auto; }
.rl-bl-cover { margin: 0 0 56px; border: 2px solid var(--rl-black); box-shadow: 6px 6px 0 var(--rl-red); }
.rl-bl-cover img { display: block; width: 100%; height: auto; }
@media (max-width: 768px) { .rl-bl-article { padding: 48px 0 80px; } .rl-bl-cover { margin-bottom: 40px; box-shadow: 4px 4px 0 var(--rl-red); } }

/* Тело статьи — HTML из CKEditor */
.rl-bl-body { max-width: 70ch; margin: 0 auto; font-family: var(--rl-body); font-size: 17px; line-height: 1.75; color: rgba(12, 12, 10, .88); overflow-wrap: break-word; }
.rl-bl-body > *:first-child { margin-top: 0; }
.rl-bl-body p { margin: 1.1em 0; }
.rl-bl-body .lead { font-size: 1.2em; color: var(--rl-black); }
.rl-bl-body strong, .rl-bl-body b { font-weight: 700; color: var(--rl-black); }
.rl-bl-body h2 {
    font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase;
    font-size: clamp(22px, 3vw, 32px); line-height: 1.12; letter-spacing: -.01em; color: var(--rl-black);
    margin: 2.2em 0 .7em; padding-top: .8em; border-top: 2px solid var(--rl-black);
    position: relative;
}
.rl-bl-body h2::before { content: ''; position: absolute; left: 0; top: -2px; width: 64px; height: 2px; background: var(--rl-red); }
.rl-bl-body h3 { font-family: var(--rl-body); font-weight: 700; font-size: 1.2em; line-height: 1.3; color: var(--rl-black); margin: 1.8em 0 .5em; }
.rl-bl-body h4 { font-family: var(--rl-mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .15em; color: var(--rl-red); margin: 1.6em 0 .5em; }
.rl-bl-body a { color: var(--rl-red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rl-bl-body a:hover { background: var(--rl-amber); color: var(--rl-black); text-decoration: none; }
.rl-bl-body ul, .rl-bl-body ol { margin: 1.1em 0; padding-left: 0; list-style: none; }
.rl-bl-body li { position: relative; padding-left: 1.8em; margin: .55em 0; }
.rl-bl-body ul > li::before { content: '■'; position: absolute; left: .2em; top: 0; color: var(--rl-red); font-size: .7em; line-height: 2.5; }
.rl-bl-body ol { counter-reset: rl-bl-ol; }
.rl-bl-body ol > li { counter-increment: rl-bl-ol; }
.rl-bl-body ol > li::before { content: counter(rl-bl-ol, decimal-leading-zero); position: absolute; left: 0; top: .2em; font-family: var(--rl-mono); font-size: .75em; font-weight: 700; color: var(--rl-red); }
.rl-bl-body li > ul, .rl-bl-body li > ol { margin: .4em 0; }
.rl-bl-body blockquote { margin: 1.6em 0; padding: 20px 24px; border-left: 6px solid var(--rl-red); background: rgba(12, 12, 10, .04); font-size: 1.05em; color: var(--rl-black); }
.rl-bl-body blockquote p { margin: .5em 0; }
.rl-bl-body img { display: block; max-width: 100%; height: auto; border: 2px solid var(--rl-black); }
.rl-bl-body figure { margin: 2.2em 0; }
.rl-bl-body figure img { width: 100%; box-shadow: 6px 6px 0 var(--rl-black); }
.rl-bl-body figcaption { margin-top: 14px; font-family: var(--rl-mono); font-size: 12px; line-height: 1.5; color: rgba(12, 12, 10, .6); }
.rl-bl-body hr { border: 0; border-top: 1px solid var(--rl-hair-dark); margin: 2.4em 0; }
.rl-bl-body code { font-family: var(--rl-mono); font-size: .88em; background: rgba(12, 12, 10, .07); padding: 1px 5px; }
.rl-bl-body pre { font-family: var(--rl-mono); font-size: 14px; background: var(--rl-black); color: var(--rl-white); padding: 18px 20px; overflow-x: auto; margin: 1.6em 0; }
.rl-bl-body pre code { background: none; padding: 0; }
/* Таблицы — с горизонтальной прокруткой на узком экране */
.rl-bl-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; line-height: 1.5; border: 2px solid var(--rl-black); }
.rl-bl-body th, .rl-bl-body td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rl-hair-dark); border-right: 1px solid var(--rl-hair-dark); min-width: 120px; }
.rl-bl-body th, .rl-bl-body thead td { background: var(--rl-black); color: var(--rl-white); font-family: var(--rl-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.rl-bl-body tr:nth-child(even) td { background: rgba(12, 12, 10, .03); }
@media (max-width: 640px) { .rl-bl-body { font-size: 16px; } }

/* Автор */
.rl-bl-author { display: flex; gap: 20px; align-items: flex-start; max-width: 70ch; margin: 64px auto 0; padding: 24px; border: 2px solid var(--rl-black); background: var(--rl-white); box-shadow: 6px 6px 0 var(--rl-black); }
.rl-bl-author__avatar { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; background: var(--rl-red); color: var(--rl-white); font-family: var(--rl-druk); font-size: 20px; transform: rotate(-5deg); }
.rl-bl-author__name { font-family: var(--rl-druk); font-size: 18px; text-transform: uppercase; }
.rl-bl-author__role { font-family: var(--rl-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--rl-red); margin-top: 4px; }
.rl-bl-author__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: rgba(12, 12, 10, .75); }
@media (max-width: 520px) { .rl-bl-author { flex-direction: column; padding: 20px 18px; } }

/* Кейсы по теме */
.rl-bl-cases { margin-top: 72px; }
.rl-bl-cases__title { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 3.4vw, 40px); line-height: 1; margin-bottom: 32px; }
.rl-bl-cases__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .rl-bl-cases__grid { grid-template-columns: 1fr; } }
.rl-bl-case { display: flex; flex-direction: column; border: 2px solid var(--rl-black); background: var(--rl-white); box-shadow: 6px 6px 0 var(--rl-black); transition: transform .15s, box-shadow .15s; }
.rl-bl-case:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--rl-red); }
.rl-bl-case__img { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--rl-black); }
.rl-bl-case__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); transition: filter .3s; }
.rl-bl-case:hover .rl-bl-case__img img { filter: none; }
.rl-bl-case__body { padding: 18px 20px 22px; }
.rl-bl-case__body .rl-label { font-size: 10px; letter-spacing: .2em; }
.rl-bl-case h3 { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: 18px; line-height: 1.15; margin-top: 8px; }
.rl-bl-case p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: rgba(12, 12, 10, .7); }

.rl-bl-back { max-width: 70ch; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--rl-hair-dark); }

/* ── Решения: каталог и лендинг ────────────────────────────────── */
.rl-ln-hero__title .rl-tilt { display: block; width: max-content; max-width: 100%; }
@media (max-width: 640px) { .rl-ln-hero__title .rl-tilt { width: auto; } }

.rl-ln-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; z-index: 1; }
@media (max-width: 1000px) { .rl-ln-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rl-ln-grid { grid-template-columns: 1fr; gap: 22px; } }

.rl-ln-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 2px solid var(--rl-black); background: var(--rl-white); box-shadow: 6px 6px 0 var(--rl-black); transition: transform .15s, box-shadow .15s; }
.rl-ln-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--rl-red); }
.rl-ln-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rl-ln-card__top .rl-label { font-size: 11px; letter-spacing: .2em; }
.rl-ln-card__badge { font-family: var(--rl-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; padding: 4px 8px; background: var(--rl-amber); color: var(--rl-black); text-align: right; }
.rl-ln-card__title { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1.1; }
.rl-ln-card__text { flex: 1; line-height: 1.6; font-size: 14px; color: rgba(12, 12, 10, .72); }
.rl-ln-card__more { font-family: var(--rl-druk); font-size: 14px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rl-hair-dark); }
.rl-ln-card:hover .rl-ln-card__more { color: var(--rl-red); }
@media (max-width: 640px) { .rl-ln-card { padding: 22px 18px; } .rl-ln-card__title { font-size: 20px; } }

.rl-ln-head { max-width: 900px; margin-bottom: 64px; position: relative; z-index: 1; }
.rl-ln-head .rl-label { margin-bottom: 14px; }
.rl-ln-h2 { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 4.6vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 0 0 28px; overflow-wrap: break-word; }
.rl-ln-lead { font-size: 17px; line-height: 1.7; color: rgba(12, 12, 10, .78); max-width: 760px; }
@media (max-width: 640px) { .rl-ln-head { margin-bottom: 44px; } .rl-ln-h2 { font-size: clamp(22px, 7.4vw, 30px); } .rl-ln-lead { font-size: 15px; } }

.rl-ln-problem { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border: 2px solid var(--rl-black); background: var(--rl-white); box-shadow: 6px 6px 0 var(--rl-red); }
.rl-ln-problem__top { display: flex; justify-content: space-between; align-items: center; }
.rl-ln-problem__top i { font-size: 40px; color: var(--rl-red); line-height: 1; }
.rl-ln-problem__top .rl-label { font-size: 10px; letter-spacing: .2em; color: rgba(12, 12, 10, .5); }
.rl-ln-problem__title { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: 21px; line-height: 1.12; }
.rl-ln-problem__text { flex: 1; font-size: 14px; line-height: 1.6; color: rgba(12, 12, 10, .72); }
.rl-ln-problem__stat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--rl-hair-dark); }
.rl-ln-problem__stat b { font-family: var(--rl-mono); font-weight: 700; font-size: 26px; color: var(--rl-red); white-space: nowrap; }
.rl-ln-problem__stat span { font-size: 12px; line-height: 1.35; color: rgba(12, 12, 10, .6); }

.rl-ln-feature { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border: 1px solid rgba(242, 240, 232, .2); background: rgba(12, 12, 10, .6); transition: border-color .2s, transform .2s, box-shadow .2s; }
.rl-ln-feature:hover { border-color: var(--rl-amber); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--rl-amber); }
.rl-ln-feature__top { display: flex; justify-content: space-between; align-items: center; }
.rl-ln-feature__top i { font-size: 34px; color: var(--rl-red); line-height: 1; }
.rl-ln-feature__num { font-family: var(--rl-mono); font-size: 13px; color: var(--rl-amber); letter-spacing: .1em; }
.rl-ln-feature__title { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: 19px; line-height: 1.15; }
.rl-ln-feature__text { font-size: 14px; line-height: 1.6; color: rgba(242, 240, 232, .72); }
.rl-ln-feature--red { background: var(--rl-red); border-color: var(--rl-red); }
.rl-ln-feature--red .rl-ln-feature__top i { color: var(--rl-white); }
.rl-ln-feature--red .rl-ln-feature__num { color: var(--rl-black); }
.rl-ln-feature--red .rl-ln-feature__text { color: rgba(242, 240, 232, .92); }

.rl-ln-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .rl-ln-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.rl-ln-result { padding: 28px 22px; border: 2px solid var(--rl-black); background: var(--rl-white); box-shadow: 6px 6px 0 var(--rl-black); }
.rl-ln-result b { display: block; font-family: var(--rl-mono); font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1; color: var(--rl-red); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rl-ln-result span { display: block; margin-top: 12px; font-family: var(--rl-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; line-height: 1.4; color: rgba(12, 12, 10, .65); }
.rl-ln-result--red { background: var(--rl-red); border-color: var(--rl-black); }
.rl-ln-result--red b, .rl-ln-result--red span { color: var(--rl-white); }
@media (max-width: 480px) { .rl-ln-result { padding: 20px 14px; box-shadow: 4px 4px 0 var(--rl-black); } .rl-ln-result span { letter-spacing: .05em; } }

/* ── Контакты ───────────────────────────────────────────────────── */
.rl-ct-title .rl-tilt { display: block; width: max-content; max-width: 100%; }
@media (max-width: 640px) { .rl-ct-title .rl-tilt { width: auto; } }
.rl-ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .rl-ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rl-ct-grid { grid-template-columns: 1fr; } }
.rl-ct-item { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; border: 2px solid var(--rl-black); background: var(--rl-white); box-shadow: 6px 6px 0 var(--rl-black); }
.rl-ct-item i { font-size: 40px; color: var(--rl-red); line-height: 1; margin-bottom: 10px; }
.rl-ct-item__label { font-family: var(--rl-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: rgba(12, 12, 10, .55); }
.rl-ct-item__value { font-family: var(--rl-mono); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
a.rl-ct-item__value:hover { color: var(--rl-red); }
.rl-ct-item--red { background: var(--rl-red); color: var(--rl-white); }
.rl-ct-item--red i { color: var(--rl-white); }
.rl-ct-item--red .rl-ct-item__label { color: rgba(242, 240, 232, .8); }

/* ── Политика конфиденциальности ────────────────────────────────── */
.rl-pv-title { font-size: clamp(28px, 5.4vw, 80px); color: var(--rl-white); margin-bottom: 28px; border-left: 6px solid var(--rl-red); padding-left: 24px; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 640px) { .rl-pv-title { font-size: clamp(22px, 7vw, 32px); padding-left: 14px; border-left-width: 4px; } }
.rl-pv-date { font-family: var(--rl-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .15em; color: var(--rl-amber); }
.rl-pv-section { padding: 72px 0 112px; }
@media (max-width: 768px) { .rl-pv-section { padding: 48px 0 80px; } }
.rl-pv-doc { max-width: 72ch; margin: 0 auto; font-size: 16px; line-height: 1.75; color: rgba(12, 12, 10, .85); overflow-wrap: break-word; }
.rl-pv-doc h2 { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.2; color: var(--rl-black); margin: 2.4em 0 .7em; padding-top: .8em; border-top: 2px solid var(--rl-black); position: relative; }
.rl-pv-doc h2::before { content: ''; position: absolute; left: 0; top: -2px; width: 48px; height: 2px; background: var(--rl-red); }
.rl-pv-doc h2:first-child { margin-top: 0; }
.rl-pv-doc p { margin: .9em 0; }
.rl-pv-doc ul { list-style: none; padding: 0; margin: .9em 0 1.2em; }
.rl-pv-doc li { position: relative; padding-left: 1.6em; margin: .45em 0; }
.rl-pv-doc li::before { content: '■'; position: absolute; left: .15em; color: var(--rl-red); font-size: .65em; line-height: 2.7; }
.rl-pv-doc strong { color: var(--rl-black); font-weight: 700; }
.rl-pv-doc a { color: var(--rl-red); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rl-pv-doc a:hover { background: var(--rl-amber); color: var(--rl-black); }
