/* ============================================================
   MODERN OVERLAY for HistoryPixel
   Дизайн-язык по образцу emsot.com:
   • Brand orange (#f97f08) + Ink neutrals (#15152a)
   • Inter (sans) + JetBrains Mono (mono)
   • Тени soft / lift / glow
   • Тёплый кремовый фон с оранжевыми «блобами»
   Markup остаётся BS4 — переопределяем только визуал.
   ============================================================ */

/* ============ ДИЗАЙН-ТОКЕНЫ ============ */
:root {
    /* === BRAND (yellow — совпадает с лого HistoryPixel) === */
    --brand-50:  #fffceb;
    --brand-100: #fff5c2;
    --brand-200: #ffeb85;
    --brand-300: #ffdd47;
    --brand-400: #fed01a;
    --brand-500: #fccb02;  /* основной */
    --brand-600: #d9a902;
    --brand-700: #ae8203;
    --brand-800: #8a6610;
    --brand-900: #735514;
    /* RGB-каналы для использования в rgba() */
    --brand-rgb: 252, 203, 2;

    /* === INK (neutrals) === */
    --ink-50:  #f7f7f8;
    --ink-100: #eeeef1;
    --ink-200: #d9d9e0;
    --ink-300: #b6b6c2;
    --ink-400: #8c8c9d;
    --ink-500: #6e6e80;
    --ink-600: #55556a;
    --ink-700: #3f3f56;
    --ink-800: #26263b;
    --ink-900: #15152a;

    /* === Семантика === */
    --bg:           #fffdf8;
    --surface:      #ffffff;
    --surface-alt:  var(--ink-50);
    --text:         var(--ink-900);
    --text-muted:   var(--ink-700);
    --text-subtle:  var(--ink-500);
    --border:       var(--ink-100);
    --border-strong:var(--ink-200);

    --shadow-soft: 0 1px 2px rgba(15,15,30,.04), 0 8px 24px -8px rgba(15,15,30,.08);
    --shadow-lift: 0 4px 12px rgba(15,15,30,.06), 0 24px 48px -16px rgba(15,15,30,.14);
    --shadow-glow: 0 0 0 1px rgba(var(--brand-rgb),.25), 0 12px 32px -8px rgba(var(--brand-rgb),.45);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl:24px;
    --radius-pill:9999px;

    --trans:      all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

    /* Градиент для главного заголовка — тёмный с жёлтым отливом (читаемость на cream) */
    --grad-brand: linear-gradient(120deg, #15152a 0%, #5e4810 55%, #ae8203 100%);
}

/* ============ БАЗА ============ */
html { scroll-behavior: smooth; }

body.page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-feature-settings: "ss01","cv11";
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Тёплый кремово-оранжевый «grain» фон с радиальными градиентами */
body.page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(var(--brand-rgb),.14), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(var(--brand-rgb),.10), transparent 65%),
        linear-gradient(180deg, #fffdf8 0%, #ffffff 60%);
}

/* Декоративный «blob» в углу */
body.page::after {
    content: '';
    position: fixed;
    top: -150px;
    right: -150px;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb),.22), transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* ============ ТИПОГРАФИКА ============ */
h1, h2, h3, h4, h5, h6,
.comfortaa, .swiper_h4 {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    letter-spacing: -0.02em;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; }
h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }

p { color: var(--text-muted); }
small, .text-muted { color: var(--text-subtle) !important; }

a {
    color: var(--brand-600);
    transition: var(--trans);
    text-decoration: none;
}
a:hover { color: var(--brand-700); text-decoration: none; }

code, pre, .mono { font-family: 'JetBrains Mono', 'SFMono-Regular', monospace; }

/* Главный градиентный заголовок */
.backgrad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    margin: 0 0 1.25rem;
    padding: 0;
    display: inline-block;
    letter-spacing: -0.02em;
}

/* ============ NAVBAR ============ */
.page__header {
    position: sticky;
    top: 0;
    z-index: 1020;
    margin-bottom: 1.5rem !important;
    background: rgba(255, 253, 248, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.navbar.navbar-light.bg-light {
    background: transparent !important;
    padding: 0.85rem 0;
}

.navbar-brand img {
    transition: var(--trans);
    max-height: 44px;
    width: auto !important;
    height: auto !important;
}
.navbar-brand:hover img { transform: scale(1.04); }

.navbar-nav .nav-link {
    color: var(--ink-800) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    margin: 0 0.1rem;
    border-radius: var(--radius);
    transition: var(--trans);
    position: relative;
}
.navbar-nav .nav-link:hover {
    color: var(--brand-600) !important;
    background: var(--brand-50);
}

/* Последний пункт (Login/Register) — акцентная кнопка */
.navbar-nav .nav-item:last-child .nav-link {
    background: var(--ink-900);
    color: #fff !important;
    padding: 0.5rem 1.15rem !important;
    box-shadow: 0 4px 14px rgba(15,15,30,.18);
}
.navbar-nav .nav-item:last-child .nav-link:hover {
    background: var(--brand-500);
    color: var(--ink-900) !important; /* тёмный на жёлтом */
    box-shadow: var(--shadow-glow);
}

.navbar-toggler {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.7rem;
}

/* ============ КНОПКИ ============ */
.btn {
    border-radius: var(--radius);
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid transparent;
    transition: var(--trans);
    box-shadow: var(--shadow-soft);
    letter-spacing: 0;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn:focus,
.btn.ring-brand:focus { box-shadow: var(--shadow-glow) !important; outline: none; }

.btn-xs,
.btn-group-xs > .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    line-height: 1.3;
    border-radius: var(--radius);
}

/* Brand (главный CTA) — оранжевый */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active {
    background: var(--brand-500) !important;
    color: var(--ink-900) !important; /* тёмный текст на жёлтом — высокий контраст */
    border-color: var(--brand-500) !important;
    font-weight: 700;
}
.btn-primary:hover {
    background: var(--brand-400) !important;
    border-color: var(--brand-400) !important;
    color: var(--ink-900) !important;
    box-shadow: var(--shadow-glow);
}

.btn-warning {
    background: var(--brand-500) !important;
    color: var(--ink-900) !important;
    border-color: var(--brand-500) !important;
    font-weight: 700;
}
.btn-warning:hover {
    background: var(--brand-400) !important;
    border-color: var(--brand-400) !important;
    color: var(--ink-900) !important;
    box-shadow: var(--shadow-glow);
}

/* Dark CTA — ink-900 */
.btn-dark,
.btn-secondary {
    background: var(--ink-900) !important;
    color: #fff !important;
    border-color: var(--ink-900) !important;
}
.btn-dark:hover,
.btn-secondary:hover {
    background: var(--brand-500) !important;
    border-color: var(--brand-500) !important;
    color: #fff !important;
}

/* Light/outline */
.btn-light,
.btn-outline-secondary {
    background: var(--surface) !important;
    color: var(--ink-800) !important;
    border: 1px solid var(--border-strong) !important;
}
.btn-light:hover,
.btn-outline-secondary:hover {
    color: var(--brand-700) !important;
    border-color: var(--brand-200) !important;
    background: var(--brand-50) !important;
}

.btn-success {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #fff !important;
}
.btn-success:hover { background: #047857 !important; border-color: #047857 !important; }

.btn-danger {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #fff !important;
}
.btn-danger:hover { background: #be123c !important; border-color: #be123c !important; }

.btn-info {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #fff !important;
}

.btn-outline-primary {
    background: transparent !important;
    color: var(--brand-600) !important;
    border: 1.5px solid var(--brand-500) !important;
    box-shadow: none;
}
.btn-outline-primary:hover {
    background: var(--brand-500) !important;
    color: #fff !important;
}

/* ============ КАРТОЧКИ ============ */
.card,
.text-content,
.bg_white {
    background: var(--surface) !important;
    border-radius: var(--radius-2xl) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: var(--trans);
}

.card { overflow: hidden; }
.card:hover,
.text-content:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
    border-color: var(--brand-200);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    font-weight: 700;
}
.card-body { padding: 1.25rem; }

/* «Soft badge» (как у emsot) */
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(15,15,30,.04);
    font-weight: 500;
    font-size: 13px;
    color: var(--ink-700);
}

/* «Chip» — мини-теги */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-800);
    font-weight: 500;
    font-size: 13px;
    transition: transform .15s, border-color .15s;
}
.chip:hover { border-color: var(--brand-200); transform: translateY(-1px); }

/* ============ SWIPER ============ */
.swiper-img { position: relative; max-width: 100%; height: auto; margin-bottom: 1.5rem; }

.swiper-slide .text-content {
    padding: 1.5rem;
    min-height: 180px;
    background: var(--surface);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.swiper_h4 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1rem;
    max-width: 75%;
    color: var(--text);
}

.swiper-button-prev,
.swiper-button-next {
    background: rgba(255, 255, 255, 0.96) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: var(--shadow-soft);
    color: var(--brand-600) !important;
    transition: var(--trans);
    margin-top: -22px !important;
}
.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--brand-500) !important;
    color: #fff !important;
    transform: scale(1.06);
    box-shadow: var(--shadow-lift);
}

.swiper-pagination-bullet { background: var(--ink-400) !important; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--brand-500) !important; opacity: 1; }

/* ============ ФОРМЫ ============ */
.form-control,
input.form-control,
textarea.form-control,
select.form-control {
    border-radius: var(--radius);
    border: 1.5px solid var(--border-strong);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    background: var(--surface);
    transition: var(--trans);
    color: var(--text);
}
.form-control:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(var(--brand-rgb),.25);
    outline: none;
}

.input-group-text {
    background: var(--surface-alt);
    border-radius: var(--radius);
    border: 1.5px solid var(--border-strong);
}

/* ============ МОДАЛКИ ============ */
.modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    background: var(--surface);
}
.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* ============ ALERTS / BADGES ============ */
.alert {
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    padding: 1rem 1.25rem;
}
.alert-warning { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.badge {
    border-radius: 9999px;
    padding: 0.4em 0.85em;
    font-weight: 600;
    font-size: 0.78em;
}
.badge-primary,
.badge-warning { background: var(--brand-500); color: #fff; }
.badge-secondary { background: var(--ink-700); color: #fff; }

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(180deg, transparent 0%, var(--surface-alt) 100%);
    border-top: 1px solid var(--border);
    padding-top: 3rem !important;
    margin-top: auto;
    color: var(--text-muted);
}
.footer a { color: var(--ink-800); }
.footer a:hover { color: var(--brand-600); }

/* ============ КОНТЕЙНЕР МЕЙНА ============ */
.page__main {
    padding: 1rem 0 4rem;
    flex: 1;
    margin-bottom: 0 !important;
}
.page__banner-top { margin: auto; text-align: center; }

/* ============ КАРТИНКИ В КАРТОЧКАХ ============ */
.text-content img,
.swiper-slide img {
    transition: var(--trans-slow);
}
.text-content:hover img {
    transform: scale(1.04) rotate(-1.5deg);
}

/* ============ УТИЛИТЫ-РАДИУСЫ ============ */
.br-5  { border-radius: 6px; }
.br-10 { border-radius: 10px; }
.br-15 { border-radius: 14px; }
.br-20 { border-radius: 18px; }

img { max-width: 100%; height: auto; }

/* ============ ВЫДЕЛЕНИЕ И СКРОЛЛБАР ============ */
::selection { background: var(--brand-200); color: var(--ink-900); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.03); }
::-webkit-scrollbar-thumb {
    background: var(--brand-200);
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-500); }

.bi { vertical-align: -0.125em; }

/* ============ CHIP-ФИЛЬТР НАД ПИКСЕЛЬНЫМ ПОЛЕМ ============ */
.pixel-filter {
    max-width: 1000px;
    margin: 0 auto 1rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.pixel-filter__label {
    color: var(--ink-700);
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.pixel-filter__label i.bi { color: var(--brand-500); font-size: 1rem; }
.pixel-filter__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex: 1;
}
.pix-chip {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-800);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.pix-chip:hover {
    border-color: var(--brand-300);
    background: var(--brand-50);
    color: var(--brand-800);
}
.pix-chip.is-active {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: #fff;
}
.pix-chip i.bi { font-size: 0.9rem; }

/* Затенение НЕсоответствующих ячеек */
.pixel-link.is-dimmed img.pixel-grid-element {
    opacity: 0.18;
    filter: grayscale(60%);
    transition: opacity 0.3s, filter 0.3s;
}
.pixel-link img.pixel-grid-element {
    transition: opacity 0.3s, filter 0.3s, transform 0.5s, box-shadow 0.3s;
}

/* Адаптив фильтра */
@media (max-width: 1100px) {
    .pixel-filter { border-radius: var(--radius); margin-left: 1rem; margin-right: 1rem; }
}
@media (max-width: 768px) {
    .pixel-filter { padding: 0.7rem 0.85rem; }
    .pix-chip { font-size: 0.78rem; padding: 0.35rem 0.7rem; }
}

/* ============ ПИКСЕЛЬНОЕ ПОЛЕ (ОБЯЗАТЕЛЬНО — НЕ ТРОГАТЬ ЛОГИКУ) ============ */
/* Контейнер 1000×1000 с фоновой сеткой по 10px (px5.gif) */
.pix { margin-bottom: 2.5rem; }

.pixel-table {
    margin: auto;
    width: 1000px;
    height: 1000px;
    background: #fff url("../px/img/px5.gif") 0 0 repeat;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    position: relative;
    /* без скругления — поле должно быть строго прямоугольным */
    border-radius: 0 !important;
    border: 1px solid var(--border);
    overflow: hidden;
}

#pixels {
    position: relative;
    width: 100%;
    height: 100%;
}

.pixel-grid-element {
    position: absolute;
    z-index: 5;
    background-color: var(--ink-300);
    transition: transform 0.5s, box-shadow 0.3s;
    cursor: pointer;
}
.pixel-grid-element:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: var(--shadow-glow);
}

/* Тултип с координатами, следует за курсором */
#d {
    position: absolute;
    z-index: 99;
    background: var(--surface);
    border: 1px solid var(--brand-500);
    color: var(--ink-900);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
    font-weight: 500;
    pointer-events: none;
    white-space: nowrap;
    display: none;
}
#d #xcoord b, #d #ycoord b { color: var(--brand-600); }

/* === Богатое превью при hover на ячейку === */
.pixel-preview {
    position: absolute;
    z-index: 100;
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.15s ease, transform 0.15s ease;
    font-family: 'Inter', sans-serif;
}
.pixel-preview.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pixel-preview__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--surface-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath fill='%23d9d9e0' d='M20 12c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z'/%3E%3C/svg%3E") center/40px no-repeat;
    overflow: hidden;
    position: relative;
}
.pixel-preview__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pixel-preview__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15,15,30,0.25));
    pointer-events: none;
}

.pixel-preview__body {
    padding: 0.85rem 1rem 0.95rem;
}

.pixel-preview__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.4rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pixel-preview__desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pixel-preview__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}
.pixel-preview__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ink-700);
    background: var(--surface-alt);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}
.pixel-preview__meta i.bi { color: var(--brand-500); font-size: 0.85rem; }
.pixel-preview__meta b { color: var(--ink-900); font-weight: 700; }

.pixel-preview__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-600);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.15rem;
}
.pixel-preview__cta i.bi { font-size: 1rem; }

/* На мобильных — превью не показываем (тач + узкий экран) */
@media (max-width: 768px) {
    .pixel-preview { display: none !important; }
}

/* Pixel-table-admin (для админки) — тоже без скругления */
.pixel-table-admin {
    margin: auto;
    width: 1000px;
    height: 1000px;
    background: #fff url("../px/img/px5.gif") 0 0 repeat;
    position: relative;
    border-radius: 0 !important;
    border: 1px solid var(--border);
}

/* ============ TABLE ============ */
.table { color: var(--text); background: var(--surface); }
.table thead th {
    border-bottom: 2px solid var(--border-strong);
    font-weight: 700;
    color: var(--ink-800);
    background: var(--surface-alt);
}
.table td, .table th { border-top: 1px solid var(--border); padding: 0.85rem; }

/* ============ PAGINATION ============ */
.pagination .page-link {
    border-radius: var(--radius);
    margin: 0 0.15rem;
    border: 1px solid var(--border);
    color: var(--ink-800);
    transition: var(--trans);
    padding: 0.5rem 0.9rem;
}
.pagination .page-item.active .page-link {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: #fff;
}
.pagination .page-link:hover {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: var(--brand-200);
}

/* ============ DROPDOWN ============ */
.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem;
    background: var(--surface);
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    font-weight: 500;
    transition: var(--trans);
    color: var(--ink-800);
}
.dropdown-item:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 1100px) {
    /* На узких экранах поле скроллится горизонтально, но НЕ ломается */
    .pix {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .pixel-table { margin: 0; }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--surface);
        border-radius: var(--radius-lg);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-soft);
        border: 1px solid var(--border);
    }
    .navbar-nav .nav-item:last-child .nav-link {
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .backgrad { font-size: clamp(1.6rem, 6vw, 2.2rem); }
    .swiper-button-prev,
    .swiper-button-next { display: none !important; }
    .swiper-slide .text-content { padding: 1.1rem; min-height: 160px; }
    .swiper_h4 { font-size: 1rem; max-width: 100%; }
}

/* ============ AOS ============ */
[data-aos] { transition-property: transform, opacity; }

/* ============================================================
   КОНТЕНТНЫЕ СЕКЦИИ (под пиксельным полем)
   ============================================================ */

/* Section headers (.box-header > .box-title) */
.box-header {
    margin: 2rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.box-header .box-title,
.box-header h3, .box-header h4, .box-header h5, .box-header h6 {
    margin: 0;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink-900);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 0.85rem;
}
.box-header .box-title::before,
.box-header h6.box-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.1em;
    background: var(--brand-500);
    border-radius: 2px;
}

/* Заголовки внутри tgChannels — "Продвигайтесь в Телеграм каналах" */
.box-header h4.backgrad,
.box-header .backgrad {
    padding-left: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.box-header h4.backgrad::before { display: none; }

/* ============ BLOG POST (карточка блогера в основной ленте) ============ */
.blog-post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--trans);
    overflow: hidden;
}
.blog-post:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-2px);
    border-color: var(--brand-200);
}

/* Плоский вариант — для длинной обёртки на странице анкеты,
   где тень/скругление 1×на весь экран смотрится плохо. */
.blog-post.is-plain,
.blog-post.is-plain:hover {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: none;
}

/* ============ CATALOG TOOLBAR (поиск + табы исполнители/заказчики) ============ */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
}
.catalog-search {
    position: relative;
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    padding: 0 4px 0 14px;
    min-height: 44px;
}
.catalog-search__icon {
    color: var(--ink-500);
    font-size: 1.05rem;
    pointer-events: none;
    margin-right: 8px;
}
.catalog-search__input {
    flex: 1 1 auto;
    border: 0;
    outline: none;
    background: transparent;
    padding: 8px 4px;
    font-size: 0.95rem;
    color: var(--ink-900);
    min-width: 0;
}
.catalog-search__input::placeholder { color: var(--ink-500); }
.catalog-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    color: var(--ink-600);
    text-decoration: none;
    margin: 0 4px;
}
.catalog-search__clear:hover { background: var(--surface-alt); }
.catalog-search__btn {
    border: 0;
    background: var(--brand-500);
    color: var(--ink-900);
    border-radius: var(--radius-pill);
    padding: 7px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 4px;
    transition: var(--trans);
}
.catalog-search__btn:hover { background: var(--brand-600); }

/* На главной поиск занимает всю ширину и центрируется */
.catalog-search--home {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-tabs {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 4px;
    gap: 2px;
}
.catalog-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    color: var(--ink-700);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--trans);
}
.catalog-tab:hover { color: var(--ink-900); background: var(--surface-alt); text-decoration: none; }
.catalog-tab.is-active {
    background: var(--brand-500);
    color: var(--ink-900);
    font-weight: 700;
}

.catalog-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius);
    font-size: 0.88rem;
    color: var(--ink-700);
}
.catalog-active-filter__clear {
    color: var(--ink-600);
    text-decoration: underline;
    font-size: 0.82rem;
}
.cat-related__chip.is-active {
    background: var(--brand-500);
    color: var(--ink-900);
    border-color: var(--brand-500);
}

/* ============ ARTICLE SHOW (страница /articles/{id}) ============ */
.article-show { display: block; }

.article-show__head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.article-show__title {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 .65rem;
}
.article-show__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.article-show__meta .badge-soft { font-size: 12.5px; padding: 5px 11px; }
.article-show__meta .article-likebox.is-liked { color: var(--brand-600); border-color: var(--brand-300); background: var(--brand-50); }
.article-show__meta .js-favbox.is-fav { color: #e23b3b; border-color: #fbcaca; background: #fff0f0; }
.article-show__meta .js-favbox.is-fav i { color: #e23b3b; }

/* Тело — текст анкеты */
.article-show__body {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem 1.75rem;
    margin: 1.25rem 0;
    line-height: 1.7;
    font-size: 1rem;
    color: var(--ink-800);
}
.article-show__body:hover {
    /* отключаем глобальный hover-эффект для .text-content */
    transform: none;
    box-shadow: var(--shadow-soft);
    border-color: var(--border);
}
.article-show__body p { margin: 0 0 .85rem; }
.article-show__body p:last-child { margin-bottom: 0; }
.article-show__body h2,
.article-show__body h3,
.article-show__body h4 {
    color: var(--ink-900);
    font-weight: 700;
    margin: 1.4rem 0 .6rem;
}
.article-show__body strong { color: var(--ink-900); }
.article-show__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: .5rem 0;
}
.article-show__body a {
    color: var(--brand-700, #8b6f00);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.article-show__body a:hover { color: var(--ink-900); }

/* Соцсети — chip-кнопки вместо больших SVG */
.article-show__socials {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
}
.article-show__socials-title {
    display: flex; align-items: center; gap: .4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink-700);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .85rem;
}
.article-show__socials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.article-social-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--ink-800);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, color .15s ease, background-color .15s ease;
}
.article-social-chip i { font-size: 1.1rem; }
.article-social-chip:hover {
    transform: translateY(-1px);
    text-decoration: none;
    border-color: var(--brand-300);
    background: var(--brand-50);
    color: var(--ink-900);
}
/* Бренд-цвета на иконках */
.article-social-chip.is-yt i  { color: #FF0000; }
.article-social-chip.is-vk i  { color: #228BE6; }
.article-social-chip.is-tg i  { color: #229ED9; }
.article-social-chip.is-ig i  { color: #E4405F; }
.article-social-chip.is-tt i  { color: #000;    }
.article-social-chip.is-fb i  { color: #1877F2; }
.article-social-chip.is-web i { color: var(--brand-600); }

/* Видео-карточки на странице анкеты — лёгкая рамка и скругление */
.article-show .article-full__video {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}
.article-show .article-full__video img.video-thumbnail {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.article-show .article-full__image {
    margin: 1rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.article-show .article-full__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Картинка-превью внутри blog-post */
.blog-post img.bd-placeholder-img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: var(--trans-slow);
}
.blog-post:hover img.bd-placeholder-img {
    transform: scale(1.02);
}

/* Заголовок блогера */
.blog-post h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0.25rem 0 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.blog-post h5 a,
.blog-post a h5 { color: var(--ink-900); }
.blog-post a:hover h5 { color: var(--brand-600); }

/* Описание */
.blog-post p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

/* Принудительно убираем серый цвет из inline-стиля strong */
.blog-post strong[style] {
    color: var(--ink-900) !important;
    font-weight: inherit !important;
}

/* Bootstrap 4 .media — карточка с картинкой и текстом */
.blog-post .media,
.media.text-muted {
    color: var(--text-muted);
    align-items: flex-start;
}
.media-body { padding: 0; }

/* Стат-чипы под описанием (Подписчиков, Просмотров, Видео) */
.article-list-info {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    margin: 0.15rem 0.35rem 0.15rem 0;
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    color: var(--ink-700);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.article-list-info b { color: var(--ink-900); font-weight: 700; }
.article-list-info i.fa,
.article-list-info i.bi { color: var(--brand-500); }
.article-list-info:hover { border-color: var(--brand-200); background: var(--brand-50); }

/* Кликабельные теги в карточке статьи на каталоге */
.article-card-tags { margin-top: -.25rem; }
.article-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    color: var(--ink-800);
    font-size: 0.74rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--brand-200);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.article-card-tag:hover {
    background: var(--brand-500);
    color: var(--ink-900);
    border-color: var(--brand-500);
    text-decoration: none;
}

/* ============ САЙДБАР: VIP / TOP 10 ============ */
.articles-vip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1rem 1rem 1.25rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}
.articles-vip .box-header {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
}
.articles-vip .blog-post {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}
.articles-vip .blog-post:last-child { border-bottom: none; margin-bottom: 0; }
.articles-vip .blog-post:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent transparent var(--brand-200) transparent;
}

.articles-vip__frame {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.65rem;
    aspect-ratio: 16 / 10;
}
.articles-vip__frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: var(--trans-slow);
    border-radius: 0 !important;
    margin: 0 !important;
}
.articles-vip__frame:hover img { transform: scale(1.04); }

.articles-vip h6 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}
.articles-vip a:hover h6 { color: var(--brand-600); }

/* ============ TG-channels swiper card (mySwiper4) ============ */
.swiper-img.slider .mySwiper4 .text-content {
    cursor: pointer;
    padding: 0.85rem 1rem;
    min-height: 0;
    display: flex;
    align-items: center;
}
.swiper-img.slider .mySwiper4 .text-content b {
    font-size: 1rem;
    color: var(--ink-900);
    line-height: 1.3;
    display: block;
    margin-bottom: 0.25rem;
}
.swiper-img.slider .mySwiper4 .text-content p {
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-muted);
}
.swiper-img.slider .mySwiper4 .text-content p b {
    display: inline;
    font-size: inherit;
    color: var(--brand-700);
    margin: 0;
}

/* ============ САЙДБАР-ПОИСК (современный) ============ */
.col-md-3 form .input-group {
    background: var(--surface);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 4px;
    transition: var(--trans);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 1rem !important;
}
.col-md-3 form .input-group:focus-within {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.18);
}
.col-md-3 form input.form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.55rem 0.4rem 0.55rem 1rem !important;
    font-size: 0.95rem !important;
    color: var(--ink-900) !important;
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0;
    height: auto;
}
.col-md-3 form input.form-control::placeholder {
    color: var(--ink-400);
}
.col-md-3 form input.form-control:focus { box-shadow: none !important; }

.col-md-3 form .input-group-append {
    margin: 0 !important;
    flex-shrink: 0;
}
.col-md-3 form .input-group-append .input-group-text,
.col-md-3 form .input-group-append button.input-group-text {
    background: var(--brand-500) !important;
    color: var(--ink-900) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    cursor: pointer;
    padding: 0.5rem 0.85rem !important;
    transition: var(--trans);
    font-size: 0.95rem;
    height: auto;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.35);
}
.col-md-3 form .input-group-append .input-group-text:hover,
.col-md-3 form .input-group-append button.input-group-text:hover {
    background: var(--brand-400) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.5);
}
.col-md-3 form .input-group-append .input-group-text i,
.col-md-3 form .input-group-append button.input-group-text i {
    color: var(--ink-900) !important;
    font-size: 1rem;
    font-weight: 700;
}

/* «Новый партнёр» / другие сайдбарные виджеты */
.col-md-3 .blog-post .box-header {
    margin: 0 0 0.5rem;
    padding-bottom: 0.5rem;
}
.col-md-3 .blog-post .box-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0;
}
.col-md-3 .blog-post .box-title::before { display: none; }
.col-md-3 .blog-post h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
}

/* Banner block (баннер в любом месте) */
.banner-block,
.banner-container {
    margin: 1.5rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.banner-block img,
.banner-container img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: var(--trans-slow);
}
.banner-block a:hover img,
.banner-container a:hover img {
    transform: scale(1.01);
}

/* ============ FOOTER (полировка) ============ */
/* === FOOTER — новая структура === */
.footer {
    background:
        radial-gradient(circle at 90% 0%, rgba(var(--brand-rgb), 0.10), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(var(--brand-rgb), 0.06), transparent 40%),
        var(--ink-900);
    border-top: 1px solid var(--ink-800);
    color: var(--ink-300);
    padding: 3.5rem 0 1.5rem !important;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-500) 30%, var(--brand-500) 70%, transparent);
}

.footer .container { max-width: 1200px; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--ink-800);
    margin-bottom: 1.25rem;
}

.footer-col__title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col__title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 24px; height: 2px;
    background: var(--brand-500);
    border-radius: 2px;
}

/* Бренд-блок */
.footer-col--brand .footer-logo {
    display: inline-block;
    margin-bottom: 1.1rem;
    text-decoration: none;
}
.footer-col--brand .footer-logo__mark {
    display: inline-block;
    background: var(--brand-500);
    color: var(--ink-900) !important;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
    transition: var(--trans);
}
.footer-col--brand .footer-logo:hover .footer-logo__mark {
    background: var(--brand-400);
    transform: translateY(-1px);
}
.footer-tagline {
    color: var(--ink-400);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 360px;
}
.footer-col--brand .footer-logo { margin-bottom: 1.5rem; }

.footer .footer-tg-btn,
a.footer-tg-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.15rem !important;
    background: var(--brand-500) !important;
    color: var(--ink-900) !important;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.35) !important;
    transition: var(--trans);
}
.footer .footer-tg-btn:hover,
a.footer-tg-btn:hover {
    background: var(--brand-400) !important;
    color: var(--ink-900) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--brand-rgb), 0.5) !important;
}
.footer-tg-btn i.bi { font-size: 1rem; }

/* Списки ссылок */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: var(--ink-300) !important;
    font-size: 0.92rem;
    text-decoration: none;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}
.footer-links a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--brand-500);
    transition: width 0.2s ease, margin 0.2s ease;
    margin-right: 0;
}
.footer-links a:hover {
    color: var(--brand-400) !important;
}
.footer-links a:hover::before {
    width: 12px;
    margin-right: 0.4rem;
}
.footer-links--contacts a i.bi {
    color: var(--brand-500);
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

/* Юр.дисклеймер по запрещённым в РФ соцсетям */
.footer-legal {
    border-top: 1px dashed rgba(255,255,255,.08);
    padding: 0.75rem 0 0.25rem;
    color: rgba(255,255,255,.45);
}
.footer-legal p { color: inherit !important; font-size: 0.74rem; line-height: 1.45; }

/* Нижняя плашка */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--ink-500);
}
.footer-bottom__left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.footer-divider { color: var(--ink-700); }
.footer-counters { display: inline-flex; align-items: center; gap: 0.65rem; }
.footer-counters img { transition: opacity 0.2s; }
.footer-counters a:hover img { opacity: 1 !important; }

/* Сбрасываем legacy bs nav-link / text-white */
.footer .nav-link,
.footer a {
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0;
    background: transparent !important;
}
.footer .text-white,
.footer .nav-link span.text-white { color: inherit !important; }
.footer h6, .footer h5 { color: #fff; margin-bottom: 1rem; font-weight: 700; }

/* Кнопка "Наверх" — жёлтая, видна на любом фоне */
.scroll-up {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--brand-500);
    color: var(--ink-900);
    border: none;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px -4px rgba(var(--brand-rgb), 0.55), 0 0 0 4px rgba(var(--brand-rgb), 0.15);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s, background 0.15s, box-shadow 0.2s;
    z-index: 50;
    cursor: pointer;
    padding: 0;
}
.scroll-up.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-up:hover {
    background: var(--ink-900);
    color: var(--brand-400);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -4px rgba(var(--brand-rgb), 0.7), 0 0 0 6px rgba(var(--brand-rgb), 0.18);
}
.scroll-up i.bi { font-size: 1.3rem; font-weight: 800; }
.scroll-up:focus { outline: none; }

/* Адаптив футера */
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-col--brand { grid-column: span 2; }
}
@media (max-width: 576px) {
    .footer { padding: 2.5rem 0 1.25rem !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 1.75rem; }
    .footer-col--brand { grid-column: span 1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
    .scroll-up { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ============================================================
   СТРАНИЦА КАТЕГОРИИ
   ============================================================ */
.cat-hero {
    padding: 1.5rem 0 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.cat-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-subtle);
    margin-bottom: 1rem;
}
.cat-breadcrumbs a {
    color: var(--text-subtle);
    transition: var(--trans);
}
.cat-breadcrumbs a:hover { color: var(--brand-600); }
.cat-breadcrumbs span:not(.cat-breadcrumbs__current) { color: var(--ink-300); }
.cat-breadcrumbs__current { color: var(--ink-900); font-weight: 600; }

.cat-hero__title {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0.85rem 0 0.85rem;
    max-width: 820px;
}
.cat-hero__subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 0 1.5rem;
}

.cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.5rem;
}
.cat-filter-chip {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-700);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
}
.cat-filter-chip:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
    background: var(--brand-50);
    transform: translateY(-1px);
}
.cat-filter-chip.is-active {
    background: var(--brand-500);
    border-color: var(--brand-500);
    color: var(--ink-900);
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.4);
}
.cat-filter-chip i.bi { font-size: 0.9rem; }

/* === Сетка карточек исполнителей === */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0 2rem;
}

.exec-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--trans);
    display: flex;
    flex-direction: column;
}
.exec-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
    border-color: var(--brand-200);
}

.exec-card__cover {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-alt);
    position: relative;
}
.exec-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.exec-card:hover .exec-card__cover img { transform: scale(1.05); }
.exec-card__cover--placeholder {
    display: grid;
    place-items: center;
    color: var(--ink-300);
}
.exec-card__cover--placeholder i.bi { font-size: 3rem; }

.exec-card__body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}
.exec-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-900) !important;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.exec-card__title:hover { color: var(--brand-700) !important; }

.exec-card__desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.exec-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.25rem;
}
.exec-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--ink-700);
    font-weight: 500;
}
.exec-card__chip i.bi { color: var(--brand-500); }

.exec-card__price {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    color: var(--brand-800);
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid var(--brand-200);
}

.exec-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    margin-top: 0.4rem;
}
.exec-card__actions .btn {
    flex: 1;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.83rem !important;
    border-radius: var(--radius) !important;
    box-shadow: none;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}
.exec-card__actions .btn-sm i.bi { margin-right: 0.25rem; }

/* === Пагинация === */
.cat-pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* === Доверие === */
.cat-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}
.cat-trust__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.cat-trust__item > i.bi {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--brand-200);
}
.cat-trust__item b {
    display: block;
    color: var(--ink-900);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}
.cat-trust__item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.15rem;
}

/* === Соседние категории === */
.cat-related {
    margin: 2rem 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}
.cat-related__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.85rem;
}
.cat-related__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.cat-related__chip {
    padding: 0.45rem 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--ink-700) !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--trans);
}
.cat-related__chip:hover {
    background: var(--brand-50);
    border-color: var(--brand-300);
    color: var(--brand-800) !important;
    transform: translateY(-1px);
}

/* === Empty state (нет анкет в категории) === */
.cat-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface);
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-2xl);
    margin: 2rem 0;
}
.cat-empty > i.bi {
    font-size: 3rem;
    color: var(--brand-300);
    margin-bottom: 0.85rem;
    display: block;
}
.cat-empty h3 {
    font-size: 1.4rem;
    color: var(--ink-900);
    margin: 0 0 0.5rem;
}
.cat-empty p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

/* === SEO-блок (приглушённый текст внизу) === */
.cat-seo {
    margin: 2.5rem 0 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-subtle);
    font-size: 0.88rem;
    line-height: 1.6;
}
.cat-seo p { margin-bottom: 0.85rem; color: var(--text-subtle); }
.cat-seo a { color: var(--brand-700); }
.cat-seo a:hover { color: var(--brand-800); text-decoration: underline; }

/* === HP-SVG (анимированные визуалы в hero-блоках) === */
.feature-block__visual {
    background: transparent !important;
    border: none !important;
    aspect-ratio: 1 !important;
    max-width: 380px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    overflow: visible !important;
    display: block !important;
    position: relative;
    color: inherit !important;
}
.feature-block__visual::before { display: none !important; }
.feature-block__visual i.bi { display: none !important; }

.hp-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    filter: drop-shadow(0 16px 40px rgba(15, 15, 30, 0.18));
}
.feature-block__visual--orange .hp-svg {
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--brand-rgb), 0.22), transparent 60%),
        linear-gradient(135deg, var(--brand-50), #ffffff);
    border: 1px solid var(--brand-200);
}
.feature-block__visual--dark .hp-svg {
    background:
        radial-gradient(circle at 70% 30%, rgba(var(--brand-rgb), 0.22), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(var(--brand-rgb), 0.10), transparent 50%),
        var(--ink-900);
    border: 1px solid var(--ink-800);
}

/* Адаптив hp-svg */
@media (max-width: 991px) {
    .feature-block__visual { max-width: 320px !important; }
}
@media (max-width: 768px) {
    .feature-block__visual { max-width: 260px !important; margin-top: 1.5rem !important; }
}

/* ============ STATIC ОТСТУПЫ (мелкие правки) ============ */
.h2.backgrad,
h2.backgrad { margin-top: 2.5rem !important; margin-bottom: 1.5rem !important; }

/* Картинки внутри слайдов hero (декоративные) — небольшая полировка */
.swiper-slide .text-content > img {
    pointer-events: none;
}

/* ============================================================
   НОВЫЙ ЛЕНДИНГ — HERO / FEATURE-BLOCK / STEPS / CTA-BAR
   ============================================================ */

/* === HERO === */
.hero-section {
    padding: 3rem 0 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Космический фон hero */
.hero-bg-svg {
    position: absolute;
    inset: -2rem -3rem;
    width: calc(100% + 6rem);
    height: calc(100% + 4rem);
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}
/* Контент hero — поверх фона */
.hero-section > *:not(.hero-bg-svg) { position: relative; z-index: 1; }

/* Звёзды чуть крупнее и контрастнее */
.hero-bg-svg circle[r="1.2"] { r: 2; }
.hero-bg-svg circle[r="1.5"] { r: 2.5; }
.hero-bg-svg circle[r="1.8"] { r: 3; }
.hero-bg-svg circle[r="2"]   { r: 3.5; }

@media (max-width: 768px) {
    .hero-bg-svg { opacity: 0.7; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    color: var(--ink-700);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-badge i.bi { color: var(--brand-500); font-size: 1rem; }

.hero-title {
    font-size: clamp(2rem, 4.8vw, 3.5rem) !important;
    line-height: 1.1 !important;
    max-width: 900px;
    margin: 0 0 1.25rem !important;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 0 2rem;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.hero-cta-row .btn-lg {
    padding: 0.85rem 1.6rem;
    font-size: 1rem;
    border-radius: var(--radius);
}
.hero-cta-row .btn i.bi {
    margin-right: 0.4rem;
    font-size: 1.05em;
}

.hero-micro {
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}
.hero-micro i.bi { color: var(--brand-500); margin-right: 0.25rem; }

/* === FEATURE BLOCK (для исполнителей / для заказчиков) === */
.feature-block {
    padding: 3rem 0;
    margin: 1rem 0;
}
.feature-block + .feature-block { padding-top: 1rem; }

.feature-block__eyebrow {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    margin-bottom: 0.85rem;
}
.feature-block--alt .feature-block__eyebrow {
    background: var(--ink-100);
    color: var(--ink-800);
}

.feature-block__title {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink-900);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.feature-block__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 620px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.65rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.feature-list li i.bi {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 1.1rem;
}
.feature-block--alt .feature-list li i.bi {
    background: var(--ink-100);
    color: var(--ink-800);
}
.feature-list li b { color: var(--ink-900); font-weight: 700; }

/* Декоративный визуал справа (большая иконка-блоб) */
.feature-block__visual {
    aspect-ratio: 1;
    max-width: 360px;
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.feature-block__visual i.bi {
    font-size: 7rem;
    position: relative;
    z-index: 1;
}
.feature-block__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.65;
    transform: scale(0.85);
}

.feature-block__visual--orange {
    background: var(--brand-50);
    color: var(--brand-600);
    border: 1px solid var(--brand-100);
}
.feature-block__visual--orange::before { background: var(--brand-300); }

.feature-block__visual--dark {
    background: var(--ink-900);
    color: var(--brand-400);
    border: 1px solid var(--ink-800);
}
.feature-block__visual--dark::before { background: var(--brand-500); opacity: 0.35; }

/* === STEPS (3 шага) === */
.steps-section {
    padding: 3.5rem 0 2.5rem;
    margin-top: 1rem;
}
.steps-section .feature-block__title { margin-bottom: 0.5rem; }

.steps-grid { margin-top: 2rem; }

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem 1.75rem 1.75rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: var(--trans);
    position: relative;
}
.step-card:hover {
    box-shadow: var(--shadow-lift);
    transform: translateY(-4px);
    border-color: var(--brand-200);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink-900);
    color: var(--brand-400);  /* яркая жёлтая цифра на тёмном круге */
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 20px -6px rgba(15,15,30,.35);
    font-family: 'JetBrains Mono', monospace;
    border: 2px solid var(--brand-500);
}

.step-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0 0 0.65rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}
.step-card a {
    color: var(--brand-600);
    font-weight: 600;
    border-bottom: 1px dashed var(--brand-300);
}
.step-card a:hover {
    color: var(--brand-700);
    border-bottom-color: var(--brand-500);
}

/* === FINAL CTA BAR === */
.cta-bar {
    margin: 4rem 0 2rem;
    background: var(--ink-900);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* Декоративное orange-свечение в углу */
.cta-bar::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb),0.55), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}
.cta-bar::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb),0.25), transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.cta-bar__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.cta-bar__title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-bar__lead {
    color: var(--ink-300);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.cta-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.cta-bar__minor {
    color: var(--ink-300);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--trans);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.cta-bar__minor:hover {
    color: var(--brand-400);
}
.cta-bar__minor i.bi { font-size: 1.05em; }

/* === АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ === */
@media (max-width: 768px) {
    .hero-section { padding: 2rem 0 1.5rem; }
    .hero-cta-row .btn { flex: 1 1 100%; justify-content: center; display: inline-flex; }
    .hero-micro { gap: 0.5rem 0.85rem; font-size: 0.8rem; }
    .feature-block { padding: 2rem 0; }
    .feature-block__visual { max-width: 200px; margin-top: 1.5rem; }
    .feature-block__visual i.bi { font-size: 4rem; }
    .step-card { padding: 1.5rem 1.25rem; margin-bottom: 1rem; }
    .cta-bar { padding: 2rem 1.25rem; margin: 2.5rem 0 1.5rem; }
}

/* =========================================================================
   HP Contact Card — приоритетный контакт автора через Telegram на /articles/{id}
   ========================================================================= */
.hp-contact-card {
    margin: 16px 0 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--brand-50) 0%, #fff 60%);
    border: 1px solid rgba(var(--brand-rgb), .35);
    border-radius: var(--r-lg, 16px);
    box-shadow: 0 0 0 1px rgba(var(--brand-rgb),.18), 0 8px 24px -10px rgba(var(--brand-rgb),.35);
}
.hp-contact-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-700, #262b3c);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.hp-contact-card__title .fa { color: var(--brand-700, #a78300); font-size: 16px; }
.hp-contact-card__cta {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.hp-contact-card__empty {
    color: var(--ink-500, #5b6478);
    font-size: 13px;
    font-style: italic;
}

.hp-contact-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ink-200, #dde1e9);
    color: var(--ink-700, #262b3c) !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hp-contact-btn:hover {
    transform: translateY(-1px);
    border-color: var(--brand-500, #fccb02);
    box-shadow: 0 6px 14px -4px rgba(20,22,40,.10);
}
.hp-contact-btn .fa { font-size: 18px; }
.hp-contact-btn--main {
    background: var(--ink-900, #15152a) !important;
    color: var(--brand-500, #fccb02) !important;
    border-color: var(--ink-900);
    padding: 12px 22px;
    font-size: 15px;
}
.hp-contact-btn--main:hover {
    background: var(--ink-800, #1a1e2c) !important;
    border-color: var(--ink-800);
    color: var(--brand-500, #fccb02) !important;
}
.hp-contact-btn--main svg { color: var(--brand-500, #fccb02); }

/* Заблокированный контакт-блок для гостей */
.hp-contact-card--locked {
    cursor: pointer;
    position: relative;
    transition: var(--trans);
}
.hp-contact-card--locked:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}
.hp-contact-card--locked .hp-contact-card__title i {
    color: var(--ink-700);
}
.hp-contact-btn--locked {
    pointer-events: none;
    background: rgba(0,0,0,.05);
    color: var(--ink-500) !important;
    border-color: rgba(0,0,0,.05) !important;
    font-family: monospace;
    letter-spacing: -0.5px;
    user-select: none;
}
.hp-contact-btn--locked.hp-contact-btn--main {
    background: var(--ink-700);
    color: var(--brand-100) !important;
    font-family: monospace;
}
.hp-contact-card__hint {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,.08);
    font-size: 0.85rem;
    color: var(--ink-600);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.hp-contact-card__hint i { color: var(--brand-600); margin-top: 2px; }
