body {
    font-family: 'Unbounded';
    margin: 0;
    padding: 0;
    background-color: #f1f3f4;
    color: #151515;
    box-sizing: border-box;
    }

    html {
        margin: 0 !important;
        padding: 0;
    }
    img {
    max-width: 100%;
    display: block;
    }
    a {
    text-decoration: none;
    color: inherit;
    }
    .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    }
    .section-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.25);
    padding: 40px;
    margin-bottom: 30px;
    }
    .section-title {
    color: #2563EB;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 35px 0;
    }
    .section-subtitle {
    color: #000000;
    font-size: 14px;
    text-align: center;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    max-width: 800px;
    }
    .btn-primary {
    background-color: #2563EB;
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
    }
    .btn-primary:hover {
    background-color: #2563EB;
    }
    .btn-outline {
    border: 1px solid #ffffff;
    color: #ffffff;
    border-radius: 20px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    }
    .btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
    }
    .show-more-btn {
    background-color: #2563EB;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px auto 0 auto;
    width: fit-content;
    box-shadow: 0px 0px 15px 0px rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    }
    .show-more-btn:hover {
    background-color: #1d4ed8;
    }

    .top-banner {
    width: 100%;
    margin: 0 auto;
    }
    .banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    }
    /* === HEADER === */
    .site-header {
    background-color: #2563EB;
    padding: 20px 0;
    box-shadow: 0px 10px 40px 0px rgba(109, 141, 173, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    }
  
    #header {
      position: sticky;
      top: 0;
      z-index: 1000;
    }
  
    .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    }
  
    .main-nav ul {
      display: flex;
      gap: 30px;
      flex-grow: 1;
      color: white;
      list-style: none;
      font-weight: 400;
  }
  
    .logo-wrapper {
    position: relative;
    width: 182px;
    height: 40px;
    }
    .logo-part {
    position: absolute;
    }
    .vertical-divider {
    width: 1px;
    height: 20px;
    background-color: #ffffff;
    margin: 0 20px;
    }
    .main-nav {
    display: flex;
    gap: 30px;
    flex-grow: 1;
    margin-left: 40px;
    }
    .nav-link {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s ease;
    }
    .nav-link:hover {
    opacity: 0.8;
    }
    .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    }
    .icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    }
    .icon-group img {
    width: 24px;
    height: 24px;
    }
    .mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    }
    .mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    }
    .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    }

            .ai-chat-container {
            width: 100%;
            display: flex;
            justify-content: center;
            position: relative;
            background: white;
            }

.ai-chat-messages {
  width: 100%;
  max-width: 760px;
  margin: 30px auto 0 auto;
  box-sizing: border-box;
  min-height: calc(100vh - 160px);
  padding-bottom: 180px;
}

.space-header-wrap.space-header-float {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  position: fixed !important;
}

.ai-chat-msg {
  display: flex;
  margin-bottom: 33px;
  font-size: 16.7px;
  width: 100%;
  position: relative;
}

.ai-chat-msg.user { justify-content: flex-end; }
.ai-chat-msg.bot { justify-content: flex-start; }

.ai-chat-bubble {
  padding: 10px 14px;
  line-height: 1.45;
  border-radius: 6px;
  max-width: 75%;
  word-wrap: break-word;
}

.ai-chat-msg.user .ai-chat-bubble {
  background: #2563EB;
  color: #fff;
}

.ai-chat-msg.bot .ai-chat-bubble {
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #111;
}

.ai-copy-icon {
  position: absolute;
  width: 16px;
  height: 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: auto;
  z-index: 10;
}

.ai-chat-msg:hover .ai-copy-icon { opacity: 1; }

.ai-chat-msg.user .ai-copy-icon { right: 3px; bottom: -20px; }
.ai-chat-msg.bot .ai-copy-icon { right: 163px; bottom: -20px; }

.ai-chat-input-bg {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, #ffffff 80%, rgba(255,255,255,0.85) 85%, rgba(255,255,255,0) 100%);
  z-index: 9990;
  pointer-events: none;
}

.ai-chat-input-area {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  max-width: 95%;
  display: flex;
  gap: 10px;
  z-index: 9999;
  transition: all 0.3s ease;
  
}

/* центрирование при отсутствии сообщений */
.ai-chat-input-area.center-screen {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}

.ai-chat-input {
  flex: 1;
  padding: 25px 18px; 
  font-size: 18px;    
  border-radius: 12px;
  border: 1px solid #ccc;
  resize: none;
  height: 80px;       
  font-family: 'Unbounded';
  line-height: 1.4;
  box-sizing: border-box;
}
.ai-chat-input::placeholder {
  text-align: left;
  opacity: 1;
}
.ai-chat-send {
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: #2563EB;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Unbounded';
}

.ai-chat-placeholder {
  position: absolute;
  top: 50px;
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  pointer-events: none;
}

.ai-chat-container .ai-chat-placeholder { display: none; }
.ai-chat-container.no-messages .ai-chat-placeholder {
    display: block;
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
}


@media (max-width: 768px) {
  .ai-chat-input-area,
  .ai-chat-messages { width: 95%; }
  .ai-chat-messages { min-height: calc(100vh - 200px); }
  .ai-chat-bubble { max-width: 90%; }
  .ai-chat-msg.bot .ai-copy-icon { right: 12px; }
}


/* Tablet Small (max-width: 768px) */
@media (max-width: 768px) {
  .ai-chat-input-area {
    width: 95%;
    bottom: 20px;
    gap: 8px;
  }
  
  .ai-chat-input {
    padding: 18px 14px;
    font-size: 16px;
    height: 70px;
  }
  
  .ai-chat-send {
    padding: 0 16px;
    font-size: 14px;
  }
  
  .ai-chat-messages {
    min-height: calc(100vh - 200px);
    padding-bottom: 150px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 765px) {
  .ai-chat-input-area {
    width: 95%;
    max-width: 100%;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    gap: 8px;
  }
  
  .ai-chat-input {
    padding: 20px 14px;
    font-size: 16px;
    height: 64px;

  }
  
  .ai-chat-input::placeholder {
    font-size: 14px;
  }
  
  .ai-chat-send {
    padding: 0 14px;
    font-size: 13px;
    min-width: 80px;
  }
  
  .ai-chat-messages {
    min-height: calc(100vh - 180px);
    padding-bottom: 130px;
    margin-top: 20px;
  }
  
  .ai-chat-bubble {
    max-width: 95%;
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .ai-chat-msg {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .ai-copy-icon {
    width: 16px;
    height: 16px;
  }
  
  .ai-chat-msg.user .ai-copy-icon {
    right: 3px;
    bottom: -20px;
  }
  
  .ai-chat-msg.bot .ai-copy-icon {
    right: 3px;
    bottom: -20px;
  }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .ai-chat-input-area {
    bottom: 10px;
    gap: 6px;
  }
  
  .ai-chat-input {
    padding: 12px 10px;
    font-size: 16px;
    height: 55px;
  }
  
  .ai-chat-send {
    padding: 0 12px;
    font-size: 12px;
    min-width: 70px;
  }
  
  .ai-chat-messages {
    min-height: calc(100vh - 160px);
    padding-bottom: 120px;
  }
  
  .ai-chat-bubble {
    padding: 8px 10px;
    font-size: 13px;
  }
}

.ai-chat-send:hover {
  background-color: #1d4ed8;  
}