.chat-container {
    width: 100%;
    max-width: 800px;
    background-color: #0a0a0f;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 215, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 80vh;
  }

  .chat-header {
    background: linear-gradient(91.2deg, #2dffb5 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
    color: #000;
  }

  .chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.125rem;
  }

  .chat-messages::-webkit-scrollbar {
      width: 8px;
  }

  .chat-messages::-webkit-scrollbar-track {
      background: rgba(44, 44, 47, 0.5);
      border-radius: 10px;
      margin: 5px 0;
  }

  .chat-messages::-webkit-scrollbar-thumb {
      background: linear-gradient(91.2deg, #2dffb5 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
      border-radius: 10px;
      border: 2px solid rgba(12, 12, 15, 0.5);
      transition: background 0.3s ease;
  }

  .chat-messages::-webkit-scrollbar-thumb:hover {
      filter: brightness(1.2);
  }

  /* Для Firefox */
  .chat-messages {
      scrollbar-width: thin;
      scrollbar-color: #2dffb5 #2c2c2f;
  }

  /* Показываем скроллбар при наведении на контейнер */
  .chat-container:hover .chat-messages::-webkit-scrollbar-thumb {
      border-color: rgba(12, 12, 15, 0.3);
  }

  .message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
    position: relative;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .bot-message {
    background-color: var(--second-color);
    border: 1px solid var(--second-border-color);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
  }

  .user-message {
    background-color: #1a1a2a;
    border: 1px solid #3a3a4a;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
  }

  .quick-replies {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background-color: var(--second-color);
    flex-wrap: wrap;
  }

  .quick-reply {
    background-color: rgba(35, 255, 242, 0.1);
    border: 2px solid var(--button-color);
    color: var(--button-color);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.0625rem;
    font-weight: 500;
  }

  .quick-reply:hover {
    background-color: rgba(35, 255, 242, 0.2);
    transform: translateY(-1px);
  }

  .chat-input-container {
    padding: 15px 20px;
    background-color: var(--second-color);
    border-top: 1px solid var(--base-border-color);
    display: flex;
    gap: 10px;
  }

  .chat-input {
    flex: 1;
    background-color: #15151f;
    border: 2px solid var(--base-border-color);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1.125rem;
    outline: none;
    transition: border-color 0.2s ease;
  }

  .chat-input:focus {
    border-color: var(--button-color);
  }

  .send-button {
    background: linear-gradient(91.2deg, #2dffb5 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
    color: #000;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform 0.2s ease;
  }

  .send-button:hover {
    transform: scale(1.05);
  }

  .site-button {
    background: linear-gradient(91.2deg, #2dffb5 8.77%, #00d1ff 54.81%, #ba8fff 92.52%);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
  }

  .site-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 255, 242, 0.3);
  }

  .typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background-color: var(--second-color);
    border: 1px solid var(--second-border-color);
    border-radius: 18px;
    align-self: flex-start;
    margin-top: 5px;
  }

  .typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--button-color);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
  }

  .typing-dot:nth-child(1) { animation-delay: 0s; }
  .typing-dot:nth-child(2) { animation-delay: 0.2s; }
  .typing-dot:nth-child(3) { animation-delay: 0.4s; }

  @keyframes typing {
    0%, 100% { transform: scale(0.6); opacity: 0.4; }
    50% { transform: scale(1); opacity: 1; }
  }

  @media (max-width: 768px) {
    .chat-container {
      height: 90vh;
      margin: 10px;
    }
    .message {
      max-width: 90%;
    }
    .quick-replies {
      justify-content: center;
    }
    .chat-header {
      font-size: 1.125rem;
    }
    .chat-messages {
      font-size: 1.0625rem;
    }
  }
  @media (max-width: 500px) {
    main {
      padding: 10px;
    }
    .chat-container {
      height: 70vh;
    }
    .chat-header {
      font-size: 1.0625rem;
    }
    .chat-messages {
      font-size: 1rem;
    }
    .quick-reply {
      font-size: 1rem;
    }
    .chat-input-container {
      padding: 5px 8px;
    }
    .chat-input {
      font-size: 1rem;
      padding: 10px 15px;
    }
  }