/* Общие стили */
body {
    margin: 0;
    padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Высота страницы равна высоте окна */
    scroll-behavior: smooth;
}

/* Главный контейнер */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}



.grid {
    display: grid;
    grid-template-columns: 320px 1fr; /* Меню - 320px, Контент - оставшаяся ширина */
    gap: 20px; /* Отступ между колонками */
    flex-grow: 1; /* Занимает всё доступное пространство между шапкой и футером */
}

/* Стили для шапки */
header {
    background-color: #f4f4f4;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
}

/* Меню */
nav {
    background-color: #eaeaea;
    padding: 20px;
    height: auto;
    border-right: 1px solid #ccc;
}

/* Контент */
main {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Стили для футера */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-top: auto; /* Прижимает футер к низу */
}

img {
    max-width: 100%; /* Изображение не будет шире своего родительского блока */
    height: auto; /* Сохраняет пропорции изображения */
    display: block; /* Убирает возможные отступы вокруг изображения */
}


p {
  text-indent: 0; /* Отступ для первого слова в абзаце */
  line-height: 1.35em;
  font-size: 16px;
  margin: 5px;
  padding: 3px 0;
}

main {
    overflow-y: auto; /* Вертикальный скролл, если контент превышает высоту */
    height: calc(100vh - 100px); /* Высота с учётом шапки и футера (пример) */
    padding: 20px;
    background-color: #f9f9f9;
}


/* Стиль для подменю */
.submenu a.active {
    background-color: #0056b3; /* Другой цвет для подменю */
    color: white;
}


/* Базовые стили для меню */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-bottom: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #ddd;
}

/* Скрываем подменю */
nav ul li .submenu {
    display: none;
    padding-left: 20px; /* Отступ для вложенных элементов */
    list-style-type: circle;
}

/* Плавное раскрытие подменю */
nav ul li .submenu.open {
    display: block;
    animation: slideDown 0.3s ease-out;
}

/* Общие стили для активного пункта */
nav ul li a.active {
    font-weight: bold;
}

/* Активный заголовок */
nav ul li a.active-main {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Активный подзаголовок */
nav ul li a.active-sub {
    background-color: #555;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    margin-left: 15px; /* Отступ для визуального различия */
}


/* Раскрытое подменю */
nav ul li .submenu {
    display: none;
}

nav ul li .submenu.open {
    display: block;
}


@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
        .form-container {
            margin-top: 20px;
        }
        .hidden {
            display: none;
        }



/* Адаптация для мобильных устройств (например, для экранов меньше 768px) */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* Один столбец */
        /* Можно также уменьшить gap для мобильных */
        gap: 10px;
    }
}


.script-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

h2 {
  color: #3498db;
  font-size: 18px;
  margin-top: 25px;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

h3 {
  color: #16a085;
  font-size: 16px;
  margin: 15px 0 10px;
}

.step {
  margin-bottom: 30px;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fork {
  background-color: #f0f7fa;
}

.option {
  margin: 15px 0;
  padding: 10px;
  background-color: white;
  border-radius: 5px;
}

.manager, .client {
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 5px;
  line-height: 1.5;
}

.manager {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
}

.client {
  background-color: #f1f8e9;
  border-left: 4px solid #7cb342;
}

.note {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin-top: 5px;
}

.note_big {
  font-size: 15px;
  color: #333;
  font-style: italic;
  margin-top: 5px;
}



/* Дополнение к предыдущему CSS */
.if-yes, .if-no {
  display: block;
  margin-top: 8px;
  padding-left: 15px;
  position: relative;
}

.if-yes:before {
  content: "✓";
  color: #4caf50;
  position: absolute;
  left: 0;
}

.if-no:before {
  content: "✗";
  color: #f44336;
  position: absolute;
  left: 0;
}

/* Анимация для шагов */
.step {
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Подсветка важных фраз */
.manager .highlight {
  background-color: #fff9c4;
  padding: 0 3px;
  border-radius: 3px;
}


.toggle-header {
  cursor: pointer;
  user-select: none;
  color: #3498db;
  transition: all 0.3s ease;
}

.toggle-header:hover {
  color: #2980b9;
}

.toggle-content {
  padding-top: 10px;
  border-top: 1px dashed #ddd;
  margin-top: 5px;
}



/* Стили для формы авторизации */
.auth-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
}

.auth-title {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
}

.auth-subtitle {
  color: #fff;
  font-size: 22px;
  margin-top: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.auth-section-title {
  color: #16a085;
  font-size: 18px;
  margin: 15px 0 10px;
  font-weight: 500;
}

.auth-form-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  margin: 20px 0;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 25px;
}

.auth-form-header i {
  font-size: 42px;
  color: #6a11cb;
  margin-bottom: 15px;
  display: block;
}

.auth-form-header h1 {
  color: #333;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.auth-input-group {
  margin-bottom: 20px;
  position: relative;
}

.auth-input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6a11cb;
  font-size: 18px;
}

.auth-input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.auth-input-group input:focus {
  border-color: #6a11cb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.auth-options label {
  display: flex;
  align-items: center;
  color: #555;
  cursor: pointer;
}

.auth-options input {
  margin-right: 5px;
}

.auth-link {
  color: #6a11cb;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-btn-primary {
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
}

.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
}

.auth-btn-secondary {
  background: transparent;
  border: 2px solid #6a11cb;
  color: #6a11cb;
}

.auth-btn-secondary:hover {
  background: #6a11cb;
  color: white;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: #777;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd;
}

.auth-divider span {
  padding: 0 15px;
  font-size: 14px;
}

/* Модальное окно регистрации */
.auth-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-modal-content {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: authModalAppear 0.3s ease-out;
}

@keyframes authModalAppear {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
}

.auth-modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.auth-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.2s;
}

.auth-modal-close:hover {
  transform: scale(1.2);
}

.auth-register-form {
  padding: 25px;
}


.auth-success {
  padding: 35px;
}


/* Адаптивность */
@media (max-width: 576px) {
  .auth-container {
    padding: 15px;
  }
  
  .auth-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .auth-modal-content {
    width: 95%;
  }
}






.profile-wrapper {
    max-width: 920px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.profile-wrapper h2 {
    margin-top: 0;
}

.profile-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f7f8fa;
    border-radius: 12px;
}

.notice {
    margin: 12px 0 20px;
    color: #8a8f98;
}

.form {
    display: grid;
    gap: 14px;
}

.form label {
    display: grid;
    gap: 6px;
}

.form input,
.form textarea {
    padding: 10px 12px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
}

.btn-primary {
    padding: 10px 16px;
    border: none;
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1e4fd6;
}

.anketa-view {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 10px 16px;
}

.anketa-view div:first-child {
    color: #6b7280;
}

.actions {
    margin-top: 16px;
}

.btn-dark {
    display: inline-block;
    padding: 10px 16px;
    background: #111827;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
}

.btn-dark:hover {
    background: #000;
}


/* алерты для profil */
.alert { 
  display:none; 
  margin-top:12px; 
  padding:10px 12px; 
  border-radius:10px; 
  font-size:14px; 
}

.alert-success { 
  display:block; 
  background:#e7f6e7; 
  border:1px solid #a3d9a5; 
  color:#166534; 
}

.alert-error { 
  display:block; 
  background:#fde8e8; 
  border:1px solid #f5a9a9; 
  color:#7f1d1d; 
}


/* --- Стиль формы анкеты --- */
.anketa-view {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Метки и поля */
  gap: 12px 24px;
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9; /* светлый фон */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.anketa-view > div {
  display: contents; /* Чтобы сетка работала */
}

.anketa-view div:first-child {
  font-weight: 600;
  color: #333;
  align-self: center;
}

.anketa-view input[type="text"],
.anketa-view textarea,
.anketa-view input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}

.anketa-view input[type="text"]:focus,
.anketa-view textarea:focus {
  border-color: #007BFF;
  box-shadow: 0 0 6px rgba(0,123,255,0.2);
  outline: none;
}

.anketa-view textarea {
  resize: vertical;
  min-height: 60px;
}

.anketa-view a {
  color: #007BFF;
  text-decoration: none;
  font-size: 13px;
}

.anketa-view a:hover {
  text-decoration: underline;
}

.actions {
  grid-column: 1 / -1; /* кнопка под всей формой */
  text-align: center;
  margin-top: 20px;
}

.actions .btn-dark {
  background-color: #333;
  color: #fff;
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.2s;
}

.actions .btn-dark:hover {
  background-color: #555;
}



        /* Новые классы для лучшего выделения */
        .comment {
            background: #fef3c7;
            padding: 10px 16px;
            border-radius: 18px;
            margin: 12px 0;
            font-size: 0.9rem;
            color: #92400e;
            border-left: 3px solid #f59e0b;
            font-style: normal;
        }
        
        .important-block {
            background: #fee2e2;
            padding: 12px 18px;
            border-radius: 20px;
            margin: 14px 0;
            border-left: 5px solid #dc2626;
            font-weight: 600;
            color: #991b1b;
        }