/* wnioski-mobile.css - Мобильная адаптация для страницы wnioski_praktyki.php */

/* ankieta-mobile.css - Мобильная адаптация для страницы анкеты */

/* ===== ОБЩИЕ СТИЛИ ДЛЯ МОБИЛЬНОГО ХЕДЕРА ===== */
@media (max-width: 1024px) {
  /* HEADER - Мобильная версия */
  header {
    top: 10px;
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 40px);
    position: fixed;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    left: 50%;
    transform: translateX(-50%);
  }

  body.dark-theme header {
    background: rgba(45, 45, 45, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .top-left-icons {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .top-left-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
  }

  .top-left-icons img:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }

  /* Скрываем основную навигацию на мобильных */
  .main-nav {
    display: none !important;
  }

  /* Бургер меню */
  .burger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
  }

  .burger-line {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  body.dark-theme .burger-line {
    background-color: #fff;
  }

  .burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  /* Боковое меню */
  .side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 90px 30px 30px;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  }

  body.dark-theme .side-menu {
    background: rgba(45, 45, 45, 0.98);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.4);
  }

  .side-menu.open {
    right: 0;
  }

  .side-menu nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .side-menu a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
  }

  body.dark-theme .side-menu a {
    color: #fff;
  }

  .side-menu a:hover {
    color: #0d4269;
    background: rgba(13, 66, 105, 0.1);
    border-color: rgba(13, 66, 105, 0.2);
    transform: translateX(5px);
  }

  body.dark-theme .side-menu a:hover {
    color: #4a9eff;
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.2);
  }

  .close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #333;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1002;
  }

  body.dark-theme .close-menu {
    color: #fff;
  }

  .close-menu:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
  }

  body.dark-theme .close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  /* Overlay для размытия фона */
  .overlay-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
  }

  .overlay-blur.active {
    display: block;
  }

  /* Секция формы */
  .form-section {
    padding: 100px 20px 40px !important;
    margin-top: 90px !important;
    background-color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .form-title {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    color: #333 !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  .form-intro {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 30px !important;
    color: #666 !important;
    text-align: center !important;
    padding: 0 10px !important;
  }

  /* Форма */
  .praktyki-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    width: 100% !important;
  }

  .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .form-group label {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
  }

  .form-input, .form-select, .form-textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    background-color: white !important;
    font-size: 16px !important;
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
  }

  .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none !important;
    border-color: #0d4269 !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(13, 66, 105, 0.1) !important;
  }

  .form-textarea {
    resize: vertical !important;
    min-height: 120px !important;
  }

  /* Строки формы - вертикальное расположение на мобильных */
  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
  }

  .form-row .form-group {
    flex: 1 !important;
  }

  /* Кнопка отправки */
  .form-submit {
    width: 100% !important;
    background-color: #0d4269 !important;
    color: #fff !important;
    padding: 20px !important;
    border: none !important;
    border-radius: 15px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 15px rgba(13, 66, 105, 0.3) !important;
  }

  .form-submit:hover {
    background-color: #09304c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 66, 105, 0.4) !important;
  }

  /* Сообщение об успехе */
  .success-message {
    background-color: #d4edda !important;
    color: #155724 !important;
    padding: 20px !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    border: 1px solid #c3e6cb !important;
    text-align: center !important;
  }

  /* Секция входа */
  .login-section {
    background-color: #f8f9fa !important;
    padding: 20px !important;
    border-bottom: 1px solid #e9ecef !important;
    margin-top: 0 !important;
  }

  .login-container {
    max-width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .login-link {
    background-color: #0d4269 !important;
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
  }

  .login-link:hover {
    background-color: #09304c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
  }

  .login-icon {
    width: 18px !important;
    height: 18px !important;
    filter: invert(1) !important;
  }

  /* Футер */
  .site-footer {
    padding: 30px 20px !important;
    text-align: center !important;
    background: #f8f9fa !important;
    margin-top: 0 !important;
  }

  .footer-container {
    font-size: 16px !important;
    color: #666 !important;
    font-weight: 500 !important;
  }
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
  header {
    height: 65px;
    padding: 0 15px;
    width: calc(100% - 30px);
  }

  .top-left-icons img {
    width: 26px;
    height: 26px;
  }

  .burger-menu {
    width: 30px;
    height: 22px;
  }

  .form-section {
    padding: 90px 15px 30px !important;
    margin-top: 85px !important;
  }

  .form-title {
    font-size: 22px !important;
  }

  .form-intro {
    font-size: 15px !important;
  }

  .form-input, .form-select, .form-textarea {
    padding: 14px 18px !important;
    font-size: 15px !important;
  }

  .form-submit {
    padding: 18px !important;
    font-size: 17px !important;
  }
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
  header {
    top: 8px;
    height: 60px;
    padding: 0 12px;
    width: calc(100% - 24px);
  }

  .top-left-icons {
    gap: 10px;
  }

  .top-left-icons img {
    width: 24px;
    height: 24px;
  }

  .burger-menu {
    width: 28px;
    height: 20px;
  }

  .burger-line {
    height: 2.5px;
  }

  .side-menu {
    width: 90%;
    padding: 80px 20px 20px;
  }

  .side-menu a {
    font-size: 18px;
    padding: 14px 18px;
  }

  .close-menu {
    top: 20px;
    right: 20px;
    font-size: 28px;
    width: 45px;
    height: 45px;
  }

  .form-section {
    padding: 80px 12px 25px !important;
    margin-top: 80px !important;
  }

  .form-title {
    font-size: 20px !important;
  }

  .form-intro {
    font-size: 14px !important;
    padding: 0 5px !important;
  }

  .form-group label {
    font-size: 15px !important;
  }

  .form-input, .form-select, .form-textarea {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .form-submit {
    padding: 16px !important;
    font-size: 16px !important;
  }

  .login-link {
    padding: 10px 25px !important;
    font-size: 15px !important;
  }
}

/* Темная тема для мобильных */
@media (max-width: 1024px) {
  body.dark-theme .form-section {
    background: transparent !important;
  }

  body.dark-theme .form-title {
    color: #ffffff !important;
  }

  body.dark-theme .form-intro {
    color: #e0e0e0 !important;
  }

  body.dark-theme .form-group label {
    color: #ffffff !important;
  }

  body.dark-theme .form-input,
  body.dark-theme .form-select,
  body.dark-theme .form-textarea {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: #ffffff !important;
  }

  body.dark-theme .form-input:focus,
  body.dark-theme .form-select:focus,
  body.dark-theme .form-textarea:focus {
    border-color: #4a9eff !important;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1) !important;
  }

  body.dark-theme .form-submit {
    background-color: #4a9eff !important;
  }

  body.dark-theme .form-submit:hover {
    background-color: #3a8eef !important;
  }

  body.dark-theme .success-message {
    background-color: rgba(212, 237, 218, 0.1) !important;
    color: #d4edda !important;
    border-color: rgba(195, 230, 203, 0.2) !important;
  }

  body.dark-theme .login-section {
    background: transparent !important;
    border-bottom-color: #444 !important;
  }

  body.dark-theme .login-link {
    background-color: #4a9eff !important;
  }

  body.dark-theme .login-link:hover {
    background-color: #3a8eef !important;
  }

  body.dark-theme .site-footer {
    background: #1a1a1a !important;
  }

  body.dark-theme .footer-container {
    color: #b0b0b0 !important;
  }

  body.dark-theme .top-left-icons img {
    filter: invert(1);
  }
}

/* Скрываем мобильные элементы на десктопе */
@media (min-width: 1025px) {
  .burger-menu {
    display: none !important;
  }
  
  .side-menu {
    display: none !important;
  }
  
  .overlay-blur {
    display: none !important;
  }
}