/* Разблокировка скролла */
html, body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
}

/* Контейнер страницы */
.page-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Секции на всю высоту экрана */
.hero, .section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 40px;
}

/* Контент секций */
.section-content {
  max-width: 700px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 2;
}

.section.visible .section-content {
  opacity: 1;
  transform: translateY(0);
}

.section-content h2 {
  font-size: 48px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.section-content p {
  font-size: 16px;
  color: #b0b0b0;
  line-height: 1.8;
  margin: 16px 0;
}

.contact-button {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Контейнер Three.js дыма - на весь экран */
#smoke-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#smoke-container.active {
  opacity: 1;
}

#smoke-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Индикатор прокрутки слева */
.scroll-indicator {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 100;
}

.indicator-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator-point.active {
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

/* Текстовые элементы справа */
.entry-points {
  position: fixed;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  pointer-events: none;
}

.entry-item {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
  width: 240px;
}

.entry-item.active {
  opacity: 1;
  transform: translateX(0);
}

.entry-item h4 {
  font-size: 28px;
  font-weight: 300;
  color: #ffffff;
  margin: 0;
  letter-spacing: 2px;
}

/* Hero секция - центрирование */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  margin: 0 0 16px 0;
}

.hero p {
  margin: 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .entry-points {
    right: 40px;
  }
  
  .entry-item {
    width: 200px;
  }
  
  .entry-item h4 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .hero, .section {
    padding: 0 32px;
  }
  
  .section-content h2 {
    font-size: 36px;
  }
  
  .scroll-indicator {
    left: 16px;
    gap: 16px;
  }
  
  .indicator-point {
    width: 8px;
    height: 8px;
  }
  
  .entry-points {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero, .section {
    padding: 0 20px;
  }
  
  .section-content h2 {
    font-size: 28px;
  }
  
  .section-content p {
    font-size: 15px;
  }
}

/* AI Chat Section */
.ai-chat-wrapper {
  max-width: 800px;
  width: 100%;
}

.chat-container {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.chat-messages {
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

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

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.ai-message,
.user-message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: messageSlide 0.3s ease;
}

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

.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: rgba(255, 255, 255, 0.15);
}

.message-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 70%;
  font-size: 14px;
  line-height: 1.6;
  color: #e0e0e0;
}

.user-message .message-content {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.message-content.loading {
  display: flex;
  gap: 6px;
  padding: 16px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: loadingBounce 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes loadingBounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 12px 20px;
  font-size: 14px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: all 0.2s ease;
  outline: none;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-send-button {
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.chat-send-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.chat-send-button:active {
  transform: scale(0.98);
}

.chat-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Chat Responsive */
@media (max-width: 768px) {
  .chat-container {
    margin-top: 32px;
  }
  
  .chat-messages {
    min-height: 300px;
    max-height: 400px;
    padding: 16px;
  }
  
  .message-content {
    max-width: 80%;
    font-size: 13px;
  }
  
  .chat-input-wrapper {
    padding: 16px;
  }
  
  .chat-send-button {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .ai-chat-wrapper {
    padding: 0 20px;
  }
  
  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  
  .message-content {
    max-width: 85%;
    padding: 10px 14px;
  }
}