

.logo {
    max-width: 50px;
    height: auto;
    transition: all 0.3s ease;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .logo {
        max-width: 140px;
    }
}

/* Эффекты при наведении */
.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}


:root {
    --dark-blue: #142850;  /* Изменён на более синий */
    --gold: #c5a047;
    --light-gold: #e8d9a9;
    --white: #ffffff;
    --off-white: #f8f9fa;
} 
.bg-prestige {
    background-color: var(--dark-blue); /* #142850 */
}

.navbar-custom {
    background-color: var(--dark-blue) !important;
}

body {
    font-family: 'Times New Roman', Georgia, serif;
    color: var(--dark-blue);
    background-color: var(--off-white);
    line-height: 1.6;
}

/* Навигация */

nav.navbar.navbar-expand-lg.navbar-dark.bg-prestige {
    border-bottom: 1px solid rgba(197, 160, 71, 0.3) !important;
}


.navbar-brand {
    font-weight: 700;
}

/* Активное состояние (оставляем) */
.nav-btn.active,
.nav-btn:focus {
    background: linear-gradient(135deg, rgba(197, 160, 71, 0.3) 0%, rgba(20, 40, 80, 0.7) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Исправленные стили для иконок */
.nav-icon {
    color: #f4d03f !important; /* Ярко-золотой */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); /* Подчёркиваем */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-size: 1.2rem;
    margin-right: 10px;
    transition: all 0.3s ease;
    background: rgba(20, 40, 80, 0.7) !important; /* Тёмно-синий фон */
    border: 2px solid #c5a047 !important; /* Золотая рамка */
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.nav-icon::before {
    display: block;
    content: "";
    font-family: "bootstrap-icons"; /* Форсируем шрифт */
}

.nav-text {
    color: #ffffff !important; /* Чистый белый */
    font-weight: 500; /* Средняя жирность */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Лёгкая тень */
}

/* Резервные иконки через псевдоэлементы */
.bi-balance::before { content: "\F1BE"; } /* Код иконки весов */
.bi-graph-up::before { content: "\F128"; } /* Код иконки графика */

/* Цвет при наведении */
.nav-btn:hover .nav-icon {
    color: #f8d56b !important;
    background: rgba(197, 160, 71, 0.2);
    border-color: #f8d56b;
}

/* Активное состояние */
.nav-btn.active .nav-icon {
    background: rgba(197, 160, 71, 0.3);
    border-color: #f4d03f;
    animation: pulse 1.5s infinite;
}

/* Основные стили шапки */
nav.navbar.bg-prestige {
    min-height: 70px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-family: 'Times New Roman', Georgia, serif;
    transition: height 0.3s ease, padding 0.3s ease; /* Плавные переходы */
}

/* Логотип */
nav.navbar.bg-prestige .logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease; /* Плавное изменение размера */
}

/* Текст */
nav.navbar.bg-prestige .nav-text,
nav.navbar.bg-prestige .navbar-brand {
    font-family: inherit;
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

/* Только ОДИН !important для критичного свойства */
nav.navbar.bg-prestige {
    font-family: 'Times New Roman', Georgia, serif !important; /* Только если конфликтует с Bootstrap */
}

/* Выравнивание всех основных секций */
#services, 
#tactics, 
#practice, 
#problem-officers {
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

/* Для контейнеров внутри секций */
.section-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0;
}


/* Для подвала */
footer.bg-prestige {
    font-family: 'Times New Roman', Georgia, serif !important;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 71, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 71, 0); }
}

/* Подчеркивание (модифицируем) */
.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #c5a047;
    transition: all 0.3s;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-btn:hover::after,
.nav-btn.active::after {
    width: calc(100% - 2rem); /* Учитываем padding */
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 71, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(197, 160, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(197, 160, 71, 0); }
}


/* Анимация для мобильной версии */
@media (max-width: 991px) {
    .nav-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}
    
.nav-btn:hover {
    border-left: 4px solid #c5a047;
    transform: none;
}

.nav-link {
    position: relative; 
}

/* Анимированная полоса под вкладками меню*/
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffc642;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Состояния */
.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 100% !important;
    animation: underline-pulse 1.5s infinite;
}

@keyframes underline-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/*  Полоса под шапкой меню - эффект "пульсирующего золота"*/
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c5a047 0%, transparent 100%);
    background-size: 200% 100%;
    animation: header-line 3s linear infinite;
    opacity: 0.7;
}

@keyframes header-line {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

  
/* Карточки */
.service-card {
    border-left: 3px solid var(--gold);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.violations-card {
    background-color: rgba(10, 31, 61, 0.03);
    border-top: 2px solid var(--gold);
    height: 100%;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Фото адвоката */
.lawyer-photo {
    width: 250px;           /* Фиксированная ширина */
    height: 350px;          /* Фиксированная высота */
    object-fit: cover;      /* Обрезка без искажений */
    border: 2px solid #c5a047;
    border-radius: 5px;     /* Лёгкое скругление углов */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: block;         /* Устраняет подёргивания */
    margin: 0 auto;         /* Центрирование */
}

/* Эффекты при наведении */
.lawyer-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(197, 160, 71, 0.3);
    filter: brightness(1.05); /* Лёгкое осветление */
}

/* Для мобильных */
@media (max-width: 768px) {
    .lawyer-photo {
        width: 180px;
        height: 220px;
    }
}

/* Заголовки */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background-color: var(--gold);
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #142850;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: 2px solid #c5a047;
  }
  
  .back-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background-color: #c5a047;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  
  .back-to-top svg {
    width: 24px;
    height: 24px;
  }

/* Адаптивность */
@media (max-width: 768px) {
    .lawyer-photo {
        width: 180px;
        height: 240px;
    }
    
    .btn-gold, .btn-outline-gold {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Переопределение жёлтого цыета */
.text-warning {
    color: #dca500 !important; /* Тёмно-золотой */
  }
  
  /* Для hover-эффектов */
  .text-warning:hover {
    color: #ffda6b !important;
  }

/* Стили для карусели выигранных дел */

#wonCasesCarousel {
    margin: 30px auto;
    max-width: 900px;
}

.case-card {
    padding: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    width: 800px;
    height: 350px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #6c757d;
}

.carousel-indicators .active {
    background-color: #ffc107;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.judge-link {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s;
}
.judge-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

.case-link {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s;
}
.case-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}
.case-link i {
    margin-left: 5px;
    font-size: 0.9em;
}
/* Добавьте в ваш CSS файл */
a.text-primary {
    color: #0d6efd;
    text-decoration: none;
}
a.text-primary:hover {
    text-decoration: underline;
}
a.text-success {
    color: #198754;
    text-decoration: none;
}
a.text-success:hover {
    text-decoration: underline;
}

/* ==================== */
/*       КНОПКИ         */
/* ==================== */

.btn-gold {

    /* background-color: #FFD700 !important; */
    color: #2C3E50 !important;
    border: 2px solid #FFD700 !important;
    padding: 0px 0px;
    /*font-size: 18px; */
    border-radius: 7px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 0px;
}

.btn-gold:hover {
    background-color: #142850 !important;
    border-color: #FFD700 !important;
    color: #ebeff3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
 

.btn-outline-gold {
    --bs-btn-color: #FFD700;
    --bs-btn-border-color: #FFD700;
    --bs-btn-bg: #142850;
    --bs-btn-hover-bg: #FFD700;
    --bs-btn-hover-color: #142850;
    --bs-btn-active-bg: #FFD700;
    --bs-btn-active-color: #142850;
}

/* Новый класс на основе btn-outline-gold */
.btn-outline-gold-reverse {
  --bs-btn-color: #FFD700;          /* золотой текст */
  --bs-btn-border-color: #FFD700;   /* золотая обводка */
  --bs-btn-hover-color: #142850;    /* синий текст при наведении */
  --bs-btn-hover-bg: #FFD700;       /* золотой фон при наведении */
  --bs-btn-hover-border-color: #FFD700;
  --bs-btn-active-color: #142850;
  --bs-btn-active-bg: #FFD700;
  --bs-btn-active-border-color: #FFD700;
  --bs-btn-disabled-color: #FFD700;
  --bs-btn-disabled-border-color: #FFD700;
  background-color: #142850 !important; /* синий фон по умолчанию */
  transition: all 0.3s ease;
}

/* Для иконки внутри кнопки */
.btn-outline-gold-reverse .bi {
  transition: inherit;
}


.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.btn-gold:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.btn-gold::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-gold:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

/* Кнопка консультации 10 000 руб. */
.btn-consult {
    background-color: #ffc107; /* Цвет как у bg-warning */
    color: #142850; /* Текстовый цвет */
    border: 2px solid #142850; /* Граница */
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 10px; /* Закругление углов */
    transition: all 0.3s ease; /* Плавный переход */
  }
  /* Стиль при наведении */
  .btn-consult:hover {
    background-color: #142850; /* Цвет фона при наведении */
    color: #ffc107; /* Цвет текста при наведении */
    border-color: #ffc107; /* Цвет границы при наведении */
  }
  .btn-consult:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Кнопка список нарушений */
.btn-violation-sheet {
    background-color: #142850; /* Цвет как у bg-warning */
    color: #ffc107; /* Текстовый цвет */
    border: 2px solid #ffc107; /* Граница для соответствия стилю */
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 10px; /* Закругление углов */
    transition: all 0.3s ease; /* Плавный переход */
    text-decoration: none !important;
  }
  
  /* Стиль при наведении */
  .btn-violation-sheet:hover {
    background-color: #ffc107; /* Цвет фона при наведении */
    color: #142850; /* Цвет текста при наведении */
    border-color: #142850; /* Цвет границы при наведении */
  }
  .btn-violation-sheet:active {
    transform: translateY(0);
    box-shadow: none;
}


@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* ========================== */
/* ТАКТИКА и стратегия ЗАЩИТЫ */
/* ========================== */

/* Выровнять аккордеон по ширине с другими блоками */
.accordion.tactics-accordion {
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;  
}

/* Убираем чёрный кружок с галочкой */
.tactic-checkmark {
    display: none;
}

/* Анимация кнопок аккордеона */
.tactic-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--bs-warning-rgb), 0.3) !important;
}

.tactic-btn:not(.collapsed) {
    background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
    box-shadow: 0 0 0 2px rgba(var(--bs-warning-rgb), 0.3);
}

.tactic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa !important;
    border-color: rgba(var(--bs-warning-rgb), 0.7) !important;
}

.tactic-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: rgba(var(--bs-warning-rgb), 1);
    transition: width 0.5s ease;
}

.tactic-btn:hover::after {
    width: 100%;
}

/* Анимация иконок */
.tactic-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.tactic-btn:hover .tactic-icon {
    transform: scale(1.1);
    color: rgba(var(--bs-warning-rgb), 0.8) !important;
}

/* Эффект при открытии */
.accordion-button:not(.collapsed) .tactic-icon {
    animation: pulse 0.5s ease;
    color: rgba(var(--bs-warning-rgb), 1) !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Специфичные иконки для разделов */
#tacticGoal .tactic-icon i { color: rgba(var(--bs-warning-rgb), 1); }
#tacticDocs .tactic-icon i { color: rgba(var(--bs-warning-rgb), 1); }
#tacticAnalysis .tactic-icon i { color: rgba(var(--bs-warning-rgb), 1); }
#tacticProcedural .tactic-icon i { color: rgba(var(--bs-warning-rgb), 1); }
#tacticPublicity .tactic-icon i { color: rgba(var(--bs-warning-rgb), 1); }
#tacticExtra .tactic-icon i { color: rgba(var(--bs-warning-rgb), 1); }

/*  ПОДВАЛ  */
/* Уменьшение межстрочных расстояний */
footer p, 
footer .small {
    line-height: 1.3; /* Было обычно 1.5 */
    margin-bottom: 0.3rem; /* Уменьшил отступ между параграфами */
}

footer .row {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Для заголовка в подвале */
footer h5 {
    margin-bottom: 0.4rem !important;
}

/* Статистические карточки */


