/* Коммерческие блоки для информационных страниц (ОКПД2, ТН ВЭД, реестр, НПА).
   Самодостаточный файл: работает и в новом шаблоне tui/, и в старом base.html.
   Префикс tc- чтобы не конфликтовать с main.min.css. */

.tc {
    --tc-brand: #6d4aff;
    --tc-brand-strong: #5b3cf0;
    --tc-brand-soft: #f1edff;
    --tc-text: #0f1221;
    --tc-muted: #6b7285;
    --tc-line: rgba(15, 18, 33, .1);
    --tc-surface: #fff;
    --tc-bg: #f6f7fb;
    --tc-ok: #1c7a4b;
    --tc-ok-bg: #e8f7ef;

    box-sizing: border-box;
    margin: 28px 0;
    font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--tc-text);
    line-height: 1.5;
    text-align: left;
}

.tc *,
.tc *::before,
.tc *::after {
    box-sizing: border-box;
}

.tc a {
    color: var(--tc-brand-strong);
    text-decoration: none;
}

.tc a:hover {
    text-decoration: underline;
}

.tc p {
    margin: 0 0 10px;
    font-size: 15px;
}

.tc p:last-child {
    margin-bottom: 0;
}

.tc__muted {
    color: var(--tc-muted);
    font-size: 13.5px;
}

.tc__eyebrow {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--tc-brand-soft);
    color: var(--tc-brand-strong);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tc__h {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--tc-text);
}

.tc__h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 650;
}

/* ---------- каркас карточки ---------- */

.tc-card {
    padding: 24px;
    border: 1px solid var(--tc-line);
    border-radius: 18px;
    background: var(--tc-surface);
    box-shadow: 0 8px 24px rgba(15, 18, 33, .05);
}

.tc-card--soft {
    background: linear-gradient(180deg, #fbfaff 0%, #fff 100%);
}

/* ---------- узкая CTA-полоса внутри контента ---------- */

.tc-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--tc-line);
    border-left: 4px solid var(--tc-brand);
    border-radius: 14px;
    background: var(--tc-bg);
}

.tc-strip__t {
    flex: 1 1 260px;
    min-width: 0;
}

/* ---------- кнопки ---------- */

.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--tc-line);
    border-radius: 12px;
    background: var(--tc-surface);
    color: var(--tc-text);
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    text-decoration: none;
}

.tc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 18, 33, .1);
    text-decoration: none;
}

.tc-btn--cta {
    border-color: transparent;
    background: linear-gradient(90deg, #6d4aff 0%, #7b5cff 45%, #2ec9c0 100%);
    color: #fff;
}

.tc-btn--dark {
    border-color: transparent;
    background: #14172b;
    color: #fff;
}

/* ---------- сетка фактов: цена, срок, гарантия ---------- */

.tc-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.tc-fact {
    padding: 14px;
    border: 1px solid var(--tc-line);
    border-radius: 14px;
    background: var(--tc-bg);
}

.tc-fact__v {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.tc-fact__l {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--tc-muted);
}

/* ---------- список гарантий ---------- */

.tc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.tc-list li {
    position: relative;
    padding-left: 24px;
    font-size: 14.5px;
    color: var(--tc-muted);
}

.tc-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tc-brand);
}

/* ---------- перелинковка услуг ---------- */

.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.tc-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--tc-line);
    border-radius: 14px;
    background: var(--tc-surface);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.tc-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 18, 33, .08);
    text-decoration: none;
}

.tc-tile__p {
    font-size: 13px;
    font-weight: 700;
    color: var(--tc-brand-strong);
}

/* ---------- мини-форма ---------- */

.tc-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.tc-in {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--tc-line);
    border-radius: 12px;
    background: var(--tc-surface);
    font: inherit;
    font-size: 15px;
    color: var(--tc-text);
}

.tc-in:focus {
    outline: none;
    border-color: var(--tc-brand);
    box-shadow: 0 0 0 4px rgba(109, 74, 255, .12);
}

.tc-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 12.5px;
    color: var(--tc-muted);
}

.tc-check input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--tc-brand);
    flex-shrink: 0;
}

.tc-msg {
    min-height: 18px;
    font-size: 13px;
    color: var(--tc-muted);
}

.tc-msg.is-ok {
    color: var(--tc-ok);
}

.tc-msg.is-err {
    color: #a52834;
}

/* ---------- обновление данных ---------- */

.tc-fresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--tc-ok-bg);
    color: var(--tc-ok);
    font-size: 12.5px;
    font-weight: 600;
}

.tc-fresh::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* ---------- хлебные крошки ---------- */

.tc-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--tc-muted);
}

.tc-crumbs li::after {
    content: "/";
    margin-left: 6px;
    color: var(--tc-line);
}

.tc-crumbs li:last-child::after {
    content: none;
}

@media (max-width: 640px) {
    .tc-card {
        padding: 18px 16px;
    }

    .tc__h {
        font-size: 19px;
    }
}
