body {
  font-family: 'Inter', sans-serif;
  background-color: #121212;
  color: #ffffff;
  margin: 0;
  padding: 0;
  text-align: center;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
h1 {
  font-size: 2.8em;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
}
p {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 25px;
}

hr {
  border-color: #333;
}

.highlight {
  color: #00ff99;
}
.section {
  padding: 60px 20px;
  border-top: 1px solid #333;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.benefit {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  text-align: left;
}
.benefit h3 {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #00ff99;
}
.free-trial {
  background-color: rgba(0, 255, 153, 0.1);
  border-top: 1px solid #00ff99;
  border-bottom: 1px solid #00ff99;
}
.cta-section {
  padding: 80px 20px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  gap: 8px;
}

.btn-primary {
  background-color: #00ff99;
  color: #121212;
}
.btn-primary:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent;
  color: #00ff99;
  border: 2px solid #00ff99;
}
.btn-secondary:hover {
  background-color: #00ff99;
  color: #121212;
  transform: translateY(-2px);
}
.intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}
footer {
  padding: 20px;
  border-top: 1px solid #333;
  font-size: 0.85em;
  opacity: 0.7;
}

footer .container {
  padding: 20px;
}

footer p {
  margin: 5px 0;
}

.contact {
  font-size: 0.9em;
  opacity: 0.8;
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.choice-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.choice-card:hover {
  transform: translateY(-5px);
  border-color: #00ff99;
  box-shadow: 0 10px 30px rgba(0, 255, 153, 0.1);
}

.choice-icon {
  font-size: 3em;
  margin-bottom: 20px;
}

.choice-card h3 {
  color: #00ff99;
  margin-bottom: 15px;
  font-size: 1.3em;
}

.choice-card p {
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

.choice-card .btn {
  width: 100%;
  max-width: 200px;
  margin-top: auto;
}

.btn-outline {
  background: transparent;
  border: 2px solid #00ff99;
  color: #00ff99;
}

.btn-outline:hover {
  background: #00ff99;
  color: #121212;
}

/* Chat styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 2% auto;
  border: 1px solid #333;
  border-radius: 12px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #333;
}

.modal-header h3 {
  margin: 0;
  color: #00ff99;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background-color: #333;
}

.modal-body {
  flex: 1;
  padding: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-align: left;
}

#chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  padding: 0;
  margin: 0;
  min-height: 0;
}

#chat-messages {
  flex: 1;
  min-height: 0;
  margin-bottom: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #00ff99;
  border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: #00cc7a;
}

/* Для Firefox */
#chat-messages {
  scrollbar-width: thin;
  scrollbar-color: #00ff99 #1e1e1e;
}

.message {
  padding: 12px 18px;
  border-radius: 18px;
  margin-bottom: 10px;
  max-width: 80%;
  box-sizing: border-box;
  font-size: 0.8rem;
  line-height: 1.5;
  animation: messageAppear 0.3s ease-out;
  flex-shrink: 0;
}

.user-message {
  background-color: #00ff99;
  color: #121212;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  margin-left: auto;
}

.assistant-message {
  background-color: #333;
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  margin-right: auto;
}

.message p {
  margin: 0;
  font-size: 0.8rem;
}

#chat-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

#chat-input {
  flex-grow: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #252525;
  color: #fff;
  font-size: 1em;
  font-family: 'Inter', sans-serif;
  min-width: 0;
}

#chat-input:focus {
  outline: none;
  border-color: #00ff99;
  box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.1);
}

#chat-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 1.1em;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background-color: #00ff99;
  color: #121212;
  min-width: 60px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

#chat-form button:hover {
  background-color: #ffffff;
  transform: translateY(-1px);
}

#chat-form button:active {
  transform: translateY(0);
}

#chat-form button:disabled {
  background-color: #666;
  color: #999;
  cursor: not-allowed;
  transform: none;
}

/* Стили для текста и иконки кнопки */
#chat-form button .btn-text {
  transition: opacity 0.3s ease;
}

#chat-form button .btn-icon {
  display: none;
  font-size: 1.1em;
}

/* Стили для индикатора загрузки */
.loading-indicator {
  opacity: 0.7;
  font-style: italic;
}

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

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  h1 { 
    font-size: 2.2em; 
  }
  h2 { 
    font-size: 1.8em; 
  }
  .benefits-grid { 
    grid-template-columns: 1fr; 
  }
  .cta-buttons { 
    flex-direction: column; 
  }
  .section {
    padding: 40px 15px;
  }
  .choice-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
  }
  
  .choice-card {
    padding: 25px 20px;
  }
  
  .choice-icon {
    font-size: 2.5em;
  }

  /* Стили для чата на мобильных */
  #chat-container {
    padding: 20px 15px;
    margin: 0 10px;
  }

  .modal-content {
    margin: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  #chat-messages {
    height: calc(100vh - 200px);
  }

  .message {
    max-width: 85%;
    font-size: 0.85rem;
  }

  .message p {
    font-size: 0.85rem;
  }

  .assistant-message {
    border-bottom-left-radius: 8px;
  }

  .user-message {
    border-bottom-right-radius: 8px;
  }

  #chat-form {
    gap: 8px;
  }

  #chat-input {
    padding: 10px 14px;
    font-size: 0.95em;
  }

  #chat-form button {
    padding: 10px 16px;
    font-size: 1em;
    min-width: 50px;
  }

  /* На мобильных скрываем текст и показываем иконку */
  #chat-form button .btn-text {
    display: none;
  }

  #chat-form button .btn-icon {
    display: block;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .choice-cards {
    gap: 15px;
  }
  
  .choice-card {
    padding: 20px 15px;
  }

  #chat-form button {
    min-width: 45px;
    padding: 10px 12px;
  }
}

@media (max-width: 360px) {
  #chat-container {
    padding: 15px 12px;
    margin: 0 5px;
  }

  #chat-messages {
    height: 200px;
  }

  #chat-form {
    gap: 6px;
  }

  #chat-input {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  #chat-form button {
    padding: 8px 10px;
    min-width: 40px;
  }
}

/* Индикатор отправки */
#chat-form button.sending {
  background-color: #666;
  pointer-events: none;
}

#chat-form button.sending::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #121212;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ai-badge {
  background: #e3f2fd;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #1976d2;
}
