* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "TT Hoves", sans-serif;
    background-color: #006eb7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.screen {
    width: 328px;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 80px;
    padding: 0 20px;
    width: 368px;
}

.screen__title {
    font-size: 26px;
    font-weight: bold;
    line-height: 30px;
    color: #ffffff;
    margin-top: 33px;
    text-align: left;
}

.card {
    display: flex;
    align-items: top;
    justify-content: flex-end;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 33px;
    padding-top: 40px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    min-height: 149px;
    transition: all 0.3s ease;
    width: 328px;
    margin-left: auto;
    margin-right: auto;
}

.card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/sad guy.png');
}

.card--problem {
    margin-top: 62px;
    color: #ffffff;
    background-image: url('images/sad guy.png');
}

.card--problem:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/sad guy.png');
}

.card--idea {
    margin-top: 33px;
    background-color: #0b91db;
    color: #ffffff;
    background-image: url('images/fine guy.png');
}

.card--idea:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/fine guy.png');
}

.card__content {
    margin-right: 16px;
    position: relative;
    z-index: 2;
}

.card__text {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.card:hover .card__text {
    opacity: 1;
}

.card__arrow {
    width: 29px;
    height: 24px;
    background-image: url('images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Прогресс бар */

.progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #006eb7;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.progress__back {
    width: 20px;
    height: 20px;
    background: url('images/arrow_back.png') no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    margin-right: 15px;
    padding: 0;
}

.progress__bar {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-left: 0;
}

.progress__text {
    margin-left: 15px;
}

.progress__back:hover {
    opacity: 0.8;
}

.progress__bar {
    height: 5px;
    width: 180px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin-left: 0;
}

.progress__indicator {
    position: absolute;
    left: 0;
    display: block;
    height: 100%;
    width: 30px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress__text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    padding-left: 20px;
}

/* Страница идеи */

.select {
    width: 100%;
    height: 56px;
    margin-top: 33px;
    padding: 0 16px;
    background-color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    color: #333333;
    appearance: none;
    background-image: url('images/arrow_down.png');
    background-position: right 17px center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-right: 40px;
}

.select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.select option {
    padding: 16px;
    background-color: #006eb7;
    color: #FFFFFF;
    padding-right: 17px;
}

.continue-btn,
.finish-btn {
    width: 328px;
    height: 44px;
    margin-top: 0;
    background: linear-gradient(to right, #27a1ea, #0183d9);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

.continue-btn:hover,
.finish-btn:hover {
    opacity: 0.9;
}

.continue-btn:active,
.finish-btn:active {
    box-shadow: inset 0px 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
}

.idea-page .progress__indicator {
    width: 60px; /* 2/6 от 180px для второй страницы */
}

/* Авторы проекта */

.subtitle {
    font-size: 16px;
    color: #ffffff;
    margin-top: 33px;
    margin-bottom: 16px;
}

.counter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    justify-content: flex-start;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 13px;
    width: 120px;
}

.counter__btn {
    width: 32px;
    height: 32px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    background-color: transparent;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.counter__btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.counter__btn:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.counter__value {
    font-size: 20px;
    color: #FFFFFF;
    min-width: 24px;
    text-align: center;
}

.author-item {
    width: 306px;
    padding-right: 11px;
    box-sizing: border-box;
}

.author-label {
    color: #FFFFFF;
    font-size: 14px;
}

.author-input {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 8px;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
}

.author-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.author-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.author-input[type="number"]::-webkit-outer-spin-button,
.author-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Обновляем индикатор прогресса для третьей страницы */
.department-page .progress__indicator {
    width: 90px; /* 3/6 от 180px */
}

/* Обновляем индикатор прогресса для четвертой страницы */
.authors-page .progress__indicator {
    width: 120px; /* 3/6 от 180px */
}

.authors-list {
    flex-grow: 1; /* Разрешаем списку растягиваться */
    overflow-y: auto;
    width: 328px;
    margin-bottom: 25px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.authors-list::-webkit-scrollbar {
    display: none;
}

/* Скрываем скроллбар в Chrome, Safari и новых браузерах */
.authors-list::-webkit-scrollbar {
    display: none;
}

/* Стилизация скроллбара для современных браузеров */
.authors-list::-webkit-scrollbar {
    width: 6px;
}

.authors-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.authors-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.authors-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Стили для страницы описания */
.input-group {
    margin-bottom: 24px;
}

.input-label {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 8px;
}

.text-input {
    width: 100%;
    height: 56px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    color: #333333;
    background: #FFFFFF;
    line-height: 1.2;
}

.text-area {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    color: #333333;
    background: #FFFFFF;
    resize: vertical;
    line-height: 1.3;
}

.file-upload {
    margin-top: 8px;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    background: #1A7EC0;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: #1570AC;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.file-hint {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Стили для состояния с выбранными файлами */
.file-input:not(:placeholder-shown) + .file-label {
    background: #FFFFFF;
    color: #333333;
}

/* Обновляем индикатор прогресса для пятой страницы */
.description-page .progress__indicator {
    width: 150px; /* 5/6 от 180px */
}

.text-input:focus,
.text-area:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.description-page .continue-btn {
    position: relative;
    margin-bottom: 80px; /* Отступ от прогресс-бар */
}

.input-group:last-of-type {
    margin-bottom: 33px; /* Отступ перед кнопкой */
}

/* Стили для страницы контактов */
.contacts-page .progress__indicator {
    width: 180px; /* 6/6 от 180px */
}

.phone-input {
    letter-spacing: 1px;
}

/* Стили для страницы благодарности */
.thanks-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
}

.thanks-page.screen {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.thanks-body {
    background: none;
}

.thanks-title {
    font-size: 26px;
    font-weight: bold;
    line-height: 30px;
    color: #FFFFFF;
    margin-bottom: 48px;
    text-align: center;
}

.thanks-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #6cff6b;
    text-align: center;
    margin-bottom: 48px;
}

/* Обновим отступ для заголовка */
.thanks-title {
    margin-bottom: 16px;
}

.finish-btn {
    margin-bottom: 16px;
}

.restart-btn {
    width: 328px;
    height: 44px;
    background: #FFFFFF;
    border: none;
    border-radius: 8px;
    color: #006eb7;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.restart-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.restart-btn:active {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(1px);
}

/* Обие стили для всех инпутов */
.text-input,
.text-area,
.author-input,
.select {
    background: transparent;
    border: none;
    border-bottom: 1px solid #FFFFFF;
    border-radius: 0;
    color: #FFFFFF;
    padding: 0 0 13px 0;
    height: auto;
    min-height: 40px;
}

/* Убираем конфликтующие стили */
.text-input,
.author-input {
    height: auto;
}

.text-area {
    min-height: 120px;
    padding-bottom: 13px;
}

/* Стили для плейсхолдеров */
.text-input::placeholder,
.text-area::placeholder,
.author-input::placeholder,
.select {
    color: rgb(255, 255, 255);
}

/* Убираем стандартный фон у select */
.select {
    background-image: url('images/arrow_down.png');
    background-position: right 17px center;
    background-repeat: no-repeat;
    padding-right: 40px;
}

/* Цвет опций в выпадающем списке */
.select option {
    background-color: #006eb7;
    color: #FFFFFF;
    padding-right: 17px;
}

/* Убираем стандартные стили фокса */
.text-input:focus,
.text-area:focus,
.author-input:focus,
.select:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

/* Убираем стандартный фон у автозаполнения */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #006eb7 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Добавляем белую стрелку для прозрачных инпутов-селектов */
select.text-input {
    appearance: none;
    background-image: url('images/arrow_down.png'); /* Белая стрелка для прозрачного фона */
    background-position: right 17px center;
    background-repeat: no-repeat;
    padding-right: 40px;
    cursor: pointer;
}


/* Обновляем стили для select и text-input */
.text-input,
.text-area,
.author-input,
select.text-input {
    display: flex;
    align-items: center;
    min-height: 40px;
    line-height: 40px; /* Для вертикального выравнивания текста */
}

select.text-input {
    appearance: none;
    background-image: url('images/arrow_down.png');
    background-position: center right 17px; /* Выавнивание стрелки по центру */
    background-repeat: no-repeat;
    background-size: 12px; /* Размер стрелки, подстройте под ваше изображение */
    padding-right: 40px;
    cursor: pointer;
}

/* Обновляем стили для option внутри select */
select.text-input option {
    padding: 10px 17px;
    line-height: 1.5;
}

/* Стили для затемнения фона при открытом select */
select.text-input:focus {
    z-index: 100;
}

select.text-input:focus::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Стили для выпадающего списка */
select.text-input option {
    background-color: #0183d9;
    color: #FFFFFF;
    padding: 15px 16px;
    margin-bottom: 30px;
}

/* Тили для последнего option в списке */
select.text-input option:last-child {
    margin-bottom: 0;
}

/* Стили при наведении на option */
select.text-input option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Убираем стандартные стили браузера */
select.text-input::-ms-expand {
    display: none;
}

select.text-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.9);
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-selected {
    background: transparent;
    border-bottom: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding: 20px 0 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.select-selected:after {
    content: '';
    width: 12px;
    height: 12px;
    background: url('images/arrow_down.png') no-repeat center/contain;
    position: absolute;
    right: 17px;
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active:after {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: #0183d9;
    border-radius: 8px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 20px 0;
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* Для Firefox */
}

.select-hide {
    display: none;
}

.select-items div {
    color: #FFFFFF;
    padding: 8px 16px;
    cursor: pointer;
}

.select-items div:not(:last-child) {
    margin-bottom: 15px;
}

.select-items div:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Затемнение фона при отрытом селекте */
.select-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    display: none;
}

/* Добавим важные стили */
.select-items {
    display: none !important;
    position: absolute !important;
    z-index: 999 !important;
}

.select-items:not(.select-hide) {
    display: block !important;
}

.select-overlay {
    z-index: 998 !important;
}

/* Стилизация скроллбара для выпадающего списка */
.select-items {
    /* Существующие стили... */
    scrollbar-width: thin; /* Для Firefox */
    scrollbar-color: rgb(255, 255, 255) transparent; /* Для Firefox */
}

/* Стили для Webkit (Chrome, Safari, новый Edge) */
.select-items::-webkit-scrollbar {
    width: 6px;
}

.select-items::-webkit-scrollbar-track {
    background: transparent;
    margin: 20px 0; /* Отступы сверху и снизу для трека */
}

.select-items::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.select-items::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Скрываем input-label на странице department */
.department-page .input-label {
    display: none;
}

.problem-department-page .input-label {
    display: none;
}

/* Стили для disabled состояния кнопок */
.continue-btn:disabled,
.finish-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #a8a8a8; 
}

/* Обновляем стили для страницы авторов */
.authors-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 80px; /* Отступ для прогресс-бара */
}

.authors-page .screen__title,
.authors-page .subtitle,
.authors-page .counter {
    flex-shrink: 0;
}

.authors-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px; /* Уменьшаем отступ */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.authors-list::-webkit-scrollbar {
    display: none;
}

/* Обновляем стили для кнопки продолжить */
.authors-page .continue-btn {
    flex-shrink: 0; /* Запрещаем сжатие */
    height: 44px; /* Фиксированная высота */
    min-height: 44px; /* Минимальная высота */
    margin: 0 auto 16px; /* Отступы */
    width: 328px;
}

/* Обновляем стили для прогресс-бара */
.authors-page .progress {
    flex-shrink: 0;
    height: 54px; /* Фиксированная высота */
}

/* Создаем скроллируемый контейнер для списка авторов и кнопки */
.authors-page .authors-list {
    padding-bottom: 20px;
}

/* Стили для инпутов */
.authors-page .author-label {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
}

.authors-page .author-input {
    width: 328px;
    height: 56px;
    background-color: #1A7EC0;
    border: none;
    border-bottom: 1px solid #FFFFFF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0 16px;
    color: #FFFFFF;
    margin-bottom: 33px;
    transition: all 0.3s ease;
}

/* Стили для заполненного инпута */
.authors-page .author-input:not(:placeholder-shown) {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

/* Стили для активного инпута */
.authors-page .author-input:focus {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
    outline: none;
}

/* Стили для лейсхолдера */
.authors-page .author-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

/* Стили для плейсхолдера при фокусе */
.authors-page .author-input:focus::placeholder {
    color: rgba(51, 51, 51, 0.4);
}

/* Стили для списка авторов */
.authors-list {
    width: 328px;
    overflow-y: auto;
    margin-bottom: 25px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.authors-list::-webkit-scrollbar {
    display: none;
}

/* Стили для кнопки */
.authors-page .continue-btn {
    display: block;
    width: 328px;
    height: 44px;
    margin: 0 auto 25px;
    background: linear-gradient(to right, #27a1ea, #0183d9);
}

/* Прогресс-бар */
.authors-page .progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

/* Обновляем стили для subtitle */
.authors-page .subtitle {
    font-size: 16px;
    font-weight: bold;
    color: #FFFFFF;
    margin-top: 33px;
    margin-bottom: 16px;
}

/* Стили для ошибки в инпуте */
.authors-page .author-input.error {
    border-bottom-color: #FF4444;
}

.authors-page .author-input.error::placeholder {
    color: rgba(255, 68, 68, 0.7);
}
/* Обновляем стили для страницы описания */
.description-page .screen__title {
    margin-bottom: 42px;
}

/* Обновляем стили для текстовой области на странице описания */
.description-page .text-area {
    width: 100%;
    height: 120px; /* Фиксированная высота */
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    color: #333333;
    background: #FFFFFF;
    resize: none; /* Запрещаем изменение размера */
    overflow-y: auto; /* Добавляем прокрутку внутри текстового поля */
}

/* Скрываем скроллбар, но оставляем функциональность */
.description-page .text-area::-webkit-scrollbar {
    display: none;
}

.description-page .text-area {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Обновляем стили для страницы описания */
.description-page {
    height: 100vh;
    padding-bottom: 80px; /* Отступ для прогресс-бара */
    box-sizing: border-box;
    overflow: hidden;
    position: relative; /* Добавляем для правильного позиционирования */
}

.description-page .content-wrapper {
    height: calc(100vh - 80px); /* Высота минус прогресс-бар */
    overflow-y: auto;
    padding-bottom: 20px; /* Добавляем отступ снизу */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Скрываем скроллбар для Chrome, Safari и Opera */
.description-page .content-wrapper::-webkit-scrollbar {
    display: none;
}

/* Фиксируем прогресс-бар внизу */
.description-page .progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Увеличиваем z-index */
    background: #006eb7;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Добавляем тень сверху */
}

/* Стили для страницы описания */
.description-page .input-label {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
}

.department-page .select-selected,
.department-page .text-input,
.description-page .text-input {
    width: 328px;
    height: 56px;
    background-color: #1A7EC0;
    border: none;
    border-bottom: 1px solid #FFFFFF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0 16px;
    color: #FFFFFF;
    margin-bottom: 33px;
    transition: all 0.3s ease;
}

.description-page .text-area {
    width: 328px;
    height: 120px;
    background-color: #1A7EC0;
    border: none;
    border-bottom: 1px solid #FFFFFF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 16px;
    color: #FFFFFF;
    margin-bottom: 33px;
    transition: all 0.3s ease;
    resize: none;
}

/* Стили для активных состояний */
.description-page .text-input:not(:placeholder-shown),
.description-page .text-area:not(:placeholder-shown) {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

.description-page .text-input:focus,
.description-page .text-area:focus {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
    outline: none;
}

/* Стили для плейсхолдеров */
.description-page .text-input::placeholder,
.description-page .text-area::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.description-page .text-input:focus::placeholder,
.description-page .text-area:focus::placeholder {
    color: rgba(51, 51, 51, 0.4);
}

/* Отступы между группами полей */
.description-page .input-group {
    margin-bottom: 33px;
}

/* Отступ от заголовка */
.department-page .screen__title,
.description-page .screen__title {
    margin-bottom: 42px;
}

.description-page .text-input.error,
.description-page .text-area.error {
    border-bottom-color: #FF4444;
}

.description-page .text-input.error::placeholder,
.description-page .text-area.error::placeholder {
    color: rgba(255, 68, 68, 0.7);
}

.text-input.error,
.text-area.error {
    border-bottom-color: #FF4444;
}

.text-input.error::placeholder,
.text-area.error::placeholder {
    color: rgba(255, 68, 68, 0.7);
}

/* Обновляем стили для страницы описания */
.department-page .select-selected,
.department-page .text-input,
.description-page .text-input,
.description-page .text-area {
    width: 328px;
    background-color: #1A7EC0;
    border: none;
    border-bottom: 1px solid #FFFFFF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 16px;
    color: #FFFFFF;
    margin-bottom: 33px;
    transition: all 0.3s ease;
    line-height: 1.5;
}

/* Стили для состояния ошибки */
.description-page .text-input.error,
.description-page .text-area.error {
    border-bottom: 2px solid #FF4444 !important;
}

/* Стили для активных состояний */
.description-page .text-input:not(.error):not(:placeholder-shown),
.description-page .text-area:not(.error):not(:placeholder-shown) {
    background-color: #FFFFFF;
    color: #333333;
}

.department-page .select-selected:focus,
.department-page .text-input:not(.error):focus,
.description-page .text-input:not(.error):focus,
.description-page .text-area:not(.error):focus {
    background-color: #FFFFFF;
    color: #333333;
}

/* Стили для новых кнопок загрузки файлов */
.file-upload {
    margin-top: 16px;
}

.file-upload-buttons {
    display: flex;
    gap: 16px;
}

.file-upload-button {
    width: 72px;
    height: 96px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #FFFFFF;
    overflow: hidden;
}

.file-upload-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.upload-icon {
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.upload-icon:before,
.upload-icon:after {
    content: '';
    position: absolute;
    background: #006eb7;
}

.upload-icon:before {
    width: 2px;
    height: 12px;
    top: 6px;
    left: 11px;
}

.upload-icon:after {
    width: 12px;
    height: 2px;
    top: 11px;
    left: 6px;
}

/* Стили для видео иконки */
.video-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM10 16.5V7.5L16 12L10 16.5Z" fill="%23FFFFFF"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

.remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.remove-file:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Стили для кнопки с превью */
.file-upload-button.has-preview {
    background: #FFFFFF;
}

/* Стили для превью файлов */
.preview-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-preview {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Обновляем стили для input type="file" */
.file-input {
    display: none;
}

/* Добавим стили для страницы контактов */
.contacts-page .text-input {
    width: 328px;
    height: 56px;
    background-color: #1A7EC0;
    border: none;
    border-bottom: 1px solid #FFFFFF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0 16px;
    color: #FFFFFF;
    margin-bottom: 33px;
    transition: all 0.3s ease;
}

.contacts-page .text-input:not(.error):not(:placeholder-shown),
.contacts-page .text-input:not(.error):focus {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

.contacts-page .text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.contacts-page .text-input:focus::placeholder {
    color: rgba(51, 51, 51, 0.4);
}

.contacts-page .text-input.error {
    border-bottom: 1px solid #FFFFFF !important;
}

.contacts-page .input-label {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
}

/* Обновляем отступ для первого input-group на странице контактов */
.contacts-page .input-group:first-child {
    margin-top: 45px;
}

/* Обновляем отступ для заголовка на странице контактов */
.contacts-page .screen__title {
    margin-bottom: 45px;
}

/* Стили для чекбокса */
.checkbox-group {
    margin-bottom: 33px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    background-color: #1A7EC0;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #1570AC;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #FFFFFF;
    border-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid #006eb7;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    color: #FFFFFF;
    font-size: 14px;
}

/* Обновляем стили для всех страниц с прогресс-баром */
.screen {
    height: 100vh;
    padding-bottom: 80px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

/* Обновляем стили для контент-врапперов на всех страницах */
.content-wrapper {
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.content-wrapper::-webkit-scrollbar {
    display: none;
}

/* Обновляем стили для кнопок загрузки файлов */
.file-upload-button {
    width: 72px;
    height: 96px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #FFFFFF;
    overflow: hidden; /* Для обрезки превью */
}

/* Стили для иконки загрузки */
.upload-icon {
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* Стили для превью */
.preview-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Скрываем иконку загрузки когда есть превью */
.file-upload-button.has-preview .upload-icon {
    display: none;
}

.page-transition {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.page-transition.fade-out {
    opacity: 0;
}

.file-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.file-preview-container {
    position: relative;
    width: 72px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
}

.file-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.preview-image, .preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-file {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.remove-file:hover {
    background: rgba(0, 0, 0, 0.9);
}

.file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 4px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.policy-link {
    color: #FFFFFF;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.policy-link:hover {
    opacity: 0.8;
}

.radio-group {
    display: flex;
    flex-direction: column; /* Изменено на вертикальное расположение */
    gap: 11px; /* Расстояние между радио-кнопками */
}

/* Базовые стили для всех text-input */
.text-input {
    width: 100%;
    height: 56px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-family: "TT Hoves", sans-serif;
    font-size: 16px;
    color: #333333;
    background: #FFFFFF;
    line-height: 1.2;
}

/* Специальные стили для инпутов на страницах с проблемами */
.problem-department-page .text-input,
.problem-authors-page .text-input,
.problem-description-page .text-input {
    width: 328px;
    height: 56px;
    background-color: #1A7EC0;
    border: none;
    border-bottom: 1px solid #FFFFFF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 0 16px;
    color: #FFFFFF;
    margin-bottom: 33px;
    margin-top: 33px;
    transition: all 0.3s ease;
}

/* Стили для активных состояний на страницах с проблемами */
.problem-department-page .text-input:not(:placeholder-shown),
.problem-authors-page .text-input:not(:placeholder-shown),
.problem-description-page .text-input:not(:placeholder-shown) {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
}

/* Стили для фокуса на страницах с проблемами */
.problem-department-page .text-input:focus,
.problem-authors-page .text-input:focus,
.problem-description-page .text-input:focus {
    background-color: #FFFFFF;
    color: #333333;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-bottom-color: transparent;
    outline: none;
}

/* Стили для плейсхолдеров на страницах с проблемами */
.problem-department-page .text-input::placeholder,
.problem-authors-page .text-input::placeholder,
.problem-description-page .text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

/* Стили для плейсхолдеров при фокусе на страницах с проблемами */
.problem-department-page .text-input:focus::placeholder,
.problem-authors-page .text-input:focus::placeholder,
.problem-description-page .text-input:focus::placeholder {
    color: rgba(51, 51, 51, 0.4);
}

.progress-bar {
    width: 0;
    height: 20px;
    background-color: #4CAF50;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.3s ease;
    margin: 10px 0;
    border-radius: 4px;
}

.progress-bar.complete {
    background-color: #4CAF50;
}

.progress-bar.error {
    background-color: #f44336;
}

.upload-success {
    color: #4CAF50;
    margin: 5px 0;
}

.upload-error {
    color: #f44336;
    margin: 5px 0;
}


