:root {
  --bg: #111;
  --accent: #ff2e63;
  --accent-hover: #e91e63;
  --text: #f1f1f1;
  --gray: #222;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  padding: 1em 2em;
  background: var(--gray);
  align-items: center;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--accent);
}

.chat-launch {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6em 1.5em;
  border-radius: 25px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.2s;
}

.chat-launch:hover {
  background: var(--accent-hover);
}

/* HERO */
.hero {
  background: linear-gradient(to right, #1e1e1e, #0d0d0d);
  text-align: center;
  padding: 10vh 2em;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: var(--accent);
}

.hero p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto 2em;
}

.start-button {
  background: var(--accent);
  padding: 0.8em 2em;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.2s;
}

.start-button:hover {
  background: var(--accent-hover);
}

/* FEATURES */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4em 2em;
  gap: 2em;
  background: #181818;
}

.feature {
  background: var(--gray);
  padding: 2em;
  border-radius: 10px;
  max-width: 320px;
  text-align: center;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2em;
  font-size: 0.9em;
  background: #000;
  color: #aaa;
}

/* CHAT MODAL */
.chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.chat-window {
  background: #1a1a1a;
  width: 100%;
  max-width: 420px;
  height: 550px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 46, 99, 0.5);
  animation: fadeIn 0.3s ease-out;
  position: relative;
}

/* CHAT HEADER */
.chat-header {
  background: var(--accent);
  padding: 0.8em 1em;
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.back-button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.3em;
  cursor: pointer;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.chat-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.chat-name {
  font-weight: bold;
  color: white;
}

.chat-status {
  font-size: 0.75em;
  color: #ffe4ec;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-status .dot {
  width: 7px;
  height: 7px;
  background: #00e676;
  border-radius: 50%;
  display: inline-block;
}

/* CLEAR BUTTON */
.clear-button {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.clear-button:hover {
  opacity: 1;
}

/* CHAT BODY */
.chat-body {
  flex: 1;
  padding: 1em;
  overflow-y: auto;
  background: #101010;
  color: #eee;
  font-size: 0.95em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  scroll-behavior: smooth;
}

/* MESSAGE BUBBLES */
.message {
  display: flex;
  margin-bottom: 0.5em;
}

.message.user {
  justify-content: flex-end;
}

.message.ai {
  justify-content: flex-start;
}

.bubble {
  max-width: 80%;
  padding: 0.6em 1em;
  border-radius: 18px;
  background: #292929;
  color: #f1f1f1;
  line-height: 1.4em;
  word-break: break-word;
}

.message.user .bubble {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.ai .bubble {
  background: #2a2a2a;
  border-bottom-left-radius: 4px;
}

/* CHAT FORM */
.chat-form {
  display: flex;
  align-items: center;
  padding: 1em;
  background: #161616;
  border-top: 1px solid #2a2a2a;
  position: relative;
}

.chat-form input {
  flex: 1;
  padding: 0.85em 1.2em;
  background: transparent;
  border: 1px solid #444;
  border-radius: 18px;
  color: #eee;
  font-size: 1em;
  height: 46px;
  transition: border-color 0.2s ease;
  outline: none;
}

.chat-form input::placeholder {
  color: #888;
  font-style: italic;
}

.chat-form input:focus {
  border-color: var(--accent);
  background: #1f1f1f;
}

/* SEND BUTTON */
.chat-form button {
  background: var(--accent);
  border: none;
  margin-left: 0.6em;
  padding: 0.6em;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-form button:hover {
  background: var(--accent-hover);
}

.chat-form button svg {
  fill: white;
  width: 22px;
  height: 22px;
}

.chat-powered {
  font-size: 0.7em;
  color: #666;
  text-align: center;
  margin: 0.2em 0 0.6em;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.2em;
  }
}


.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none; /* убираем подчёркивание */
}
