/* PAGES-20261031: текстовые страницы (templates/page.php). Внутри .tp-body — HTML из базы на классах Bootstrap,
   здесь он приводится к стилю карточек сайта, без правки самих текстов. */
.tp { --tp-acc: #eb9318; --tp-acc-h: #d68210; --tp-ink: #1d232b; --tp-mute: #5f6873; --tp-line: #e8eaee; --tp-soft: #f5f6f8;
    --pp-acc: #eb9318; --pp-acc-h: #d68210; --pp-ink: #1d232b; --pp-line: #e8eaee; --pp-soft: #f5f6f8; /* для .pp-btn в блоке внизу */
    color: var(--tp-ink); padding: 8px 0 32px; }
.tp-head { margin: 4px 0 26px; }
.tp-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9a5700; margin-bottom: 6px; }
.tp-head h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.12; margin: 0; }
.tp--read .tp-head, .tp--read .tp-body { max-width: 820px; }

/* текст */
.tp-body { font-size: 1rem; line-height: 1.7; color: #374151; }
.tp-body h2, .tp-body .h2 { font-size: 1.6rem; font-weight: 800; color: var(--tp-ink); line-height: 1.2; margin: 1.6em 0 .6em; }
.tp-body h3, .tp-body .h3 { font-size: 1.3rem; font-weight: 800; color: var(--tp-ink); line-height: 1.25; margin: 1.4em 0 .55em; }
.tp-body h4, .tp-body .h4, .tp-body h5, .tp-body .h5 { font-size: 1.08rem; font-weight: 800; color: var(--tp-ink); margin: 1.2em 0 .5em; }
.tp-body > h2:first-child, .tp-body > h3:first-child, .tp-body > p:first-child { margin-top: 0; }
.tp-body .display-4, .tp-body .display-5, .tp-body .display-6 { font-weight: 800; color: var(--tp-ink); }
.tp-body .lead { font-size: 1.15rem; color: #4b5563; }
.tp-body strong, .tp-body b { color: var(--tp-ink); }
.tp-body a:not(.btn):not(.list-group-item):not(.pp-btn) { color: #9a5700; text-underline-offset: 3px; }
.tp-body .text-primary { color: var(--tp-acc) !important; }
.tp-body hr { border-color: var(--tp-line); opacity: 1; margin: 2rem 0; }
.tp-body ul:not(.list-group):not(.list-unstyled) { padding-left: 1.2rem; }
.tp-body ul:not(.list-group) li::marker { color: var(--tp-acc); }

/* карточки и плашки */
.tp-body .card { border: 1px solid var(--tp-line) !important; border-radius: 16px !important; box-shadow: none !important; overflow: hidden; background: #fff; }
.tp-body .card.bg-light, .tp-body .bg-light { background: var(--tp-soft) !important; }
.tp-body .card .card-header { background: var(--tp-soft); border-bottom: 1px solid var(--tp-line); font-weight: 800; color: var(--tp-ink); }
.tp-body .card .card-header.bg-primary, .tp-body .card .card-header.bg-warning { background: var(--tp-acc) !important; color: #1d232b; }
.tp-body .card .card-header.bg-dark, .tp-body .card .card-header.bg-secondary { background: var(--tp-ink) !important; color: #fff; }
.tp-body .card.bg-primary, .tp-body .card.bg-warning { border: 0 !important; }
.tp-body .card-title { font-weight: 800; color: var(--tp-ink); }
.tp-body .card .text-primary.fs-1, .tp-body .card .display-4.text-primary, .tp-body .card i.text-primary { color: var(--tp-acc) !important; }
.tp-body .shadow, .tp-body .shadow-sm { box-shadow: none !important; }
.tp-body .rounded, .tp-body .rounded-3 { border-radius: 14px !important; }
.tp-body .alert { border-radius: 14px; border: 1px solid var(--tp-line); background: var(--tp-soft); color: #374151; }
.tp-body .alert-warning, .tp-body .alert-danger { background: #fff7ec; border-color: #f6dcb4; }
.tp-body .border-danger { border-color: #f6dcb4 !important; border-radius: 16px; background: #fff7ec; }
.tp-body .badge { border-radius: 999px; font-weight: 700; }
.tp-body .border-danger .text-danger { color: #9a5700 !important; }

/* таблицы */
.tp-body .table-responsive { border: 1px solid var(--tp-line); border-radius: 16px; overflow: auto; margin-bottom: 1.5rem; }
.tp-body .table { margin: 0; border-color: var(--tp-line); font-size: .94rem; }
.tp-body .table-responsive > .table { border: 0; }
.tp-body .table:not(.table-responsive > .table) { border: 1px solid var(--tp-line); border-radius: 16px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.tp-body .table th, .tp-body .table td { padding: .7rem .9rem; border-color: var(--tp-line); vertical-align: middle; }
.tp-body .table thead th, .tp-body .table .table-dark th, .tp-body .table-dark > th, .tp-body .table-dark td, .tp-body .table thead.table-dark th {
    background: var(--tp-ink) !important; color: #fff !important; border-color: #2c343e !important; }
.tp-body .table .bg-secondary, .tp-body .table th.bg-secondary { background: #3b434d !important; color: #fff !important; }
.tp-body .table .bg-success { background: var(--tp-acc) !important; color: #1d232b !important; }
.tp-body .table td.text-danger, .tp-body .table .text-danger { color: #9a5700 !important; }
.tp-body .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: var(--tp-soft); }
.tp-body .table-hover > tbody > tr:hover > * { --bs-table-accent-bg: #fff7ec; }

/* списки-ссылки */
.tp-body .list-group { border-radius: 16px; overflow: hidden; border: 1px solid var(--tp-line); }
.tp-body .list-group-item { border-color: var(--tp-line); padding: 1rem 1.2rem; }
.tp-body .list-group-item-action { transition: background .15s; }
.tp-body .list-group-item-action:hover { background: #fff7ec; }
.tp-body .list-group-item-action:hover h5, .tp-body .list-group-item-action:hover .fw-bold { color: #9a5700; }
.tp-body .list-group-item .text-success, .tp-body .list-group-item .text-info, .tp-body .list-group-item .text-warning { color: var(--tp-acc) !important; }

/* аккордеон (FAQ, гарантия) */
.tp-body .accordion { --bs-accordion-border-color: var(--tp-line); --bs-accordion-active-bg: #fff7ec; --bs-accordion-active-color: var(--tp-ink);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(235,147,24,.2); border-radius: 16px; overflow: hidden; border: 1px solid var(--tp-line); }
.tp-body .accordion-item { border: 0; border-top: 1px solid var(--tp-line); border-radius: 0 !important; }
.tp-body .accordion-item:first-child { border-top: 0; }
.tp-body .accordion-button { font-weight: 700; font-size: 1.02rem !important; color: var(--tp-ink); padding: 1rem 1.25rem !important; }
.tp-body .accordion-button i, .tp-body .accordion-button .fas { color: var(--tp-acc) !important; }
.tp-body .accordion-body { color: #4b5563; padding: .2rem 1.25rem 1.2rem !important; }

/* кнопки внутри текстов */
.tp-body .btn-primary, .tp-body .btn-warning, .tp-body .btn-dark { background: var(--tp-acc); border-color: var(--tp-acc); color: #1d232b; border-radius: 999px; font-weight: 700; padding: .6rem 1.4rem; }
.tp-body .btn-primary:hover, .tp-body .btn-warning:hover, .tp-body .btn-dark:hover { background: var(--tp-acc-h); border-color: var(--tp-acc-h); color: #1d232b; }
.tp-body .btn-outline-dark, .tp-body .btn-outline-primary { border-radius: 999px; font-weight: 700; }

/* блок внизу страницы */
.tp-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 44px; padding: 24px 26px;
    border-radius: 20px; color: #fff; background: radial-gradient(circle at 110% -20%, rgba(235,147,24,.55), transparent 55%), #1d232b; }
.tp-cta__txt b { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.tp-cta__txt span { color: rgba(255,255,255,.7); font-size: .92rem; }
.tp-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tp-cta .pp-btn--ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff !important; }
.tp-cta .pp-btn--ghost:hover { background: rgba(255,255,255,.18); }

@media (max-width: 767.98px) {
    .tp-body { font-size: .96rem; }
    .tp-body h2, .tp-body .h2 { font-size: 1.35rem; }
    .tp-cta { padding: 20px; }
    .tp-cta__btns, .tp-cta__btns .pp-btn { width: 100%; }
}

/* список статей (templates/articles.php) */
.tp-lead { font-size: 1.08rem; color: var(--tp-mute); margin: 10px 0 0; max-width: 720px; }
.tp-arts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tp-art { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--tp-line); border-radius: 18px; background: #fff;
    color: var(--tp-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tp-art:hover { color: var(--tp-ink); border-color: rgba(235,147,24,.55); box-shadow: 0 14px 30px -18px rgba(29,35,43,.35); transform: translateY(-3px); }
.tp-art__ico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: rgba(235,147,24,.12); color: #9a5700; font-size: 1.35rem; }
.tp-art__img { flex-shrink: 0; width: 96px; height: 96px; border-radius: 14px; object-fit: cover; }
.tp-art__body { display: flex; flex-direction: column; gap: 6px; }
.tp-art__body b { font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.tp-art:hover .tp-art__body b { color: #9a5700; }
.tp-art__body small { color: var(--tp-mute); font-size: .88rem; line-height: 1.5; }
.tp-art__body em { font-style: normal; font-size: .8rem; font-weight: 700; color: #9a5700; margin-top: 4px; }
@media (max-width: 767.98px) { .tp-arts { grid-template-columns: 1fr; } .tp-art { padding: 16px; gap: 14px; } }

/* отзывы (templates/reviews.php) */
.tp-revhead { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: end; margin-bottom: 26px; }
.tp-revhead .tp-head { margin: 0; }
.tp-revs { columns: 2 340px; column-gap: 16px; }
.tp-revs .pp-review { break-inside: avoid; margin-bottom: 16px; }
.tp-revmodel { display: inline-block; margin-bottom: 6px; font-size: .8rem; font-weight: 700; color: #9a5700; text-decoration: none; }
.tp-revmodel:hover { text-decoration: underline; }
.tp-pager .page-link { border-radius: 10px !important; margin: 0 3px; border-color: var(--tp-line); color: var(--tp-ink); }
.tp-pager .page-item.active .page-link { background: var(--tp-ink); border-color: var(--tp-ink); color: #fff; }
.tp-modal { border-radius: 20px !important; padding: 8px; }
.tp-modal .form-control, .tp-modal .form-select { border-radius: 12px; padding: 10px 14px; }
@media (max-width: 767.98px) { .tp-revhead { grid-template-columns: 1fr; } }

/* логотипы ТК на «Доставке» (pages id 7, картинки /assets/img/tk/ — с interrus) */
.tk-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tk-logo { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--tp-line); border-radius: 12px; background: #fff; font-size: .84rem; font-weight: 700; color: var(--tp-ink); }
.tk-logo img { width: 46px; height: 32px; object-fit: contain; flex-shrink: 0; }
@media (max-width: 575.98px) { .tk-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A11Y-20261104: контраст. Текст на оранжевом — тёмный, оранжевый текст на светлом — #9a5700, значки и заливки прежние */
.btn-primary { --bs-btn-color: #1d232b; --bs-btn-hover-color: #1d232b; --bs-btn-active-color: #1d232b; --bs-btn-disabled-color: #1d232b; }
.tp-body .bg-primary, .tp-body .bg-primary * { color: #1d232b !important; }
.tp-body .text-danger { color: #c82333 !important; }
.pop-chip--winter { color: #0a6f98 !important; }
.tzft-bottom .brk-credit { opacity: .85; }
