/* ═════════════════════════════════════════════════════════════════
   REDLINE — общие блоки страниц услуг:
   rl-sh-  hero услуги (templates/redline/includes/service-hero.html)
   rl-st-  типы проектов (templates/redline/includes/service-types.html)
   Токены и базовые классы — static/css/redline.css.
   ═════════════════════════════════════════════════════════════════ */

/* ── HERO услуги ────────────────────────────────────────────────── */
.rl-sh__body { padding-top: 48px; padding-bottom: 64px; }
.rl-sh .rl-eyebrow { margin-bottom: 28px; }
.rl-sh__title {
    font-size: clamp(26px, 5.2vw, 84px);
    line-height: 1; margin-bottom: clamp(48px, 7vw, 110px);
    overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual;
}
.rl-sh__title .rl-tilt { display: block; width: auto; max-width: 16ch; }
@media (max-width: 640px) {
    .rl-sh__body { padding-top: 36px; padding-bottom: 48px; }
    .rl-sh__title { font-size: min(7.4vw, 34px); margin-bottom: 40px; }
    .rl-sh__title .rl-tilt { max-width: 100%; }
}

.rl-sh__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.rl-sh__row > * { min-width: 0; }
@media (max-width: 1000px) { .rl-sh__row { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.rl-sh__sub { color: rgba(242, 240, 232, .8); line-height: 1.65; font-size: 16px; max-width: 580px; margin-bottom: 28px; }

/* Цифры под кнопками: стоимость, срок, география, ответ */
.rl-sh-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
.rl-sh-meta__item { border: 1px solid rgba(242, 240, 232, .2); padding: 12px; min-width: 0; }
.rl-sh-meta__item span { display: block; font-family: var(--rl-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; color: rgba(242, 240, 232, .55); margin-bottom: 6px; }
.rl-sh-meta__item b { display: block; font-family: var(--rl-mono); font-weight: 500; font-size: 14px; line-height: 1.3; }
.rl-sh-meta__item--red { background: var(--rl-red); border-color: var(--rl-red); }
.rl-sh-meta__item--red span { color: var(--rl-white); }
@media (max-width: 760px) { .rl-sh-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rl-sh-scroll { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--rl-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: rgba(242, 240, 232, .6); transition: color .15s; }
.rl-sh-scroll i { font-size: 18px; color: var(--rl-red); animation: rl-sh-bob 1.6s ease-in-out infinite; }
.rl-sh-scroll:hover { color: var(--rl-amber); }
@keyframes rl-sh-bob { 50% { transform: translateY(4px); } }

/* Правая колонка: «терминал» с кодом варианта */
.rl-sh__visual { position: relative; }
.rl-sh-term { position: relative; border: 2px solid var(--rl-amber); background: rgba(12, 12, 10, .75); backdrop-filter: blur(4px); padding: 26px 0 18px; box-shadow: 6px 6px 0 var(--rl-red); }
.rl-sh-term__tag, .rl-sh-mini__tag { position: absolute; top: -11px; left: 16px; background: var(--rl-amber); color: var(--rl-black); font-family: var(--rl-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; padding: 2px 8px; }
.rl-sh-term__live { position: absolute; top: 6px; right: 12px; font-family: var(--rl-mono); font-size: 10px; letter-spacing: .2em; color: var(--rl-red); animation: rl-sh-blink 1.2s steps(2) infinite; }
@keyframes rl-sh-blink { 50% { opacity: .25; } }
.rl-sh-term__body { counter-reset: rl-sh-ln; overflow-x: auto; scrollbar-width: none; padding: 0 18px; }
.rl-sh-term__body::-webkit-scrollbar { display: none; }
.rl-sh-line { font-family: var(--rl-mono); font-size: 13px; line-height: 1.75; white-space: nowrap; color: rgba(242, 240, 232, .85); opacity: 0; animation: rl-sh-type .35s ease forwards; }
.rl-sh-term__body .rl-sh-line { counter-increment: rl-sh-ln; }
.rl-sh-term__body .rl-sh-line::before { content: counter(rl-sh-ln, decimal-leading-zero); display: inline-block; width: 30px; color: rgba(242, 240, 232, .3); font-size: 11px; }
.rl-sh-line:last-child::after { content: ''; display: inline-block; width: 8px; height: 15px; margin-left: 4px; vertical-align: -2px; background: var(--rl-amber); animation: rl-sh-blink 1s steps(2) infinite; }
.rl-sh-line:nth-child(2) { animation-delay: .15s; } .rl-sh-line:nth-child(3) { animation-delay: .3s; }
.rl-sh-line:nth-child(4) { animation-delay: .45s; } .rl-sh-line:nth-child(5) { animation-delay: .6s; }
.rl-sh-line:nth-child(6) { animation-delay: .75s; } .rl-sh-line:nth-child(7) { animation-delay: .9s; }
.rl-sh-line:nth-child(8) { animation-delay: 1.05s; } .rl-sh-line:nth-child(9) { animation-delay: 1.2s; }
.rl-sh-line:nth-child(10) { animation-delay: 1.35s; } .rl-sh-line:nth-child(n+11) { animation-delay: 1.5s; }
@keyframes rl-sh-type { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.rl-sh-kw { color: var(--rl-red); font-weight: 600; }
.rl-sh-fn { color: var(--rl-amber); }
.rl-sh-str { color: rgba(242, 240, 232, .6); }
.rl-sh-var { color: var(--rl-white); }
.rl-sh-op { color: rgba(242, 240, 232, .45); }
.rl-sh-num { color: var(--rl-amber); font-weight: 600; }
.rl-sh-term--phone { max-width: 420px; margin-left: auto; }
.rl-sh-term--phone .rl-sh-line { font-size: 12px; line-height: 1.6; }
.rl-sh-pills { margin-top: 20px; color: var(--rl-white); }
@media (max-width: 1000px) { .rl-sh-term--phone { margin-left: 0; } }
@media (max-width: 640px) { .rl-sh-line { font-size: 12px; } }

/* Вариант services: четыре мини-окна */
.rl-sh-multi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.rl-sh-mini { position: relative; border: 1px solid rgba(242, 240, 232, .25); background: rgba(12, 12, 10, .7); padding: 22px 14px 0; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rl-sh-mini:hover { transform: translate(-3px, -3px); border-color: var(--rl-amber); box-shadow: 6px 6px 0 var(--rl-amber); }
.rl-sh-mini__body { overflow: hidden; padding-bottom: 12px; flex: 1; }
.rl-sh-mini__body .rl-sh-line { font-size: 11px; line-height: 1.7; }
.rl-sh-mini__label { margin: 0 -14px; padding: 8px 14px; border-top: 1px solid rgba(242, 240, 232, .2); font-family: var(--rl-druk); font-size: 13px; text-transform: uppercase; line-height: 1.2; }
.rl-sh-mini--red { border-color: var(--rl-red); }
.rl-sh-mini--red .rl-sh-mini__label { background: var(--rl-red); border-top-color: var(--rl-red); }
@media (max-width: 420px) { .rl-sh-multi { grid-template-columns: minmax(0, 1fr); } }

.rl-sh-ticker .rl-ticker__track { animation-duration: 28s; }

@media (prefers-reduced-motion: reduce) {
    .rl-sh-line { opacity: 1; animation: none; }
    .rl-sh-line::after, .rl-sh-term__live, .rl-sh-scroll i { animation: none !important; }
}

/* ── Типы проектов (вкладки) ────────────────────────────────────── */
.rl-st-h2 { font-size: clamp(22px, 5vw, 72px); overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; max-width: 100%; }
@media (max-width: 640px) { .rl-st-h2 { font-size: min(6.4vw, 30px); } }
.rl-st .rl-head > div { min-width: 0; }

.rl-st-sit { grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); }
.rl-st-sit > * { min-width: 0; }
@media (max-width: 900px) { .rl-st-sit { grid-template-columns: minmax(0, 1fr); } }
.rl-st-tab { align-items: flex-start; }
.rl-st-tab b { padding-top: 2px; }
.rl-st-tab__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rl-st-tab__sub { font-family: var(--rl-body); font-size: 12px; text-transform: none; line-height: 1.35; color: rgba(12, 12, 10, .6); }
.rl-st-tab.is-active .rl-st-tab__sub { color: rgba(242, 240, 232, .85); }

.rl-st-panel__num { font-size: 11px; letter-spacing: .25em; margin-bottom: 14px; }
.rl-st-panel h3 { margin-bottom: 16px; overflow-wrap: break-word; hyphens: manual; -webkit-hyphens: manual; }
.rl-st-panel__desc { color: rgba(242, 240, 232, .8); line-height: 1.65; font-size: 16px; max-width: 760px; margin-bottom: 28px; }
.rl-st-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin-bottom: 32px; }
@media (max-width: 640px) { .rl-st-feats { grid-template-columns: minmax(0, 1fr); } }

.rl-st-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; border-top: 1px solid var(--rl-hair-light); }
.rl-st-price span { display: block; font-family: var(--rl-mono); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: rgba(242, 240, 232, .5); margin-bottom: 4px; }
.rl-st-price b { font-family: var(--rl-mono); font-weight: 500; font-size: 20px; color: var(--rl-amber); }
.rl-st-foot .rl-btn { margin-left: auto; }
@media (max-width: 520px) { .rl-st-foot .rl-btn { width: 100%; margin-left: 0; text-align: center; } }

/* Карточки внутри панели (вариант complex) */
.rl-st-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.rl-st-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rl-st-card { border: 1px solid rgba(242, 240, 232, .2); padding: 18px; min-width: 0; transition: border-color .15s, transform .15s, box-shadow .15s; }
.rl-st-card:hover { border-color: var(--rl-amber); transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--rl-amber); }
.rl-st-card i { font-size: 30px; color: var(--rl-red); line-height: 1; }
.rl-st-card__svg { width: 28px; height: 28px; color: var(--rl-red); }
.rl-st-card h4 { font-family: var(--rl-druk); font-weight: 400; text-transform: uppercase; font-size: 16px; line-height: 1.15; margin: 12px 0 8px; }
.rl-st-card p { font-size: 13px; line-height: 1.55; color: rgba(242, 240, 232, .7); }
.rl-st-subhead { font-family: var(--rl-mono); font-weight: 500; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--rl-amber); margin-bottom: 12px; }
.rl-st-tags { margin-bottom: 28px; }
@media (max-width: 760px) { .rl-st-cards, .rl-st-cards--3 { grid-template-columns: minmax(0, 1fr); } }
