* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    background: #11121b;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Контейнер для свечений */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    pointer-events: none;
}

.glow-1 { top: -10%; left: -10%; background: radial-gradient(circle, #0052d4 0%, #4364f7 100%); }
.glow-2 { top: 30%; right: -10%; background: radial-gradient(circle, #6e0dd0 0%, #9a4eff 100%); }
.glow-3 { top: 40%; right: 40%; background: radial-gradient(circle, #0e61c0 0%, #526eeb 100%); }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 100;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 60%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo a { text-decoration: none; color: inherit; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 8px;
    height: 42px;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s;
    position: relative;
    text-decoration: none;
}

.profile-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); }

.profile-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.profile-avatar svg { width: 16px; height: 16px; }
.profile-info { display: flex; flex-direction: column; justify-content: center; }
.profile-name { font-size: 0.8rem; font-weight: 600; line-height: 1.2; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-email { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); line-height: 1.2; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-arrow { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); transition: transform 0.3s ease; margin-left: 4px; }
.profile-btn.active .profile-arrow { transform: rotate(180deg); }

.login-btn { text-decoration: none; padding: 0 16px; gap: 8px; font-weight: 600; font-size: 0.9rem; color: #ffffff; }

.menu-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s;
}

.menu-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
.menu-btn.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
.menu-icon { width: 20px; height: 20px; }

.side-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 200;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-panel.active { right: 0; }

.close-btn { align-self: flex-end; background: none; border: none; color: rgba(255, 255, 255, 0.6); font-size: 2rem; cursor: pointer; line-height: 1; margin-bottom: 40px; transition: color 0.2s; }
.close-btn:hover { color: #ffffff; }
.panel-nav { display: flex; flex-direction: column; gap: 20px; }
.panel-link { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: color 0.2s, padding-left 0.2s; }
.panel-link:hover { color: #a5b4fc; padding-left: 5px; }
.content { flex: 1; padding-top: 100px; }
.content-nav { display: flex; justify-content: center; gap: 35px; padding: 20px 40px; flex-wrap: wrap; }
.nav-section-link { color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 4px; font-size: 0.95rem; font-weight: 500; transition: color 0.2s ease; }
.nav-section-link:hover { color: rgba(255, 255, 255, 0.95); }

.footer-island {
    position: relative;
    bottom: auto;
    left: 0;
    width: 100%;
    background: #07080c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 40px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    box-sizing: border-box;
}

.footer-links { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.footer-link { color: rgba(255, 255, 255, 0.6); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-link:hover { color: #ffffff; }
.footer-text { font-size: 0.85rem; color: rgba(255, 255, 255, 0.35); letter-spacing: 0.02em; }

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: rgba(10, 11, 16, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }

.dropdown-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-avatar svg { width: 30px; height: 30px; }
.dropdown-user-details { display: flex; flex-direction: column; overflow: hidden; }
.fio { font-size: 1.1rem; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pochta { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu { display: flex; flex-direction: column; gap: 8px; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); color: #ffffff; }
.dropdown-item i { width: 20px; font-size: 1.1rem; color: rgba(255, 255, 255, 0.5); text-align: center; transition: color 0.2s; }
.dropdown-item:hover i { color: #a5b4fc; }
.dropdown-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 10px 0; }

.dropdown-item.logout { border-color: rgba(239, 68, 68, 0.15); background: rgba(239, 68, 68, 0.05); color: rgba(239, 68, 68, 0.8); }
.dropdown-item.logout:hover { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: rgba(239, 68, 68, 1); }
.dropdown-item.logout i { color: rgba(239, 68, 68, 0.6); }
.dropdown-item.logout:hover i { color: rgba(239, 68, 68, 1); }

/* ===== КАРУСЕЛЬ ===== */
.carousel-section { max-width: 1000px; margin: 0 auto 60px; }
.carousel-container { position: relative; overflow: hidden; border-radius: 24px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
.carousel-track { display: flex; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.carousel-slide { min-width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 40px; box-sizing: border-box; gap: 30px; }
.slide-content { flex: 1; }
.slide-badge { display: inline-block; padding: 4px 12px; background: rgba(165, 180, 252, 0.15); color: #a5b4fc; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 15px; }
.slide-content h2 { font-size: 2rem; margin-bottom: 15px; line-height: 1.2; }
.slide-content p { font-size: 1rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 25px; line-height: 1.5; }
.slide-image { flex: 0 0 300px; height: 220px; border-radius: 16px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.slide-image img { width: 100%; height: 100%; object-fit: cover; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 10; }
.carousel-btn:hover { background: rgba(255, 255, 255, 0.2); }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }
.carousel-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: background 0.2s; }
.carousel-dots .dot.active { background: #a5b4fc; }

/* ===== ЕБАНАЯ КАРУСЕЛЬ ===== */
.carousel-section { 
    max-width: 1100px;
    margin: 0 auto 60px; 
    padding: 0 30px;
    box-sizing: border-box;
}

.carousel-wrapper {
    position: relative; 
    width: 100%;
}

.carousel-container { 
    position: relative; 
    overflow: hidden; 
    border-radius: 24px; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
}

.carousel-track { 
    display: flex; 
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

.carousel-slide { 
    min-width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 40px; 
    box-sizing: border-box; 
    gap: 30px; 
}

.slide-content { flex: 1; }

.slide-badge { 
    display: inline-block; 
    padding: 4px 12px; 
    background: rgba(165, 180, 252, 0.15); 
    color: #a5b4fc; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    margin-bottom: 15px; 
}

.slide-content h2 { font-size: 2rem; margin-bottom: 15px; line-height: 1.2; }
.slide-content p { font-size: 1rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 25px; line-height: 1.5; }

.slide-image { 
    flex: 0 0 300px; 
    height: 220px; 
    border-radius: 16px; 
    overflow: hidden; 
    background: rgba(255, 255, 255, 0.05); 
}

.slide-image img { width: 100%; height: 100%; object-fit: cover; }

/* Кнопки */
.carousel-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: white; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    cursor: pointer; 
    font-size: 1.2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s; 
    z-index: 10;
}

.carousel-btn:hover { 
    background: rgba(255, 255, 255, 0.2); 
    transform: translateY(-50%) scale(1.05);
}

/* Выносим стрелки за пределы контейнера (влево и вправо) */
.carousel-btn.prev { left: -22px; } /* Половина кнопки (44/2) выходит за левый край */
.carousel-btn.next { right: -22px; } /* Половина кнопки (44/2) выходит за правый край */

/* Точки (внутри контейнера) */
.carousel-dots { 
    position: absolute; 
    bottom: 15px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 8px; 
    z-index: 10;
}

.carousel-dots .dot { 
    width: 8px; 
    height: 8px; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.4); 
    cursor: pointer; 
    transition: background 0.2s; 
}

.carousel-dots .dot.active { background: #a5b4fc; }

/*Детальные странички ботов*/
.btn-bot-cta {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #4364f7, #6e0dd0);
    color: #ffffff;
    text-decoration: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(67, 100, 247, 0.5);
    transition: all 0.3s ease;
}

.btn-bot-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(67, 100, 247, 0.7);
}

/* Адаптация для планшетов и маленьких ноутбуков */
@media (max-width: 1024px) {
    .header { padding: 16px 24px; }
    .profile-name, .profile-email { max-width: 100px; }
}