@media (max-width: 768px) {
    /* Адаптация для .form-container */
    .form-container {

        width: 90% !important; /* Уменьшаем ширину контейнера */
        margin-top: 10px; /* Уменьшаем отступ сверху */
        margin-bottom: 10px;
        border-radius: 20px; /* Уменьшаем радиус скругления */
    }
    .radio-inputs{
        margin-bottom: 10px;
    }

    .h1 {
        text-align: center;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .form-title{
        margin-bottom: 30px;
    }

    .form-group{
        flex: fit-content;
    }

    .form-container .form-group input {
        padding: 10px; /* Уменьшаем отступы внутри полей ввода */
    }

    .form-container .form-submit-btn {
        width: 100%; /* Кнопка занимает всю ширину */
        padding: 10px; /* Уменьшаем отступы */
        margin-bottom: 10px;
    }

    /* Адаптация для .main-container */
    .main-container {
        flex-direction: column; /* Вертикальное расположение элементов */
        gap: 10px; /* Уменьшаем отступ между элементами */
        padding: 10px; /* Уменьшаем отступы */
    }


    .radio-inputs .radio .name {
        padding: 20px; /* Уменьшаем отступы внутри кнопок */
    }

    /* Адаптация для .dropdown */
    .dropdown {
        width: 100%; /* Выпадающий список занимает всю ширину */
    }

    .dropdown-content {
        width: 100%; /* Выпадающее меню занимает всю ширину */
        top: 100%; /* Позиционируем меню под кнопкой */
        left: 0;
    }

    /* Адаптация для .ai-response-container */
    .ai-response-container.ai-response-container {
        width: 90% !important; /* Уменьшаем ширину контейнера */
        margin-top: 10px; /* Уменьшаем отступ сверху */
    }

    .ai-response-container h2 {
        font-size: 1.2em; /* Уменьшаем размер заголовка */
    }

    #ai-response-list {
        padding-left: 15px; /* Уменьшаем отступ списка */
    }

    #ai-response-list li {
        font-size: 0.9em; /* Уменьшаем размер текста */
    }
}

strong {
    font-weight: bold;
}

/* Общие стили для страницы */
body {
    margin: 0;
    padding: 0 7px;
    color: white;
    font-family: 'Nunito', sans-serif; /* Шрифт Nunito */
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
}



/* Темная тема */
@media (prefers-color-scheme: dark) {
        body {
        background-color: #212121; /* Темный фон страницы */
        color: white; /* Белый текст для темной темы */
        }
        ::placeholder{
            color: #ffffff;
        }
        .ai-response-container{
            color: white !important;
        }
        /* Стили для заголовка */
        .ai-response-container h2 {
            color: white !important;
        }
        .ai-response-list li {
            color: white !important;
        }
        .ai-response-container.ai-response-container{
            background: #2c2c2c;
            color: white !important;
            border: #606060 1px solid;
            box-shadow: 0 4px 8px 0 rgba(97, 97, 97, 0.12), 0 1px 2px 0 rgba(200, 200, 200, 0.24);
        }
        .strong{
            color: white !important;
        }
        .li{
            color: white !important;
        }
        .form-container {
            background: #2c2c2c;
            border: #606060 1px solid;
            box-shadow: 0 4px 8px 0 rgba(97, 97, 97, 0.12), 0 1px 2px 0 rgba(200, 200, 200, 0.24);
        }
        .form-container .form-group input {
            color: white;
        }
        .radio-inputs{
            background: #2c2c2c;
            border: none;
        }
    /* Основные стили для кнопок в темной теме */
    .radio-inputs .radio .name {
        background: linear-gradient(145deg, #2d2d2d, #1f1f1f); /* Темный градиент */
        color: #e0e0e0; /* Светлый текст */
        border: 1px solid #444; /* Граница для контраста */
        box-shadow:
                3px 3px 6px rgba(0, 0, 0, 0.3),
                -3px -3px 6px rgba(255, 255, 255, 0.05); /* Тени для глубины */
        transition: all 0.2s ease;
    }

    /* Стили для активной кнопки */
    .radio-inputs .radio input:checked + .name,
    .radio-inputs .radio.active .name {
        background: linear-gradient(145deg, #3b82f6, #2563eb); /* Градиент для активной кнопки */
        color: white; /* Белый текст */
        box-shadow:
                inset 2px 2px 5px rgba(0, 0, 0, 0.3),
                inset -2px -2px 5px rgba(255, 255, 255, 0.1),
                3px 3px 8px rgba(59, 130, 246, 0.3); /* Тени для активной кнопки */
        transform: translateY(2px);
    }

    /* Стили для hover в темной теме */
    .radio-inputs .radio:hover .name {
        background: linear-gradient(145deg, #3a3a3a, #2a2a2a); /* Градиент при наведении */
        transform: translateY(-1px);
        box-shadow:
                4px 4px 8px rgba(0, 0, 0, 0.3),
                -4px -4px 8px rgba(255, 255, 255, 0.1); /* Тени при наведении */
    }

    /* Стили для выпадающего меню в темной теме */
    .dropdown-content {
        background: linear-gradient(145deg, #2d2d2d, #1f1f1f); /* Темный градиент */
        border: 1px solid #444; /* Граница для контраста */
        box-shadow:
                5px 5px 15px rgba(0, 0, 0, 0.3),
                -5px -5px 15px rgba(90, 90, 90, 0.1); /* Тени для глубины */
    }

    /* Стили для элементов выпадающего меню */
    .dropdown-content .radio .name {
        background: linear-gradient(145deg, #2d2d2d, #1f1f1f); /* Темный градиент */
        color: #e0e0e0; /* Светлый текст */
        border: 1px solid #444; /* Граница для контраста */
        box-shadow:
                3px 3px 6px rgba(0, 0, 0, 0.3),
                -3px -3px 6px rgba(255, 255, 255, 0.05); /* Тени для глубины */
    }

    /* Стили для hover элементов выпадающего меню */
    .dropdown-content .radio:hover .name {
        background: linear-gradient(145deg, #3a3a3a, #2a2a2a); /* Градиент при наведении */
        transform: translateY(-1px);
        box-shadow:
                4px 4px 8px rgba(0, 0, 0, 0.3),
                -4px -4px 8px rgba(255, 255, 255, 0.1); /* Тени при наведении */
    }

}

/* Светлая тема */
@media (prefers-color-scheme: light) {
    body {
        background-color: #e5e7e9; /* Светлый фон страницы */
        color: black; /* Черный текст для светлой темы */
    }
    ::placeholder{
        color: #171717;
    }
    .form-container {
        background: #f7f9f9;
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        border: 2px solid transparent;
    }
    .form-title {
        color: #1c2833;
        font-family: 'Nunito', sans-serif;
    }
    .form-container .form-group input {
        color: #202020;
    }

    .radio-inputs {
        background-color: rgba(179, 183, 188, 0);
    }

    .radio-inputs .radio .name{
        background: linear-gradient(145deg, #ffffff, #e6e6e6);
        color: #171717;
    }

    .radio-inputs .radio:hover .name {
        background: linear-gradient(145deg, #f0f0f0, #ffffff);
        transform: translateY(-1px);
        box-shadow:
                4px 4px 8px rgba(0, 0, 0, 0.1),
                -4px -4px 8px rgba(255, 255, 255, 0.15);
    }

    .dropdown-content{
        background: linear-gradient(145deg, #e6e6e6, #ffffff);
        box-shadow:
                5px 5px 15px rgba(0, 0, 0, 0.15),
                -5px -5px 15px rgba(255, 255, 255, 0.8);
    }

    .form-group input:-webkit-autofill, input:-webkit-autofill:focus,input:-webkit-autofill:hover,input:-webkit-autofill:active {

        -webkit-background-image: none;
        background-color: rgba(70,70,70,0) !important; /* Убираем желтый фон */
        color: black !important; /* Устанавливаем цвет текста */
    }
}

/*!* Фоновая полоса для логотипа *!*/
/*.logo-bar {*/
/*    position: fixed; !* Закрепляем полосу вверху *!*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    z-index: 1001; !* Убедимся, что полоса поверх всех элементов *!*/
/*    background-color: #202020; !* Полупрозрачный темный фон *!*/
/*    padding: 10px; !* Отступы внутри полосы *!*/
/*    display: flex;*/
/*    justify-content: center; !* Центрируем логотип *!*/
/*    align-items: center; !* Вертикальное центрирование *!*/
/*    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); !* Добавляем тень для отделения *!*/
/*    height: 60px; !* Высота полосы *!*/
/*}*/

/*!* Логотип *!*/
/*.logo {*/
/*    position: absolute;*/
/*    top: 20px;*/
/*    left: 20px;*/
/*}*/

/*.logo img {*/
/*    width: 200px; !* Размер логотипа *!*/
/*    height: auto;*/
/*}*/



/* Контейнер формы */
.form-container {
    margin-top: 20px;
    width: 60%;
    /*  */
    padding: 50px 50px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border-radius: 46px;
    margin-bottom: 10px;
}

/* Заголовок формы */
.form-title {
    font-size: 24px; /* Размер шрифта для десктопов */
    text-align: left;
    font-family: 'Nunito', sans-serif; /* Шрифт Nunito */


}

/* Стили для формы */
.form-container .form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-container .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-container .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #717171;
    font-weight: 600;
    font-size: 12px;
    gap: 10px;
    font-family: 'Nunito', sans-serif; /* Шрифт Nunito */
}

.form-container .form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif; /* Шрифт Nunito */
    background-color: transparent;
    border: 1px solid #b2babb;
    box-sizing: border-box;
    gap: 30px;
    margin-bottom: 5px;
}

.form-container .form-group input.invalid {
    border-color: #ff8787; /* Красная рамка для невалидных полей */
}

.error-message {
    color: #ff8787; /* Красный цвет */
    font-size: 12px;
    display: none; /* Скрыто по умолчанию */
    margin-top: 5px;
}

.form-container .form-group input::placeholder {
    opacity: 0.5;
}

.form-container .form-group input:focus {
    outline: none;
    border-color: rgba(72, 85, 99, 0.74);
}



.form-container .form-submit-btn {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    align-self: center;
    font-family: 'Nunito', sans-serif; /* Шрифт Nunito */
    color: #171717;
    font-weight: 600;
    width: fit-content;
    background: #bdf7ed;
    padding: 12px 16px;
    font-size: inherit;
    border: none;
    gap: 8px;
    margin-top: 8px;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
    box-sizing: border-box;
}

.form-container .form-submit-btn:hover {
    background-color: #81ddf6;

}




.form-submit-btn img {
    width: 20px; /* Размер иконки */
    height: 20px; /* Размер иконки */
}

/*
/* Основной контейнер */
.main-container {
    display: flex;
    flex-direction: row; /* Вертикальная компоновка */
    align-items: center;
    justify-content: center; /* Центрируем содержимое по горизонтали */
    gap: 20px; /* Отступ между блоками */
    margin-top:20px;
    box-sizing: border-box;
    width: 100%; /* Занимает всю ширину */
    height: 80%;
}

/* Контейнер для поиска (navigation bar) */
.search-container {

    background: linear-gradient(#212121, #212121) padding-box,
                linear-gradient(145deg, transparent 35%,#e81cff, #40c9ff) border-box;
    border: 2px solid transparent;
    padding: 32px 24px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif; /* Шрифт Nunito */
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    border-radius: 16px;
    width: 50%;
    transition: width 0.3s ease;
}

/*.search-container.collapsed {*/
/*    width: 30%;*/
/*    height: 100%;*/


/*}*/

/*!* Заголовок поиска *!*/
/*.search-title {*/
/*    font-size: 24px;*/
/*    text-align: center;*/
/*    margin-bottom: 20px;*/
/*    color: #fff;*/
/*}*/

/*!* Поле поиска *!*/
/*.search-container .form-group input {*/
/*    width: 100%;*/
/*    padding: 12px 16px;*/
/*    border-radius: 8px;*/
/*    color: #fff;*/
/*    font-family: 'Nunito', sans-serif; !* Шрифт Nunito *!*/
/*    background-color: transparent;*/
/*    border: 1px solid #414141;*/
/*    box-sizing: border-box;*/
/*}*/

/*.search-container .form-group input:focus {*/
/*    outline: none;*/
/*    border-color: #e81cff;*/
/*}*/

/*!* Результаты поиска *!*/
/*.results {*/
/*    margin-top: 20px;*/
/*    overflow-y: auto;*/
/*    flex-grow: 1;*/
/*}*/

/*.topic {*/
/*    padding: 10px;*/
/*    border: 1px solid #414141;*/
/*    border-radius: 8px;*/
/*    margin-bottom: 10px;*/
/*    background-color: #313131;*/
/*    cursor: pointer;*/
/*}*/

/*.topic:hover {*/
/*    background-color: #414141;*/
/*}*/

/*.no-results {*/
/*    text-align: center;*/
/*    color: #717171;*/
/*}*/

/*!* Окно для переписки с ИИ *!*/
/*!* Окно для переписки с ИИ *!*/
/*.chat-container {*/
/*    display: none; !* Скрыто по умолчанию *!*/
/*    flex-direction: column;*/
/*    background: linear-gradient(#212121, #212121) padding-box,*/
/*                linear-gradient(145deg, transparent 35%,#e81cff, #40c9ff) border-box;*/
/*    border: 2px solid transparent;*/
/*    padding: 32px 24px;*/
/*    border-radius: 16px;*/
/*    width: 90%;*/
/*    height: 90%;*/
/*    gap: 20px;*/
/*    box-sizing: border-box;*/
/*}*/

/*.chat-title {*/
/*    font-size: 24px;*/
/*    text-align: center;*/
/*    margin-bottom: 20px;*/
/*    color: #fff;*/
/*}*/

/*.chat-messages {*/
/*    flex-grow: 1;*/
/*    overflow-y: auto;*/
/*    border: 1px solid #414141;*/
/*    border-radius: 8px;*/
/*    padding: 10px;*/
/*    background-color: #313131;*/
/*    max-height: 600px;*/
/*    display: flex;*/
/*    box-sizing: border-box;*/
/*    flex-direction: column;*/
/*    gap: 10px; !* Добавляем отступ между сообщениями *!*/
/*}*/

/*.message {*/
/*    padding: 10px;*/
/*    margin-bottom: 10px;*/
/*    border-radius: 8px;*/
/*    max-width: 70%; !* Ограничиваем ширину сообщений *!*/
/*    box-sizing: border-box; !* Учитываем padding в общей ширине *!*/
/*}*/

/*.ai-message {*/
/*    background-color: #414141;*/
/*    color: #fff;*/
/*    margin-right: auto; !* Сообщения ИИ прижимаем к левой стороне *!*/
/*    box-sizing: border-box; !* Учитываем padding в общей ширине *!*/
/*}*/

/*.user-message {*/
/*    background-color: #007bff; !* Цвет для сообщений пользователя *!*/
/*    color: #fff;*/
/*    margin-left: auto; !* Сообщения пользователя прижимаем к правой стороне *!*/
/*}*/

/*.chat-input-container {*/
/*    display: flex;*/
/*    gap: 10px;*/
/*}*/

/*.chat-input-container input {*/
/*    flex-grow: 1;*/
/*    padding: 12px 16px;*/
/*    border-radius: 8px;*/
/*    color: #fff;*/
/*    font-family: 'Nunito', sans-serif; !* Шрифт Nunito *!*/
/*    background-color: transparent;*/
/*    border: 1px solid #414141;*/
/*    box-sizing: border-box;*/
/*}*/

/*.chat-input-container button {*/
/*    padding: 12px 16px;*/
/*    border-radius: 8px;*/
/*    background-color: #313131;*/
/*    border: 1px solid #414141;*/
/*    color: #fff;*/
/*    cursor: pointer;*/
/*}*/

/*.chat-input-container button:hover {*/
/*    background-color: #414141;*/
/*}*/



/*!* Адаптивность для мобильных устройств *!*/
/*@media (max-width: 768px) {*/

/*    .search-container.collapsed {*/
/*        width: 99%;*/
/*        margin-top:300px;*/
/*    }*/

/*    .search-container {*/
/*        justify-content: center;*/
/*        width: 99%;*/
/*    }*/



/*    .chat-container {*/
/*        width: 100%; !* Занимает всю ширину *!*/
/*        height: auto; !* Автоматическая высота *!*/
/*        margin-bottom: 20px; !* Добавляем отступ между окнами *!*/

/*    }*/

/*    .logo {*/
/*        position: fixed; !* Закрепляем логотип *!*/
/*        top: 20px; !* Отступ сверху *!*/
/*        left: 20px; !* Отступ слева *!*/
/*        z-index: 1000; !* Убедимся, что логотип поверх других элементов *!*/
/*    }*/

/*    .logo img {*/
/*        width: 150px; !* Уменьшаем размер логотипа для мобильных *!*/
/*        height: auto;*/
/*    }*/

/*    .form-container {*/
/*        width: 100%; !* Занимает всю ширину *!*/
/*        height: 50%;*/
/*        align-content: flex-start;*/
/*        justify-content: space-around;*/
/*        padding: 20px 15px; !* Уменьшаем отступы *!*/
/*    }*/

/*    .form-title {*/
/*        font-size: 18px; !* Уменьшаем размер шрифта для мобильных *!*/
/*    }*/

/*    .search-title {*/
/*        font-size: 22px; !* Уменьшаем размер шрифта для мобильных *!*/
/*    }*/

/*    .chat-title {*/
/*        font-size: 18px; !* Уменьшаем размер шрифта для мобильных *!*/
/*    }*/

/*    .chat-input-container {*/
/*        flex-direction: column; !* Вертикальная компоновка *!*/
/*    }*/

/*    .chat-input-container input {*/
/*        width: 100%; !* Занимает всю ширину *!*/
/*        margin-bottom: 10px; !* Добавляем отступ между полем ввода и кнопкой *!*/
/*    }*/

/*    .chat-input-container button {*/
/*        width: 100%; !* Занимает всю ширину *!*/
/*    }*/
/*    .main-container {*/
/*        flex-direction: column; !* Вертикальная компоновка *!*/
/*        margin-top:0px;*/
/*        height: auto; !* Убираем фиксированную высоту *!*/
/*        width: 100% !important;*/
/*        justify-content: space-around;*/
/*        display: top;*/
/*        padding-bottom: 20px;*/
/*        overflow: auto; !* Скрываем переполнение *!*/
/*    }*/
/*}*/

/*.search-button {*/
/*    margin-top: 20px;*/
/*    text-align: center;*/
/*}*/

/*.search-button button {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    gap: 8px;*/
/*    padding: 10px 20px;*/
/*    background-color: #40c9ff;*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 8px;*/
/*    cursor: pointer;*/
/*    font-family: 'Nunito', sans-serif;*/
/*    font-size: 14px;*/
/*    transition: background-color 0.3s ease;*/
/*}*/

/*.search-button button:hover {*/
/*    background-color: #e81cff;*/
/*}*/

/*.search-button img {*/
/*    width: 24px;*/
/*    height: 24px;*/
/*}*/



/*Анимация загрузки*/

.pencil {
  display: block;
  width: 3em;
  height: 3em;
}

.pencil__body1,
.pencil__body2,
.pencil__body3,
.pencil__eraser,
.pencil__eraser-skew,
.pencil__point,
.pencil__rotate,
.pencil__stroke {
  animation-duration: 3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.pencil__body1,
.pencil__body2,
.pencil__body3 {
  transform: rotate(-90deg);
}

.pencil__body1 {
  animation-name: pencilBody1;
}

.pencil__body2 {
  animation-name: pencilBody2;
}

.pencil__body3 {
  animation-name: pencilBody3;
}

.pencil__eraser {
  animation-name: pencilEraser;
  transform: rotate(-90deg) translate(49px,0);
}

.pencil__eraser-skew {
  animation-name: pencilEraserSkew;
  animation-timing-function: ease-in-out;
}

.pencil__point {
  animation-name: pencilPoint;
  transform: rotate(-90deg) translate(49px,-30px);
}

.pencil__rotate {
  animation-name: pencilRotate;
}

.pencil__stroke {
  animation-name: pencilStroke;
  transform: translate(100px,100px) rotate(-113deg);
}

/* Animations */
@keyframes pencilBody1 {
  from,
	to {
    stroke-dashoffset: 351.86;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: 150.8;
 /* 3/8 of diameter */
    transform: rotate(-225deg);
  }
}

@keyframes pencilBody2 {
  from,
	to {
    stroke-dashoffset: 406.84;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: 174.36;
    transform: rotate(-225deg);
  }
}

@keyframes pencilBody3 {
  from,
	to {
    stroke-dashoffset: 296.88;
    transform: rotate(-90deg);
  }

  50% {
    stroke-dashoffset: 127.23;
    transform: rotate(-225deg);
  }
}

@keyframes pencilEraser {
  from,
	to {
    transform: rotate(-45deg) translate(49px,0);
  }

  50% {
    transform: rotate(0deg) translate(49px,0);
  }
}

@keyframes pencilEraserSkew {
  from,
	32.5%,
	67.5%,
	to {
    transform: skewX(0);
  }

  35%,
	65% {
    transform: skewX(-4deg);
  }

  37.5%,
	62.5% {
    transform: skewX(8deg);
  }

  40%,
	45%,
	50%,
	55%,
	60% {
    transform: skewX(-15deg);
  }

  42.5%,
	47.5%,
	52.5%,
	57.5% {
    transform: skewX(15deg);
  }
}

@keyframes pencilPoint {
  from,
	to {
    transform: rotate(-90deg) translate(49px,-30px);
  }

  50% {
    transform: rotate(-225deg) translate(49px,-30px);
  }
}

@keyframes pencilRotate {
  from {
    transform: translate(100px,100px) rotate(0);
  }

  to {
    transform: translate(100px,100px) rotate(720deg);
  }
}

@keyframes pencilStroke {
  from {
    stroke-dashoffset: 439.82;
    transform: translate(100px,100px) rotate(-113deg);
  }

  50% {
    stroke-dashoffset: 164.93;
    transform: translate(100px,100px) rotate(-113deg);
  }

  75%,
	to {
    stroke-dashoffset: 439.82;
    transform: translate(100px,100px) rotate(112deg);
  }
}

/* Добавляем стили для гиперссылок */
a {
    color: #89c4ff;  /* Цвет ссылок */
    text-decoration: none;  /* Убираем подчеркивание */
    box-sizing: border-box;
    overflow-wrap: break-word; /* Перенос слов, если они не помещаются */
}

a:hover {
    color: #ff6600;  /* Цвет ссылок при наведении */
    overflow-wrap: break-word; /* Перенос слов, если они не помещаются */
    text-decoration: underline;  /* Подчеркивание при наведении */
    box-sizing: border-box;
}




.radio-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-radius: 1rem;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    user-select: none;
    width: 100%;
    font-size: 14px;
    gap: 0.5rem;
    margin-bottom: 10px;
}

.radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
  position: relative;
}

.radio-inputs .radio input {
  display: none;
}

.radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  border: 1px solid rgb(178, 186, 187);
  padding: 0.7rem 0;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s ease;
  overflow: hidden;
}

.radio-inputs .radio input:checked + .name {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.1),
    3px 3px 8px rgba(59, 130, 246, 0.3);
  transform: translateY(2px);
}

/* Hover effect */


.radio-inputs .radio:hover input:checked + .name {
  transform: translateY(1px);
}

/* Dropdown */
.dropdown {
    position: relative;
    flex: fit-content;
    width: 100%;
    display: flex;
    transition: 1s ease-in-out;
}

.dropdown-content {
    display: none; /* Скрываем выпадающее меню по умолчанию */
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 0.7rem;
    padding: 5px;
    margin-top: 0.5rem;
    z-index: 1;
    transition: 1s ease-in-out;
}


/* Класс для отображения выпадающего меню */
.dropdown-content.open {
    display: block;
    flex: fit-content;
    transition: 1s ease-in-out;

}

.dropdown-content .radio {
    margin: 0.5rem;
    flex: fit-content;
    padding: 2px;
    transition: 1s ease-in-out;
}

/* Анимации и эффекты загрузки */
@keyframes select {
  0% {
    transform: scale(0.95) translateY(2px);
  }
  50% {
    transform: scale(1.05) translateY(-1px);
  }
  100% {
    transform: scale(1) translateY(2px);
  }
}

@keyframes multi-particles-top {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  40% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0);
    box-shadow:
      0 0 6px transparent,
      20px -20px 0 transparent,
      -20px -20px 0 transparent;
  }
}

@keyframes multi-particles-bottom {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  40% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0);
    box-shadow:
      0 0 8px transparent,
      20px 20px 0 transparent,
      -20px 20px 0 transparent;
  }
}

@keyframes sparkle-bg {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes ripple {
  0% {
    opacity: 1;
    transform: scale(0.2);
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(2.5);
  }
}

@keyframes border-glow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}



/* Стили для контейнера с результатом */
.ai-response-container {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Стили для заголовка */
.ai-response-container h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

/* Стили для списка */
#ai-response-list {
    padding-left: 20px;
    list-style-type: decimal;
}

#ai-response-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

/*.form-container .form-submit-btn:disabled {*/
/*    background-color: #ccc; !* Серый цвет для неактивной кнопки *!*/
/*    cursor: not-allowed; !* Курсор "недоступно" *!*/
/*}*/

/* Звездочка для обязательных полей */
.required {
    color: #ff7070; /* Красный цвет */
}

/* Сообщение об ошибке */
.error-message {
    color: #ff7070; /* Красный цвет */
    font-size: 12px;
    display: none; /* Скрыто по умолчанию */
    margin-top: 5px;
}
.work-type-error {
    color: #ff7070;
}

.error-message .email-error {
    color: #ff7070;
}


.blurred {
    filter: blur(3px); /* Применяет размытие */
    pointer-events: none; /* Отключает взаимодействие */
    transition: filter 0.2ms ease; /* Добавляет плавный переход */
}

button:disabled {
    user-select: none;
    user-focus: none;
    background-color: #ccc; /* Серый цвет для неактивной кнопки */
    cursor: not-allowed;    /* Изменение курсора при наведении */
    opacity: 0.7;           /* Немного затемнить кнопку */
}

button:disabled:hover {
    background-color: #ccc; /* Оставляем серый цвет */
    cursor: not-allowed;   /* Курсор "запрещено" */
    opacity: 0.7;          /* Сохраняем затемнение */
}


