html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

.footer {
    background: #f8f9fa; /* Цвет фона футера */
    padding: 20px;
    text-align: center;
}


.social_media_links a {
    text-decoration: none;
    font-size: 18px;
    color: #4984df;
    margin-right: 5px;
    
    
}
.weight-3{
    width: 50px;
    color: black;
}

.social_media_links{
    padding: 15px 0;
    
}



.short_contact_list a{

    text-decoration: none;
}



.short_contact_list a {
    color: #7c7c7c;
    
}
.short_contact_list i {
    color: #000000;
}

.main-header-area {
    padding-top: 0;
}
.logo {
    height: 50px;
     text-align: center;
            
        }
.bg-active{
    background: #292929;
    color: white;

}
.n-hover:hover {
    background: #f7f7f7;
}


.telep{
    color: #212529;
}
.telep:hover{
    color: #212529;
}

table th {
    position: sticky;
    top: 0; /* верхняя позиция */
    background: #fff; /* цвет фона, чтобы текст не перекрывался */
    z-index: 2; /* чтобы заголовок был выше остальных элементов */
}

.table-responsive {
    max-height: 500px; /* высота блока с прокруткой */
    overflow-y: auto;  /* вертикальная прокрутка */
}



/* ========= OFFCANVAS (Bootstrap 4 Compatible) ========= */

.offcanvas-custom {
    position: fixed;
    top: 0;
    right: -380px; /* скрыт */
    width: 380px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transition: right .3s ease;
    z-index: 1055;
    overflow-y: auto;
    border-left: 1px solid #ddd;
}

.offcanvas-custom.open {
    right: 0;
}

.offcanvas-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    display: none;
}

.offcanvas-backdrop-custom.show {
    display: block;
}

/* КНОПКА */
.btn-gradient {
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(270deg, #007bff, #00a3ff);
  background-size: 400% 400%;
  border: none;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: gradientShift 4s ease infinite, glowPulse 2s ease-in-out infinite;
}

.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.6);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 123, 255, 0.4); }
  50% { box-shadow: 0 0 25px rgba(0, 123, 255, 0.7); }
}

/* ========= ЧАТ ========== */

#chat-box {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 400px;
  padding: 10px;
  background: #f4f4f8;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

.assistant-msg, .user-msg {
  border-radius: 18px;
  padding: 10px 14px;
  max-width: 75%;
  margin-bottom: 8px;
  word-wrap: break-word;
  font-size: 0.95rem;
  line-height: 1.3;
  display: inline-block;
}

/* Ассистент */
.assistant-msg {
  background: #ffffff;
  color: #333;
  border: 1px solid #e2e2e2;
  align-self: flex-start;
}

/* Пользователь */
.user-msg {
  background: #4a90e2;
  color: white;
  align-self: flex-end;
}

/* Точки печати ассистента */
.typing {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 8px;
  align-self: flex-start;
  border: 1px solid #e2e2e2;
}

.typing span {
  width: 6px;
  height: 6px;
  background: #888;
  display: block;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}



.assistant-btn {
    margin: 6px 0;              /* Отступы между кнопками */
    padding: 10px 15px;          /* Внутренние отступы */
    border: none;
    border-radius: 10px;         /* Закругленные углы */
    background: linear-gradient(90deg, #007bff, #00a3ff); /* Красиво градиент */
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;                 /* Кнопка на всю ширину контейнера */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.assistant-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background: linear-gradient(90deg, #007bff, #00a3ff);
}

#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px; /* ← ПЕРЕМЕЩЕНО СЮДА */
    max-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 99999;
    display: none;
    animation: fadeIn 0.4s ease;
}

#cookie-banner p {
    font-size: 14px;
    margin: 0 0 10px;
    color: #333;
}

#cookie-banner a {
    color: #0d6efd;
    text-decoration: underline;
    font-size: 14px;
}

#cookie-banner .cb-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#cookie-banner button {
    flex: 1;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

#cookie-accept {
    background: #0d6efd;
    color: #fff;
}

#cookie-decline {
    background: #e5e5e5;
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}




@media (max-width: 768px) {
  #cookie-banner {
    bottom: 100px; /* высота кнопки записи + запас */
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

.navbar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}