/* common-header-style.css - ВСЕ стили для шапки и модалки */

/* ШАПКА */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(20,20,20,0.95) 100%);
  color: white;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-left,
.header-right {
  flex: 1;
  min-width: 200px;
}

.header-left {
  text-align: left;
}

.header-right {
  text-align: right;
}

.header-left h4,
.header-right h4 {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 5px;
  font-weight: normal;
}

.header-left p,
.header-right p {
  font-size: 1.2rem;
  font-weight: bold;
}

.logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
}

.logo {
  height: 100px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.contact-btn {
  background: linear-gradient(135deg, #e6b450, #aa8855);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: linear-gradient(135deg, #ffcc70, #bb9966);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content-custom {
  background: #111;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.close-custom {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.modal-content-custom h3 {
  margin-bottom: 25px;
  text-align: center;
  color: #fff;
}

/* ФОРМА */
.custom-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #e6b450;
  box-shadow: 0 0 0 2px rgba(230, 180, 80, 0.2);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.submit-btn {
  background: linear-gradient(135deg, #e6b450, #aa8855);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #ffcc70, #bb9966);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===========================================
   АДАПТИВНОСТЬ ШАПКИ
   =========================================== */

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    text-align: center;
  }
  
  .header-left,
  .header-right {
    width: 100%;
    text-align: center;
  }
  
  .logo-link {
    position: static;
    transform: none;
    order: -1;
    margin-bottom: 10px;
  }
  
  .logo {
    height: 80px;
  }
  
  .modal-content-custom {
    padding: 25px 20px;
    width: 95%;
    max-width: 100%;
    margin: 20px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px;
  }
  
  .logo {
    height: 70px;
  }
  
  .contact-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}