/* =========================================
   БАЗОВЫЕ СТИЛИ (NEURO DESIGN)
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Exo 2', sans-serif; 
    background: #030108; 
    color: #e0e0ff; 
    overflow-x: hidden;
}

h1, h2, h3, .logo-text { 
    font-family: 'Orbitron', sans-serif; 
    letter-spacing: 1px; 
}

/* =========================================
   НАВИГАЦИЯ (ШАПКА)
========================================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; background: rgba(3, 1, 8, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(157, 78, 221, 0.1); z-index: 1000; transition: all 0.3s ease; }
.nav-container { max-width: 1400px; width: 100%; margin: 0 auto; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; color: #9d4edd; text-shadow: 0 0 15px rgba(157, 78, 221, 0.6); }

.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-link { color: #e0e0ff; text-decoration: none; font-weight: 500; transition: all 0.3s ease; position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #9d4edd; transition: width 0.3s ease; box-shadow: 0 0 15px rgba(157, 78, 221, 0.6); }
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: #9d4edd; text-shadow: 0 0 15px rgba(157, 78, 221, 0.6); }

.nav-link-btn { background: rgba(15, 5, 30, 0.7); color: white; padding: 10px 25px; border-radius: 25px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: 1px solid #9d4edd; box-shadow: 0 0 10px rgba(157, 78, 221, 0.3); backdrop-filter: blur(5px); }
.nav-link-btn:hover { transform: translateY(-2px); background: #9d4edd; box-shadow: 0 0 20px rgba(157, 78, 221, 0.8); color: white; }

/* Выпадающее меню */
.has-dropdown { position: relative; }
.arrow-small { font-size: 0.6em; margin-left: 4px; vertical-align: middle; opacity: 0.8; }
.dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 260px; background: rgba(10, 5, 20, 0.95); backdrop-filter: blur(10px); border: 1px solid #9d4edd; border-radius: 10px; box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3); list-style: none; padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 1001; }
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 12px 20px; color: #e0e0ff; text-decoration: none; transition: all 0.3s ease; font-size: 0.95rem; }
.dropdown-menu li a:hover { background: rgba(157, 78, 221, 0.1); color: #9d4edd; padding-left: 25px; }

/* Гамбургер и мессенджеры */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: #9d4edd; transition: all 0.3s ease; border-radius: 3px; box-shadow: 0 0 15px rgba(157, 78, 221, 0.6); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.header-messengers { display: flex; gap: 12px; align-items: center; }
.messenger-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.05); color: #fff; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; }
.messenger-icon svg { width: 22px; height: 22px; transition: all 0.3s ease; }
.messenger-icon:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 0 20px rgba(157, 78, 221, 0.5); border-color: #9d4edd; color: #9d4edd; background: rgba(157, 78, 221, 0.1); }

/* =========================================
   ВВЕДЕНИЕ И ПРОГРЕСС-БАР
========================================= */
.brief-section { padding: 140px 0 100px; background: radial-gradient(circle at 50% -20%, rgba(157,78,221,0.1), transparent 70%); min-height: 100vh; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

h1 { text-align: center; color: #9d4edd; font-size: 2.5rem; margin-bottom: 10px; text-shadow: 0 0 15px rgba(157,78,221,0.6); }
.subtitle { text-align: center; color: rgba(255,255,255,0.6); margin-bottom: 50px; font-size: 1.1rem; }

.progress-wrapper { margin-bottom: 50px; }
.progress-bar { background: rgba(255,255,255,0.05); height: 6px; border-radius: 3px; position: relative; margin-bottom: 15px; overflow: hidden; }
.progress-fill { background: #9d4edd; height: 100%; transition: width 0.4s ease; box-shadow: 0 0 15px #9d4edd; }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.9rem; color: rgba(255,255,255,0.4); }
.progress-label { transition: all 0.3s; }
.progress-label.active { color: #ff00ff; text-shadow: 0 0 10px rgba(255,0,255,0.5); font-weight: bold; }

/* =========================================
   ФОРМА (GLASSMORPHISM)
========================================= */
#briefForm { background: #0a0514; padding: 40px; border-radius: 20px; border: 1px solid rgba(157,78,221,0.2); box-shadow: 0 15px 40px rgba(0,0,0,0.8), inset 0 0 20px rgba(157,78,221,0.05); }

.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-step h2 { color: #e0e0ff; margin-bottom: 30px; font-size: 1.5rem; border-bottom: 1px solid rgba(157,78,221,0.2); padding-bottom: 15px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-field { flex: 1; margin-bottom: 20px; }
.form-row .form-field { margin-bottom: 0; }

label { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.8); font-size: 0.95rem; font-weight: 500;}
small { color: rgba(255,255,255,0.4); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea { 
    width: 100%; padding: 15px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 10px; color: #fff; font-family: 'Exo 2', sans-serif; font-size: 1rem; transition: all 0.3s; 
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #9d4edd; box-shadow: inset 0 0 10px rgba(157,78,221,0.2), 0 0 10px rgba(157,78,221,0.2); background: rgba(157,78,221,0.05); }
select option { background: #0a0514; color: #fff; }

/* Чекбоксы */
.checkbox-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.checkbox-item { display: flex; align-items: center; gap: 12px; padding: 15px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; transition: all 0.3s; }
.checkbox-item:hover { background: rgba(157,78,221,0.05); border-color: rgba(157,78,221,0.3); }
.checkbox-item:has(input:checked) { background: rgba(157,78,221,0.1); border-color: #9d4edd; box-shadow: 0 0 15px rgba(157,78,221,0.3); }
.checkbox-item input { accent-color: #9d4edd; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.checkbox-item span { color: #e0e0ff; font-weight: 500; }
.checkbox-item:has(input:checked) span { color: #9d4edd; text-shadow: 0 0 5px rgba(157,78,221,0.5); }

.agreement { background: rgba(255,0,255,0.05); border-color: rgba(255,0,255,0.2); margin-top: 10px; }
.agreement:has(input:checked) { background: rgba(255,0,255,0.1); border-color: #ff00ff; box-shadow: 0 0 15px rgba(255,0,255,0.3); }
.agreement span { font-size: 0.9rem; }
.agreement a { color: #ff00ff; text-decoration: none; }
.agreement a:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(255,0,255,0.6); }

/* Кнопки формы */
.form-buttons { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); }
.btn { padding: 15px 35px; font-size: 1.1rem; border-radius: 50px; cursor: pointer; font-family: 'Exo 2', sans-serif; font-weight: 600; transition: all 0.3s; border: 1px solid transparent; }
.btn-next, .btn-submit { background: rgba(15,5,30,0.7); color: #fff; border-color: #9d4edd; margin-left: auto; box-shadow: 0 0 15px rgba(157,78,221,0.3); backdrop-filter: blur(5px); }
.btn-next:hover, .btn-submit:hover { background: #9d4edd; box-shadow: 0 0 25px rgba(157,78,221,0.6); transform: translateY(-2px); }
.btn-back { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-back:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }

/* Модальное окно */
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(3,1,8,0.9); backdrop-filter: blur(5px); z-index: 2000; align-items: center; justify-content: center; }
.modal.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { background: #0a0514; padding: 50px 40px; border-radius: 20px; border: 1px solid #9d4edd; text-align: center; max-width: 450px; width: 90%; box-shadow: 0 0 40px rgba(157,78,221,0.5); }
.modal-icon { color: #9d4edd; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(157,78,221,0.8)); }
.modal h2 { color: #e0e0ff; margin-bottom: 15px; font-size: 2rem; border: none; padding: 0; }
.modal p { color: rgba(255,255,255,0.7); margin-bottom: 30px; line-height: 1.6; }

/* =========================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
========================================= */
@media (max-width: 968px) {
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: rgba(3,1,8,0.98); width: 100%; text-align: center; transition: 0.3s; padding: 30px 0; border-bottom: 1px solid rgba(157, 78, 221, 0.2); overflow-y: auto; max-height: calc(100vh - 70px); }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .header-messengers { display: none; }
    .nav-menu.active ~ .header-messengers { display: flex; position: fixed; top: auto; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0a0514; padding: 10px 20px; border-radius: 50px; box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3); border: 1px solid #9d4edd; z-index: 1001; }
    .has-dropdown .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: none; box-shadow: none; padding: 5px 0 5px 20px; margin-top: 10px; border-left: 2px solid rgba(157, 78, 221, 0.5); }
    .dropdown-menu li a { padding: 10px 15px; font-size: 1rem; }
}

@media (max-width: 768px) {
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-field { margin-bottom: 20px; }
    #briefForm { padding: 25px 20px; }
    h1 { font-size: 2rem; }
    .form-buttons { flex-direction: column; gap: 15px; }
    .btn { width: 100%; text-align: center; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #030108; }
::-webkit-scrollbar-thumb { background: #9d4edd; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c77dff; }