/* ============================================
   GetPravo — Единый файл стилей
   ============================================ */

/* === CSS-ПЕРЕМЕННЫЕ === */
:root {
    /* Основная палитра */
    --gl-primary: #396396;
    --gl-primary-light: #2c5282;
    --gl-primary-dark: #0f2744;
    --gl-accent: #3182ce;
    --gl-accent-light: #4299e1;
    --gl-accent-dark: #2b6cb0;
    --gl-secondary: #718096;
    --gl-success: #38B44A;
    --gl-bg-light: #F7F7F7;
    --gl-bg-card: #ffffff;
    --gl-text: #111111;
    --gl-text-muted: #718096;
    --gl-border: #e2e8f0;
    --gl-border-light: #f0f0f0;

    /* Тени */
    --gl-shadow-sm: 0 2px 4px rgba(26, 58, 92, 0.1);
    --gl-shadow-md: 0 4px 12px rgba(26, 58, 92, 0.15);
    --gl-shadow-lg: 0 8px 20px rgba(26, 58, 92, 0.2);
    --gl-shadow-hover: 0 6px 16px rgba(44, 82, 130, 0.25);

    /* Переходы */
    --gl-transition-slow: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --gl-transition-fast: all 0.2s ease;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(26,58,92,0.9) 100%);
    --gradient-top-overlay: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
    --gradient-card-bg: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    --gradient-photo-bg: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);

    /* Карточки */
    --card-shadow: 0 0.125rem 0.5rem rgba(26, 58, 92, 0.1);
    --card-shadow-lg: 0 0.5rem 1rem rgba(26, 58, 92, 0.2);
}

/* === БАЗОВЫЕ СТИЛИ === */
body {
    background-color: var(--gl-bg-light);
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(57,99,150,.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 90% 110%, rgba(44,82,130,.05) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--gl-text);
    font-family: 'Open Sans', Tahoma, sans-serif;
    font-size: 16px;
    padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gl-primary);
}

a {
    color: var(--gl-primary-light);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gl-accent);
}

/* === ССЫЛКИ КОНТАКТОВ === */
.contact-link,
ul.list-unstyled a.fw-semibold {
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.contact-link:hover,
ul.list-unstyled a.fw-semibold:hover {
    color: var(--gl-accent) !important;
    text-shadow: 0 0 2px rgba(49, 130, 206, 0.15);
}

/* === НАВИГАЦИЯ === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(26, 58, 92, 0.95) 100%),
                linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%) !important;
    background-blend-mode: multiply;
}

.navbar-brand {
    font-weight: 500;
    font-size: 1.0rem;
}

/* < 530px — только короткое */
.navbar-brand-short { display: inline; }
.navbar-brand-full  { display: none; }

/* >= 1300px — показываем полное название в шапке */
@media (min-width: 1300px) {
    .navbar-brand-short { display: none; }
    .navbar-brand-full  { display: inline; }
}

/* 530px–991px — бургер виден, места достаточно — полное */
@media (min-width: 530px) and (max-width: 991.98px) {
    .navbar-brand-short { display: none; }
    .navbar-brand-full  { display: inline; }
}

/* 992px–1199px — меню раскрыто, мало места — короткое */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand-short { display: inline; }
    .navbar-brand-full  { display: none; }
}

.nav-link {
    transition: all 0.3s ease;
    color: #ffffff !important;
}

.nav-link:hover {
    color: #90cdf4 !important;
}

.nav-link.active {
    color: #90cdf4 !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.15);
}

.dropdown-item:active {
    background-color: var(--gl-primary);
}

.partner-link-highlight {
    color: #1f3b64;
    font-weight: 600;
}

.partner-link-highlight:hover,
.partner-link-highlight:focus {
    color: #0f172a;
    background-color: #e0f2fe;
}

/* Desktop navbar */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        visibility: visible !important;
        flex-basis: auto !important;
        flex-grow: 1 !important;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        margin-left: auto !important;
    }

    .nav-item {
        display: block !important;
        visibility: visible !important;
    }

    .nav-link {
        display: block !important;
        visibility: visible !important;
        padding: 0.5rem 0.75rem !important;
    }

    .navbar-toggler {
        display: none !important;
    }
}

/* === КНОПКИ === */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--gl-primary-light);
    border-color: var(--gl-primary-light);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--gl-primary);
    border-color: var(--gl-primary);
}

.btn-outline-primary {
    color: var(--gl-primary);
    border-color: var(--gl-primary);
    transition: all 0.2s ease, transform 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: var(--gl-primary);
    border-color: var(--gl-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.25);
}

/* === КАРТОЧКИ === */
.card {
    border: 1px solid var(--gl-border);
    background-color: var(--gl-bg-card);
    border-radius: 0.5rem;
    box-shadow: var(--gl-shadow-sm);
    transition: var(--gl-transition-slow);
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--gl-shadow-hover);
    transform: translateY(-1px);
    border-color: var(--gl-border);
}

/* Flip-card внутренние card не должны двигаться при hover — управляется самой карточкой */
.flip-card .card:hover {
    transform: none;
}

/* Но карточки юристов внутри flip-card должны сохранять свой hover-эффект */
.flip-card .founder-card:hover,
.flip-card .partner-card-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transition: box-shadow .32s cubic-bezier(0.22, 1, 0.36, 1), border-color .25s ease, transform .32s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-card .partner-card-modern:hover {
    box-shadow: 0 8px 24px rgba(26,58,92,.16);
    transform: translateY(-2px);
    transition: box-shadow .32s cubic-bezier(0.22, 1, 0.36, 1), transform .32s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-header {
    background-color: var(--gl-bg-light);
    border-bottom: 2px solid var(--gl-border);
}

/* Кликабельные card-header (карта партнёров и т.п.) */
.card-header[data-bs-toggle="collapse"] {
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.card-header[data-bs-toggle="collapse"]:hover {
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.card-header[data-bs-toggle="collapse"]:hover h5 {
    text-shadow: 0 0 2px rgba(144, 205, 244, 0.3);
}

.card-gradient-header {
    background: var(--gradient-primary);
}

/* Утилита: фон-градиент для карточек */
.card-gradient-bg {
    background: var(--gradient-card-bg);
}

/* === ФОРМЫ === */
.form-control,
.form-select {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gl-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--gl-primary);
}

/* === ХЛЕБНЫЕ КРОШКИ === */

/* === КНОПКА ОЧИСТКИ ПОИСКА === */
.btn-search-clear {
    position: absolute;
    right: 42px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    background: none;
    color: var(--gl-secondary);
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.btn-search-clear:hover {
    opacity: 1;
    color: var(--gl-primary);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--gl-primary-light);
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--gl-accent);
}

.breadcrumb-item.active {
    color: var(--gl-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gl-secondary);
}

/* === ТАБЛИЦЫ === */
.table thead {
    background-color: var(--gl-bg-light);
    border-bottom: 2px solid var(--gl-border);
}

.table thead th {
    color: var(--gl-primary);
    font-weight: 700;
    padding: 1rem;
    border: none;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--gl-border);
}

.table tbody tr:hover {
    background-color: rgba(26, 58, 92, 0.05);
}

/* === HERO-СЕКЦИЯ ГЛАВНОЙ СТРАНИЦЫ === */

/* Hero изображение */
.index-hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(26,58,92,.18);
    height: 210px;
    margin-bottom: 1rem;
}

.index-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.index-hero-image:hover img {
    transform: scale(1.03);
}

.index-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(10,31,56,.88) 0%, rgba(10,31,56,.4) 60%, transparent 100%);
    z-index: 2;
}

.index-hero-overlay h1,
.index-hero-overlay h3 {
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    font-weight: 700;
    margin-bottom: .25rem;
}

.index-hero-overlay p {
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* GetPravo info card — тёмный градиент */
.index-info-card {
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 50%, #2c5282 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .35s ease;
    box-shadow: 0 6px 24px rgba(26,58,92,.2);
}

.index-info-card:hover {
    box-shadow: 0 8px 32px rgba(26,58,92,.3);
    transform: none;
}

.index-info-card-header {
    padding: 1.25rem 1.35rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.index-info-card-header h2 {
    color: #fff !important;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .15rem;
    letter-spacing: -.01em;
}

/* h6 — заголовок блока */
.index-info-card-header h6 {
    color: #f0f7ff !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .55rem;
}

/* Разделитель */
.index-info-card-header hr {
    border-color: rgba(255,255,255,.18);
    opacity: 1;
    margin: .5rem 0 .75rem;
}

.index-info-card-header p {
    color: rgba(255,255,255,.88);
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
}

.index-info-card-body {
    padding: .85rem 1.35rem 1.2rem;
}

/* Акцентные бейджи в шапке карточки */
.index-info-badge {
    display: inline-flex;
    align-items: center;
    font-size: .72rem;
    font-weight: 600;
    color: #fbbf24;
    background: rgba(251,191,36,.12);
    border: 1px solid rgba(251,191,36,.25);
    border-radius: 20px;
    padding: .25rem .65rem;
    letter-spacing: .02em;
    transition: background .2s ease;
}
.index-info-badge:hover {
    background: rgba(251,191,36,.2);
}

/* Контакты внутри hero info card */
.index-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: background .2s ease;
}

.index-contact-list li:hover {
    background: rgba(255,255,255,.07);
}

.index-contact-list li:last-child {
    margin-bottom: 0;
}

.index-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    color: #ecf0f5;
    font-size: .92rem;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.08);
}

.index-contact-list li:hover .index-contact-icon {
    background: rgba(255,255,255,.22);
    transform: scale(1.08);
}

.index-contact-link {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    transition: color .2s ease;
}

.index-contact-link:hover {
    color: #90cdf4 !important;
}

.index-contact-label {
    font-size: .68rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.3;
    margin-bottom: 1px;
}

/* === ЗАГОЛОВКИ СЕКЦИЙ ГЛАВНОЙ === */

.index-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-bottom: .85rem;
    position: relative;
}

.index-section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gl-primary) 0%, var(--gl-accent) 35%, rgba(57,99,150,.12) 80%, transparent 100%);
    border-radius: 2px;
}

.index-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gl-primary), var(--gl-accent, #2c5282));
    color: #fff;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(26,58,92,.2);
}

.index-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gl-primary);
    margin: 0;
    line-height: 1.3;
}

/* === КАРТОЧКИ СЕКЦИЙ ГЛАВНОЙ === */

.index-card {
    background: #f8fafc;
    background-image: radial-gradient(ellipse 70% 55% at 0% 0%, rgba(57,99,150,.06) 0%, transparent 65%);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(26,58,92,.07);
    overflow: hidden;
    transition: box-shadow .35s ease, transform .35s ease;
    border: 1px solid rgba(26,58,92,.08);
    position: relative;
}

.index-card:hover {
    box-shadow: 0 8px 32px rgba(26,58,92,.13);
    transform: translateY(-3px);
}

/* Контактная форма — без подъёма при hover (мешает вводу) */
#contact-card.index-card:hover {
    transform: none;
}

.index-card-header {
    padding: .85rem 1.25rem .5rem;
    font-weight: 700;
    font-size: .92rem;
    color: var(--gl-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.index-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: linear-gradient(90deg, var(--gl-primary), var(--gl-accent, #3182ce), transparent);
    border-radius: 2px;
    opacity: .2;
}

.index-card-header > i {
    font-size: .88rem;
    color: #fff;
    background: linear-gradient(135deg, var(--gl-primary), var(--gl-accent, #2c5282));
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26,58,92,.18);
}

.index-card-body {
    padding: .75rem 1.25rem 1.25rem;
}

/* Service cards с градиентным акцентом */
.index-service-card {
    background: #f8fafc;
    background-image: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(49,130,206,.055) 0%, transparent 60%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(26,58,92,.08);
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
    border: 1px solid rgba(26,58,92,.08);
    position: relative;
}

.index-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gl-primary) 0%, var(--gl-accent) 50%, var(--gl-primary-light) 100%);
    background-size: 200% 100%;
    animation: accentSlide 3s ease infinite;
    z-index: 1;
}

.index-service-card:hover,
.index-service-card.service-card-open {
    box-shadow: 0 6px 24px rgba(26,58,92,.13);
    transform: translateY(-3px);
    border-color: rgba(26,58,92,.08);
}

.index-service-card .card-img-top {
    transition: transform .4s ease;
}

.index-service-card:hover .card-img-top {
    transform: scale(1.05);
}

/* === СЕКЦИИ ГЛАВНОЙ СТРАНИЦЫ (legacy) === */

/* Заголовок секции */
.section-title {
    color: var(--gl-primary);
    border-bottom: 3px solid var(--gl-primary);
    padding-bottom: 1rem;
}

/* Блок команды */
.team-header {
    border-bottom: 3px solid var(--gl-primary);
    padding-bottom: 1rem;
}

.team-title {
    color: var(--gl-primary);
}

/* Hero блок (legacy) */
.hero-overlay {
    background: var(--gradient-overlay);
}

.hero-image {
    height: 180px;
}

/* Иконка сервиса */
.service-card h5 {
    color: var(--gl-primary);
}

/* === КАРТОЧКИ С РАСКРЫТИЕМ === */
.clickable-collapse-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-collapse-card:not(.index-service-card):hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-lg);
}

/* Плавное раскрытие */
.collapse {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out;
}

.collapse.show {
    max-height: 1000px;
}

/* На большом экране navbar-collapse ВСЕГДА видим */
@media (min-width: 992px) {
    .navbar-collapse {
        max-height: unset !important;
        overflow: visible !important;
    }
}

/* Стрелка раскрытия */
.toggle-arrow .bi {
    display: inline-block;
    transition: transform 0.3s ease;
}

.toggle-arrow[aria-expanded="true"] .bi {
    transform: rotate(180deg);
}

.toggle-arrow i {
    transition: transform 0.3s ease;
}

/* === УТИЛИТЫ === */
.link-hover:hover {
    text-decoration: underline !important;
    cursor: pointer;
    color: var(--gl-primary) !important;
}

/* Фото-контейнер (замена inline style) */
.photo-container {
    overflow: hidden;
    background: var(--gradient-photo-bg);
}

.photo-container-lg {
    height: 400px;
}

.photo-container-md {
    height: 250px;
}

.photo-container-sm {
    height: 160px;
}

.photo-cover {
    object-fit: cover;
    object-position: center;
}

/* === ПАГИНАЦИЯ === */
.pagination .page-link {
    color: var(--gl-primary);
    border: 1px solid var(--gl-border);
    border-radius: 8px;
    margin: 0 2px;
    padding: 0.45rem 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--gl-primary);
    border-color: var(--gl-primary);
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: var(--gl-primary);
    border-color: var(--gl-primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: var(--gl-secondary);
    background-color: transparent;
}

/* === АЛЕРТЫ === */
.alert {
    border-radius: 8px;
    border: none;
}

/* === РАЗДЕЛИТЕЛИ === */
hr {
    border: none;
    border-top: 1px solid var(--gl-border);
}

/* === СКРОЛЛБАР === */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gl-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gl-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gl-primary-light);
}

/* === АНИМАЦИИ === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === BLOG HERO (главная страница) === */
.blog-hero {
    padding-top: 3rem;
    padding-bottom: 1rem;
    text-align: center;
}

.blog-hero h5 {
    margin-bottom: 0.75rem;
}

.blog-hero p {
    margin-bottom: 0.75rem;
}

/* === QUICK SERVICES (главная страница) === */
.quick-service-card {
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 50%, #2c5282 100%);
    color: #fff;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 64px;
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.4);
}

.quick-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.05rem;
    flex: 0 0 44px;
    backdrop-filter: blur(2px);
}

.quick-service-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.quick-service-body {
    flex: 1 1 auto;
    min-width: 0;
}

.quick-service-title {
    margin: 0;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.05;
}

.quick-service-desc {
    margin: .15rem 0 0 0;
    color: rgba(255,255,255,0.85);
    font-size: .85rem;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === OTHER SERVICES (главная страница) === */
.other-services .card-body {
    background: transparent;
}

.other-services .toggle-arrow:hover {
    color: var(--gl-primary) !important;
}


/* === КАРТОЧКИ АВТОРОВ === */
.founder-card {
    background: #f8fafc;
    background-image: radial-gradient(ellipse 75% 60% at 100% 100%, rgba(57,99,150,.055) 0%, transparent 60%);
    border-left: 3px solid transparent;
    border: 1px solid rgba(26, 58, 92, 0.1);
    border-top: 3px solid var(--gl-accent);
    box-shadow: 0 3px 12px rgba(26, 58, 92, 0.10), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow .32s cubic-bezier(0.22, 1, 0.36, 1), border-color .25s ease, transform .32s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-card:hover {
    box-shadow: 0 8px 24px rgba(26, 58, 92, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
    border-top-color: var(--gl-accent-light);
    transform: translateY(-2px);
}

.founder-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(26, 58, 92, 0.15);
    box-shadow: 0 3px 12px rgba(26, 58, 92, 0.15);
    transition: box-shadow 0.3s ease;
}

.founder-card:hover .founder-avatar {
    box-shadow: 0 3px 12px rgba(26, 58, 92, 0.15);
    transform: none;
}

/* === FLIP CARD === */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* ======================================
   СТРАНИЦА ПАРТНЁРОВ — НОВЫЙ ДИЗАЙН
   ====================================== */

/* --- Hero-секция --- */
.partners-hero {
    position: relative;
    padding: 3rem 0 2.5rem;
    overflow: hidden;
}

.partners-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 40%, #2c5282 100%);
    z-index: 1;
}

.partners-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(49,130,206,.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(66,153,225,.1) 0%, transparent 50%);
    z-index: 1;
}

.partners-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--gl-bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.partners-hero-title {
    color: #fff !important;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
    animation: heroFadeDown .6s ease both;
}

.partners-hero-subtitle {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    animation: heroFadeDown .6s ease .15s both;
}

@keyframes heroFadeDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Поиск в Hero (партнёры) --- */
.partners-search-form {
    max-width: 540px;
    animation: heroFadeDown .6s ease .3s both;
}

.partners-search-form .input-group {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(6, 20, 42, 0.92);
    border: 1.5px solid rgba(66, 120, 200, 0.55);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,.06);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.partners-search-form .input-group:focus-within {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 4px 24px rgba(0,0,0,.45), 0 0 0 3px rgba(251,191,36,.12);
}

.partners-search-form .input-group-text {
    background: transparent;
    border: none;
    padding-left: 1.1rem;
    padding-right: .5rem;
    color: rgba(160, 195, 245, 0.8);
}

.partners-search-form .form-control {
    background: transparent;
    border: none;
    color: #e8f0fe;
    font-size: .93rem;
    font-weight: 500;
    padding: .72rem .4rem;
}

.partners-search-form .form-control::placeholder {
    color: rgba(160, 195, 245, 0.55);
    font-weight: 400;
}

.partners-search-form .form-control:focus {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.partners-search-form .btn-search-clear {
    background: transparent;
    border: none;
    color: rgba(160, 195, 245, 0.6);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 .6rem;
    cursor: pointer;
    transition: color .2s;
    align-self: center;
}

.partners-search-form .btn-search-clear:hover {
    color: #e8f0fe;
}

.partners-search-form .btn[type="submit"] {
    border-radius: 0 10px 10px 0 !important;
    background: linear-gradient(135deg, #1a4a8a, #2563eb);
    border: none;
    border-left: 1px solid rgba(66,120,200,.4);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    padding: .72rem 1.4rem;
    letter-spacing: .02em;
    transition: background .2s ease;
}

.partners-search-form .btn[type="submit"]:hover {
    background: linear-gradient(135deg, #1e56a0, #3b82f6);
}

/* --- Результат поиска --- */
.partners-search-result {
    background: #fff;
    border-radius: 12px;
    padding: .85rem 1.25rem;
    box-shadow: var(--gl-shadow-sm);
    border-left: 4px solid var(--gl-primary);
}

/* --- Анимация появления карточек --- */
.partner-card-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .5s ease, transform .5s ease;
}

.partner-card-col.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Карточка (лицевая) --- */
.partner-card-modern {
    background: #f8fafc;
    background-image: radial-gradient(ellipse 80% 55% at 0% 0%, rgba(57,99,150,.055) 0%, transparent 60%);
    box-shadow: 0 3px 12px rgba(26,58,92,.10);
    transition: box-shadow .32s cubic-bezier(0.22, 1, 0.36, 1), transform .32s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.partner-card-modern:hover {
    box-shadow: 0 8px 24px rgba(26,58,92,.16);
    transform: translateY(-2px);
}

/* --- Аватар --- */
.partner-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.partner-avatar-img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 12px rgba(26, 58, 92, 0.15);
    transition: box-shadow .3s ease;
}

.partner-card-modern:hover .partner-avatar-img {
    transform: none;
    box-shadow: 0 3px 12px rgba(26, 58, 92, 0.15);
}

.partner-exp-badge {
    position: absolute;
    bottom: -2px;
    right: -4px;
    background: #1a3a5c;
    color: #ffffff !important;
    font-size: .65rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    line-height: 1.2;
    border: 2px solid #fff;
    z-index: 1;
    -webkit-text-fill-color: #ffffff;
}

.partner-exp-badge span,
.partner-exp-badge * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

/* --- Специализация --- */
.partner-specialization {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 6px;
}

.partner-specialization {
    display: table;
    border-collapse: collapse;
}

.partner-spec-label {
    display: table-cell;
    vertical-align: top;
    padding-top: 3px;
    padding-right: 8px;
    white-space: nowrap;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #4a6080;
    border-right: 1px solid rgba(44,82,130,.25);
}

.partner-spec-tags {
    display: table-cell;
    vertical-align: top;
    padding-left: 8px;
}

.partner-spec-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--gl-primary-light);
    background: rgba(44,82,130,.07);
    border: 1px solid rgba(44,82,130,.12);
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 2px;
    line-height: 1.5;
    transition: background .2s ease, color .2s ease;
}

.partner-spec-tag:hover {
    background: rgba(44,82,130,.14);
    color: var(--gl-primary);
}

/* --- На платформе с ... --- */
.partner-since-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gl-secondary);
    background: linear-gradient(135deg, rgba(44,82,130,.05), rgba(16,185,129,.06));
    border: 1px solid rgba(44,82,130,.10);
    border-radius: 20px;
    padding: 4px 12px;
    margin-top: 8px;
    width: fit-content;
    letter-spacing: .01em;
    transition: all .25s ease;
}

.partner-since-badge i {
    font-size: .7rem;
    color: var(--gl-accent, #2c5282);
    opacity: .8;
}

.partner-card-modern:hover .partner-since-badge {
    background: linear-gradient(135deg, rgba(44,82,130,.08), rgba(16,185,129,.10));
    border-color: rgba(44,82,130,.18);
    color: var(--gl-primary-light);
}

/* --- Мини-статистика --- */
.partner-stat-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: var(--gl-secondary);
    transition: color .2s ease;
}

.partner-stat-mini:hover {
    color: var(--gl-primary);
}

.partner-stat-mini i {
    font-size: .72rem;
}

.partner-stat-rating {
    color: #e2a308;
}

.partner-stat-rating:hover {
    color: #ca8a04;
}

/* --- Кнопка переворота --- */
.partner-flip-trigger {
    background: rgba(44,82,130,.06);
    color: var(--gl-primary-light);
    border: 1px solid rgba(44,82,130,.15);
    border-radius: 20px !important;
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem .85rem;
    transition: all .25s ease;
}

.partner-flip-trigger:hover {
    background: var(--gl-primary);
    color: #fff;
    border-color: var(--gl-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(26,58,92,.25);
}

/* --- Задняя сторона --- */
.partner-card-back {
    background: linear-gradient(135deg, var(--gl-primary) 0%, #0f2744 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(15,39,68,.3);
    position: relative;
    overflow: hidden;
}

.partner-card-back::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 130, 206, .12) 0%, transparent 70%);
    pointer-events: none;
}

.partner-back-name {
    color: #fff !important;
    font-size: 1.15rem;
    transition: color .2s ease, text-shadow .2s ease;
}

.partner-back-name:hover {
    color: #90cdf4 !important;
    text-shadow: 0 0 3px rgba(144,205,244,.25);
}

.partner-back-logo {
    width: 34px;
    height: 34px;
    opacity: .7;
    flex-shrink: 0;
    transition: opacity .2s ease;
}

.partner-back-logo:hover {
    opacity: 1;
}

/* --- Контактный список --- */
.partner-contacts-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: .88rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.partner-contacts-list li:last-child {
    border-bottom: none;
}

.partner-contacts-list li i {
    color: rgba(255,255,255,.45);
    font-size: .82rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: color .2s ease;
}

.partner-contacts-list li:hover i {
    color: rgba(255,255,255,.8);
}

.partner-contacts-list li a {
    color: rgba(255,255,255,.85) !important;
    text-decoration: none;
    transition: color .2s ease;
}

.partner-contacts-list li span {
    color: rgba(255,255,255,.85) !important;
    transition: color .2s ease;
}

.partner-contacts-list li a:hover {
    color: #90cdf4 !important;
}

/* --- Кнопки задней стороны --- */
.partner-back-btn-profile {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px !important;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .85rem;
    transition: all .2s ease;
}

.partner-back-btn-profile:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    border-color: rgba(255,255,255,.4);
    transform: translateY(-1px);
}

.partner-back-btn-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.15);
    font-size: .85rem;
    transition: all .2s ease;
    padding: 0;
}

.partner-back-btn-icon:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    transform: scale(1.08);
}

/* --- Утилита: плавное появление --- */
.animate-fade-in {
    animation: fadeIn .5s ease both;
}

/* --- Адаптив для hero --- */
@media (max-width: 767.98px) {
    .partners-hero {
        padding: 2rem 0 2rem;
    }
    .partners-hero-title {
        font-size: 1.5rem;
    }
    .partners-hero-subtitle {
        font-size: .88rem;
    }
    .partners-search-form .input-group {
        flex-wrap: nowrap;
    }
    .partner-avatar-img {
        width: 60px;
        height: 60px;
    }
}

/* --- Breadcrumb внутри hero --- */
.partners-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.4);
}

/* Старые стили flip-btn (совместимость с index.html карточками) */
.flip-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.flip-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.18);
}

.flip-card-back .flip-btn.btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.flip-card-back .flip-btn.btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.flip-card-back .flip-btn.btn-outline-success {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.flip-card-back .flip-btn.btn-outline-success:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.flip-card-back .flip-btn.btn-success {
    background-color: var(--gl-success);
    border-color: var(--gl-success);
    color: #fff;
}

/* Совместимость: задняя сторона для index.html */
.flip-card-back .founder-card {
    background: linear-gradient(135deg, #0a1f38 0%, #1a3a5c 50%, var(--gl-primary-dark) 100%);
    color: #fff;
    border: 1px solid rgba(49, 130, 206, .25);
    border-top: 3px solid rgba(251, 191, 36, .6);
    box-shadow: 0 4px 16px rgba(26, 58, 92, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.flip-card-back .founder-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(49, 130, 206, .08) 0%, transparent 70%);
    pointer-events: none;
}

/* Контакты на обороте карточек founders */
.flip-card-back .founder-contacts-list li {
    padding: 3px 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.flip-card-back .founder-contacts-list li:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.flip-card-back .founder-contacts-list li i {
    font-size: .85rem;
    transition: color .2s ease, transform .2s ease;
}

.flip-card-back .founder-contacts-list li .bi-telephone {
    color: rgba(134, 239, 172, .8);
}

.flip-card-back .founder-contacts-list li .bi-envelope {
    color: rgba(147, 197, 253, .8);
}

.flip-card-back .founder-contacts-list li .bi-telegram {
    color: rgba(96, 165, 250, .85);
}

.flip-card-back .founder-contacts-list li .bi-chat-square-heart {
    color: rgba(147, 197, 253, .8);
}

.flip-card-back .founder-contacts-list li .bi-globe {
    color: rgba(196, 181, 253, .8);
}

.flip-card-back .founder-contacts-list li .bi-geo-alt {
    color: rgba(252, 211, 77, .85);
}

.flip-card-back .founder-contacts-list li:hover i {
    color: #fff;
    transform: scale(1.15);
}

.flip-card-back .founder-contacts-list li a {
    color: rgba(255, 255, 255, .9) !important;
    text-decoration: none;
    transition: color .2s ease;
}

.flip-card-back .founder-contacts-list li a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Ссылки на карту адреса */
.office-map-link {
    cursor: pointer;
    transition: opacity .2s ease;
}

.office-map-link:hover {
    opacity: .85;
}

.office-map-link .bi-box-arrow-up-right {
    transition: transform .2s ease;
}

.office-map-link:hover .bi-box-arrow-up-right {
    transform: translateX(1px) translateY(-1px);
}

.flip-card-back .founder-contacts-list li span {
    color: rgba(255,255,255,.9) !important;
}

.flip-card-back .fw-bold,
.flip-card-back .fw-semibold,
.flip-card-back h5 {
    color: #fff !important;
}

.flip-card-back a.fw-semibold {
    color: #fff !important;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.flip-card-back a.fw-semibold:hover {
    color: #90cdf4 !important;
    text-shadow: 0 0 2px rgba(144, 205, 244, 0.2);
}

.flip-card-back .small.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.flip-card-back .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.flip-card-back .position-gold {
    color: #fbbf24 !important;
    font-weight: 600;
    font-size: .88rem;
    text-shadow: 0 0 8px rgba(251, 191, 36, .2);
    letter-spacing: .01em;
}

.flip-card-back ul a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.2s ease;
}

.flip-card-back ul a:hover {
    color: #90cdf4 !important;
}

.flip-card-back ul i,
.flip-card-back .bi-telephone-fill {
    color: rgba(255, 255, 255, 0.6) !important;
}

.flip-card-back hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}

/* === ПРОФИЛЬ ПАРТНЁРА === */

/* --- Hero профиля --- */
.profile-hero {
    position: relative;
    padding: 2.5rem 0 5.5rem;
    overflow: hidden;
}

.profile-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1f38 0%, #132d4f 25%, #1a3a5c 50%, #2c5282 100%);
    z-index: 1;
}

.profile-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(49,130,206,.15) 0%, transparent 45%),
        radial-gradient(circle at 90% 10%, rgba(66,153,225,.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(99,102,241,.06) 0%, transparent 60%);
    z-index: 1;
}

.profile-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--gl-bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.profile-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.6);
}

.profile-hero-content {
    animation: heroFadeDown .6s ease .1s both;
}

.profile-hero-avatar-wrapper {
    flex-shrink: 0;
}

.profile-hero-avatar {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 6px solid rgba(255,255,255,.35);
    box-shadow: 0 10px 40px rgba(0,0,0,.35), 0 0 60px rgba(49,130,206,.15);
    transition: transform .4s ease, box-shadow .4s ease;
}

.profile-hero-avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 28px rgba(0,0,0,.4), 0 0 80px rgba(49,130,206,.2);
}

.profile-hero-name {
    color: #fff !important;
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: .3rem;
    letter-spacing: -.015em;
    text-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.profile-hero-position {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 4px 14px;
    line-height: 1.4;
    transition: background .2s ease;
    backdrop-filter: blur(4px);
}

.profile-hero-position:hover {
    background: rgba(255,255,255,.24);
}

.profile-hero-region {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 4px 14px;
    line-height: 1.4;
    transition: background .2s ease;
    backdrop-filter: blur(4px);
}

.profile-hero-region:hover {
    background: rgba(255,255,255,.24);
}

.profile-hero-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
}

@media (max-width: 767px) {
    .profile-hero-specs {
        justify-content: center;
        gap: 10px 8px;
    }
}

.profile-spec-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 4px 14px;
    line-height: 1.4;
    transition: background .2s ease;
    backdrop-filter: blur(4px);
}

.profile-spec-tag:hover {
    background: rgba(255,255,255,.24);
}

/* Улучшенные бейджи для должности, профилей и региона */
.profile-spec-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.85) 0%, rgba(44, 82, 130, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.35rem 0.85rem;
    line-height: 1.4;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    flex-wrap: wrap;
    gap: 4px;
}

@media (max-width: 575px) {
    .profile-spec-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
        gap: 3px;
        justify-content: center;
        text-align: center;
    }

    .profile-spec-badge i {
        font-size: 0.68rem !important;
    }

    .profile-spec-badge .spec-name i.bi-info-circle {
        font-size: 0.6rem !important;
    }
}

.profile-spec-badge:hover {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.95) 0%, rgba(44, 82, 130, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.profile-spec-badge i {
    font-size: 0.7rem;
}

.profile-spec-badge .spec-name {
    cursor: help;
    position: relative;
}

.profile-spec-badge .spec-name:hover {
    opacity: 0.85;
}

.profile-spec-badge .spec-name i.bi-info-circle {
    font-size: 0.65rem;
    opacity: 0.7;
    vertical-align: middle;
}

.spec-with-tooltip {
    cursor: help;
    position: relative;
}

.spec-with-tooltip:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.spec-item-tooltip {
    cursor: help;
    position: relative;
    display: inline;
}

.spec-item-tooltip:hover {
    opacity: 0.9;
}

/* --- Панель статистики --- */
.profile-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    padding: .7rem 1.5rem;
    box-shadow: 0 6px 28px rgba(26,58,92,.12);
    flex-wrap: wrap;
    border: 1px solid rgba(26,58,92,.04);
    position: relative;
    overflow: hidden;
}

.profile-stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gl-primary), var(--gl-accent, #3182ce), #f59e0b);
    border-radius: 3px 3px 0 0;
}

.profile-stat-item {
    text-align: center;
    padding: .3rem 1rem;
    min-width: 78px;
    transition: all 0.2s ease;
}

.profile-stat-item[data-bs-toggle="tooltip"] {
    cursor: help;
}

.profile-stat-item[data-bs-toggle="tooltip"]:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.profile-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gl-primary);
    line-height: 1.3;
}

.profile-stat-label {
    font-size: 0.72rem;
    color: var(--gl-secondary);
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.profile-stats-divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, var(--gl-border), transparent);
    flex-shrink: 0;
}

.profile-exp-highlight {
    display: inline-block;
    background: linear-gradient(135deg, var(--gl-primary), var(--gl-accent, #2c5282));
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    padding: 2px 10px;
    border-radius: 8px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(26,58,92,.2);
}

/* --- Карточки профиля --- */
.profile-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(26,58,92,.07);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow .35s ease, transform .35s ease;
    border: 1px solid rgba(26,58,92,.04);
}

.profile-card:hover {
    box-shadow: 0 8px 32px rgba(26,58,92,.14);
    transform: translateY(-3px);
}

.profile-card-header {
    padding: .85rem 1.15rem .45rem;
    font-weight: 700;
    font-size: .9rem;
    color: var(--gl-primary);
    display: flex;
    align-items: center;
    gap: 9px;
    position: relative;
}

.profile-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.15rem;
    right: 1.15rem;
    height: 2px;
    background: linear-gradient(90deg, var(--gl-primary), var(--gl-accent, #3182ce), transparent);
    border-radius: 2px;
    opacity: .25;
}

.profile-card-header i {
    font-size: .88rem;
    color: #fff;
    background: linear-gradient(135deg, var(--gl-primary), var(--gl-accent, #2c5282));
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(26,58,92,.18);
}

.profile-card-body {
    padding: .65rem 1.15rem 1.15rem;
}

/* --- HTML-контент из редактора (TinyMCE) --- */
.profile-rich-content {
    line-height: 1.7;
    color: #374151;
}
.profile-rich-content p {
    margin: 0 0 .45rem;
}
.profile-rich-content p:last-child {
    margin-bottom: 0;
}
.profile-rich-content ul,
.profile-rich-content ol {
    padding-left: 1.3rem;
    margin: .3rem 0 .45rem;
}
.profile-rich-content li {
    margin-bottom: .2rem;
}
.profile-rich-content strong, .profile-rich-content b {
    font-weight: 600;
    color: #1a3a5c;
}
.profile-rich-content em, .profile-rich-content i {
    font-style: italic;
}
.profile-rich-content a {
    color: #3182ce;
    text-decoration: none;
}
.profile-rich-content a:hover {
    text-decoration: underline;
}
.profile-rich-content blockquote {
    border-left: 3px solid #3182ce;
    padding: .4rem .85rem;
    color: #6c757d;
    background: #f0f7ff;
    margin: .5rem 0;
    border-radius: 0 6px 6px 0;
}
.profile-rich-content h2,
.profile-rich-content h3,
.profile-rich-content h4 {
    font-size: .9rem;
    font-weight: 600;
    color: #1a3a5c;
    margin: .5rem 0 .25rem;
}
.profile-rich-content pre,
.profile-rich-content code {
    background: #f1f3f5;
    border-radius: 4px;
    font-size: .82rem;
    padding: 2px 5px;
}
.profile-rich-content hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: .5rem 0;
}
/* Убираем отступы у первого и последнего элементов */
.profile-rich-content > *:first-child { margin-top: 0; }
.profile-rich-content > *:last-child  { margin-bottom: 0; }

/* --- Список контактов профиля --- */
.profile-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: .85rem;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: background .2s ease;
}

.profile-contact-list li:hover {
    background: rgba(26,58,92,.035);
}

.profile-contact-list li:last-child {
    margin-bottom: 0;
}

.profile-contact-icon {
    color: #fff;
    background: var(--gl-primary-light, #4a7fb5);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    font-size: .78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}

.profile-contact-list li:hover .profile-contact-icon {
    background: var(--gl-primary);
    transform: scale(1.1);
}

.profile-contact-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.profile-contact-link:hover {
    color: var(--gl-accent);
}

/* --- Карточки публикаций --- */
.profile-post-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 2px 12px rgba(26,58,92,.06);
    transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
    border: 1px solid rgba(26,58,92,.04);
    border-left: 4px solid var(--gl-primary-light, #4a7fb5);
    position: relative;
    overflow: hidden;
}

.profile-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gl-primary), var(--gl-accent, #3182ce));
    opacity: 0;
    transition: opacity .35s ease;
}

.profile-post-card:hover {
    box-shadow: 0 8px 32px rgba(26,58,92,.14);
    transform: translateY(-3px);
    border-left-color: transparent;
}

.profile-post-card:hover::before {
    opacity: 1;
}

.profile-post-thumb {
    width: 110px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .35s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.profile-post-card:hover .profile-post-thumb {
    transform: scale(1.05);
}

.profile-post-title {
    color: var(--gl-primary);
    transition: color .2s ease;
    font-weight: 600;
}

.profile-post-title:hover {
    color: var(--gl-accent);
}

/* --- Анимации --- */
.animate-slide-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}

.animate-slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Адаптивность профиля --- */
@media (max-width: 767.98px) {
    .profile-hero {
        padding: 2rem 0 6.5rem;
    }
    .profile-hero-bg::after {
        height: 95px;
    }
    .profile-hero-avatar {
        width: 220px;
        height: 220px;
    }
    .profile-hero-name {
        font-size: 1.4rem;
    }
    .profile-stats-bar {
        padding: .5rem .85rem;
        border-radius: 14px;
    }
    .profile-stat-item {
        padding: .2rem .55rem;
        min-width: 58px;
    }
    .profile-stat-value {
        font-size: .92rem;
    }
    .profile-stat-label {
        font-size: .65rem;
    }
    .profile-stats-divider {
        height: 22px;
    }
    .profile-post-card {
        border-left-width: 3px;
        padding: .85rem;
    }
    .profile-card {
        border-radius: 14px;
        margin-bottom: .85rem;
    }
    .profile-card-header {
        padding: .7rem 1rem .35rem;
        font-size: .85rem;
    }
    .profile-card-header i {
        width: 26px;
        height: 26px;
        font-size: .8rem;
    }
    .profile-card-body {
        padding: .4rem 1rem .95rem;
    }
    .profile-contact-icon {
        width: 28px;
        height: 28px;
    }
}

/* === СТРАНИЦА БЛОГА (LIST) === */

/* --- Hero блога --- */
.blog-list-hero {
    position: relative;
    padding: 2.5rem 0 2rem;
    overflow: hidden;
}

.blog-list-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 40%, #2c5282 100%);
    z-index: 1;
}

.blog-list-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(49,130,206,.12) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(66,153,225,.08) 0%, transparent 50%);
    z-index: 1;
}

.blog-list-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 55px;
    background: var(--gl-bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.blog-list-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.55);
}

.blog-list-hero-title {
    color: #fff !important;
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: .4rem;
    letter-spacing: -.01em;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
    animation: heroFadeDown .6s ease both;
}

.blog-list-hero-subtitle {
    color: #e2e8f0;
    font-size: .95rem;
    margin-bottom: 1.5rem;
    animation: heroFadeDown .6s ease .12s both;
}

/* --- Поиск в Hero блога --- */
.blog-list-search-form {
    max-width: 520px;
    animation: heroFadeDown .6s ease .24s both;
}

.blog-list-search-form .input-group {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(6, 20, 42, 0.92);
    border: 1.5px solid rgba(66, 120, 200, 0.55);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,.06);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.blog-list-search-form .input-group:focus-within {
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 4px 24px rgba(0,0,0,.45), 0 0 0 3px rgba(251,191,36,.12);
}

.blog-list-search-form .input-group-text {
    background: transparent;
    border: none;
    padding-left: 1.1rem;
    padding-right: .5rem;
    color: rgba(160, 195, 245, 0.8);
}

.blog-list-search-form .form-control {
    border-radius: 0 !important;
    font-size: .9rem;
    padding: .72rem .4rem;
    background: transparent;
    border: none;
    color: #e8f0fe;
    font-weight: 500;
}

.blog-list-search-form .form-control::placeholder {
    color: rgba(160, 195, 245, 0.55);
    font-weight: 400;
}

.blog-list-search-form .form-control:focus {
    background: transparent;
    color: #fff;
    box-shadow: none;
}

.blog-list-search-form .btn-search-clear {
    background: transparent;
    border: none;
    color: rgba(160, 195, 245, 0.6);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 .6rem;
    cursor: pointer;
    transition: color .2s;
    align-self: center;
}

.blog-list-search-form .btn-search-clear:hover {
    color: #e8f0fe;
}

.blog-list-search-form .btn {
    border-radius: 0 10px 10px 0 !important;
    font-weight: 700;
    font-size: .88rem;
    padding: .72rem 1.4rem;
    background: linear-gradient(135deg, #1a4a8a, #2563eb);
    border: none;
    border-left: 1px solid rgba(66,120,200,.4);
    color: #fff;
    letter-spacing: .02em;
    transition: background .2s ease;
}

.blog-list-search-form .btn:hover {
    background: linear-gradient(135deg, #1e56a0, #3b82f6);
}

/* --- Анимации карточек блога --- */
.blog-list-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}

.blog-list-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card-animate {
    opacity: 0;
    transform: translateY(28px) scale(.97);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}

.blog-card-animate.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Карточка поста --- */
.blog-post-card {
    background: #fff;
    transition: box-shadow .3s ease, transform .3s ease;
    border-top: 3px solid transparent;
}

.blog-post-card:hover {
    box-shadow: 0 8px 28px rgba(26,58,92,.15) !important;
    transform: translateY(-4px);
    border-top-color: var(--gl-accent);
}

/* Отступы внутри карточки */
.blog-post-card .card-body {
    padding: 1rem 1.25rem !important;
}

@media (min-width: 768px) {
    .blog-post-card .card-body {
        padding: 1.25rem 1.5rem !important;
    }
}

/* --- Изображение поста --- */
.blog-post-img-wrap {
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
}

.blog-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-post-card:hover .blog-post-img {
    transform: scale(1.05);
}

/* --- Теги поста --- */
.blog-post-tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 600;
    color: var(--gl-primary-light);
    background: rgba(44,82,130,.07);
    border: 1px solid rgba(44,82,130,.12);
    border-radius: 20px;
    padding: 3px 11px;
    text-decoration: none;
    margin-right: 4px;
    margin-bottom: 4px;
    transition: all .2s ease;
}

.blog-post-tag:hover {
    background: rgba(44,82,130,.15);
    color: var(--gl-primary);
    transform: translateY(-1px);
}

/* --- Ссылка заголовка --- */
.blog-post-link {
    color: var(--gl-primary);
    transition: color .2s ease;
    display: block;
}

.blog-post-link:hover {
    color: var(--gl-accent);
}

/* --- Превью текста --- */
.post-preview-text {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* --- Разделительные линии --- */
.border-light {
    border-color: rgba(44, 82, 130, 0.08) !important;
}

/* --- Кнопка «Читать далее» --- */
.blog-post-read-more {
    display: inline-flex;
    align-items: center;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gl-primary-light);
    text-decoration: none;
    transition: all .2s ease;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(44, 82, 130, 0.05);
    border: 1px solid rgba(44, 82, 130, 0.1);
}

.blog-post-read-more:hover {
    color: var(--gl-accent);
    background: rgba(49, 130, 206, 0.08);
    border-color: rgba(49, 130, 206, 0.2);
    gap: 0.5rem;
}

.blog-post-read-more i {
    transition: transform .2s ease;
}

.blog-post-read-more:hover i {
    transform: translateX(3px);
}

.blog-post-read-more:hover i {
    transform: translateX(3px);
}

/* --- Адаптивность блога --- */
@media (max-width: 767.98px) {
    .blog-list-hero {
        padding: 1.75rem 0 1.5rem;
    }
    .blog-list-hero-title {
        font-size: 1.4rem;
    }
    .blog-list-hero-subtitle {
        font-size: .85rem;
    }
    .blog-post-img-wrap {
        height: 150px;
    }
}

/* === СЕКЦИЯ КАРТЫ ПАРТНЁРОВ === */
.map-section-card {
    transition: box-shadow .3s ease !important;
}
.map-section-card:hover {
    box-shadow: 0 6px 28px rgba(26,58,92,.13) !important;
}
.map-section-card .card-header:hover .map-toggle-icon {
    transform: translateY(2px);
}
.map-section-card .card-header[aria-expanded="true"] .map-toggle-icon {
    transform: rotate(180deg) !important;
}

/* === АНИМАЦИИ ГЛАВНОЙ СТРАНИЦЫ === */
.index-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}

.index-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.index-animate.index-cinematic {
    opacity: 0;
    transform: translateY(28px) scale(.988);
    transition:
        opacity .72s cubic-bezier(.16,1,.3,1),
        transform .72s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}

.index-animate.index-cinematic.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.index-animate-child {
    opacity: 0;
    transform: translateY(22px) scale(.98);
    transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1);
}

.index-animate-child.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.index-hero-overlay-stagger,
.index-hero-title-stagger,
.index-hero-subtitle-stagger {
    opacity: 0;
    transform: translateY(10px);
    will-change: opacity, transform;
}

.index-animate.visible .index-hero-overlay-stagger {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .45s ease, transform .45s ease;
    transition-delay: .04s;
}

.index-animate.visible .index-hero-title-stagger {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
    transition-delay: .16s;
}

.index-animate.visible .index-hero-subtitle-stagger {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
    transition-delay: .28s;
}

@media (max-width: 575.98px) {
    .telegram-subscribe-btn,
    .telegram-subscribe-btn-footer {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .index-animate,
    .index-animate.index-cinematic,
    .index-animate-child,
    .index-hero-overlay-stagger,
    .index-hero-title-stagger,
    .index-hero-subtitle-stagger {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* === ОНЛАЙН-ИНДИКАТОР === */
.online-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 0 rgba(34,197,94,.5);
    animation: onlinePulse 2s ease-in-out infinite;
    z-index: 2;
}

.online-badge-lg {
    width: 18px;
    height: 18px;
    border-width: 3px;
    top: 4px;
    right: 4px;
}

/* Обёртки должны быть position:relative */
.partner-avatar-wrapper,
.profile-hero-avatar-wrapper {
    position: relative;
}

@keyframes onlinePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
    50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* === ИНДИКАТОР НЕПРОЧИТАННЫХ ОБНОВЛЕНИЙ === */
.unread-badge {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 20px;
    height: 20px;
    background: #93c5fd;  /* Более светло-голубой */
    color: white;
    border: 2px solid #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0 0.3rem;
    box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.5);
    animation: unreadPulse 2s ease-in-out infinite;
    z-index: 3;
}

/* Индикатор непрочитанных сообщений в навбаре */
.navbar-notification-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background: #93c5fd;
    color: white;
    border: 2px solid rgba(26, 58, 92, 0.95);  /* Цвет фона навбара */
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0 0.25rem;
    box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.5);
    animation: unreadPulse 2s ease-in-out infinite;
    z-index: 3;
    line-height: 1;
}

/* Индикатор непрочитанных сообщений в виде точки (без текста) */
.unread-badge-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #93c5fd;  /* Светло-голубой */
    border: 2px solid #fff;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.5);
    animation: unreadPulse 2s ease-in-out infinite;
    z-index: 3;
}

/* Индикатор постов на модерации для администратора */
.admin-moderation-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background: #f59e0b;  /* Оранжевый для модерации */
    color: white;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 600;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    animation: moderationPulse 2s ease-in-out infinite;
    z-index: 3;
    line-height: 1;
}

@keyframes moderationPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

@keyframes unreadPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(147, 197, 253, 0.5);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(147, 197, 253, 0);
    }
}

/* === COOKIE CONSENT === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s ease;
    pointer-events: none;
}

.cookie-consent.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 960px;
    margin: 0 auto 1rem;
    padding: .85rem 1.5rem;
    background: rgba(15, 39, 68, .97);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.06);
    color: #e2e8f0;
    font-size: .85rem;
    line-height: 1.5;
}

.cookie-consent-text {
    flex: 1 1 auto;
    min-width: 200px;
}

.cookie-consent-text i {
    color: var(--gl-accent);
    font-size: .95rem;
}

.cookie-consent-link {
    color: #90cdf4;
    text-decoration: underline;
    text-decoration-color: rgba(144,205,244,.35);
    transition: color .2s ease, text-decoration-color .2s ease;
}

.cookie-consent-link:hover {
    color: #fff;
    text-decoration-color: #fff;
}

.cookie-consent-actions {
    display: flex;
    gap: .5rem;
    flex-shrink: 0;
}

.cookie-consent-btn-accept {
    background: var(--gl-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: .82rem;
    padding: .4rem 1.25rem;
    transition: background .2s ease, transform .15s ease;
}

.cookie-consent-btn-accept:hover {
    background: #2b6cb0;
    color: #fff;
    transform: translateY(-1px);
}

.cookie-consent-btn-decline {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    font-weight: 500;
    font-size: .82rem;
    padding: .4rem 1rem;
    transition: background .2s ease, color .2s ease;
}

.cookie-consent-btn-decline:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

@media (max-width: 575.98px) {
    .cookie-consent-inner {
        margin: 0 .5rem .5rem;
        padding: .75rem 1rem;
        border-radius: 12px;
        flex-direction: column;
        text-align: center;
        gap: .75rem;
    }
    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}

/* === FOOTER === */
.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffc107;
}

.telegram-subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .7rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(67, 147, 255, 0.22);
    background: linear-gradient(135deg, #1a4a8a 0%, #2563eb 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .01em;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22), 0 2px 8px rgba(26, 58, 92, 0.14);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.telegram-subscribe-btn:hover {
    background: linear-gradient(135deg, #1e56a0 0%, #3b82f6 100%);
    color: #ffffff !important;
    border-color: rgba(96, 165, 250, 0.34);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28), 0 4px 12px rgba(26, 58, 92, 0.18);
}

.telegram-subscribe-btn i {
    font-size: 1rem;
}

.telegram-subscribe-btn-sm {
    padding: .62rem 1.05rem;
    font-size: .88rem;
    border-radius: 12px;
}

.telegram-subscribe-btn-sm i {
    font-size: 1.75rem;
}

.telegram-subscribe-btn-footer {
    width: 100%;
    max-width: 280px;
    padding: .82rem 1.15rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #10273f 0%, #163552 55%, #1d4569 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 28px rgba(5, 16, 29, 0.26), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.telegram-subscribe-btn-footer:hover {
    background: linear-gradient(135deg, #13304d 0%, #1a3d5f 55%, #224b73 100%);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 16px 32px rgba(5, 16, 29, 0.3), 0 6px 14px rgba(0, 0, 0, 0.18);
}

.telegram-subscribe-btn-footer .telegram-subscribe-caption {
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.25;
}

.telegram-subscribe-btn-footer i {
    color: rgba(255, 255, 255, 0.82);
    font-size: 2.5rem;
}

/* Стили для бейджей последнего входа (только для админов) */
.last-login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
}

/* Статусы активности */
.last-login-online {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.last-login-recent {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
}

.last-login-week {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.3);
}

.last-login-month {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.3);
}

.last-login-old, .last-login-never {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 0 2px rgba(107, 114, 128, 0.3);
}

.admin-info-panel {
    margin-right: 8px;
}

/* Hover эффекты */
.last-login-badge:hover {
    transform: scale(1.1);
}

