@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;700;900&display=swap');

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основной фон */
body {
    background-color: #E1E1E1;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Главный контейнер */
.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование по горизонтали */
}

.notification-container {
    position: fixed;
    top: 6%;
    right: 3%;
    width: 25rem;
    z-index: 15;
}

.notification {
    background-color: rgba(217, 217, 217, 0.9);
    color: #333;
    padding: 15px;
    border: 1px solid rgba(189, 189, 189, 0.25);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: Arial, sans-serif;
    font-size: 14px;
    position: relative;
}

.notification .close-notification {
    background: none;
    border: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

/* Первая строка - большой контейнер */
.first-container {
    display: flex;
    justify-content: center;
}


.large-container {
    width: 76.1875rem;
    height: 40.375rem;
    top: 0.5rem;
    background-color: #585656; /* Цвет фона */
    border-radius: 50px 50px 50px 50px; /* Скругление только верхних углов */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.large-container .header-svg {
    display: flex; /* Включаем Flexbox */
    justify-content: center; /* Центруем по горизонтали */
    align-items: center; /* Центруем по вертикали */
    position: relative;
    height: 100px;
}

.large-container .header-svg img {
    position: absolute; /* Абсолютное позиционирование */
    top: 1rem; /* Отступ сверху */
    z-index: 11 !important;
}

.large-container .title {
    width: 307px;
    height: 63px;
    background-color: rgba(217, 217, 217, 0.13); /* Полупрозрачный фон */
    border-radius: 17px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 1rem;
}


.large-container .header_menu {
    /* Контейнер для верхнего меню */
    display: flex;
    justify-content: flex-end; /* Прижимаем кнопки к правому краю */
    /*gap: 1rem;*/
    /*margin-right: 2rem;*/
    z-index: 10;
    position: absolute;
    top: 1rem;
    left: 6.75rem;
}

.large-container .header_menu .menu-list {
    /* Список элементов меню */
    display: flex;
    list-style: none; /* Убираем маркеры списка */
    padding: 0;
    margin: 0;
    gap: 1.25rem; /* Отступы между кнопками */
}

.large-container .header_menu .item {
    /* Элемент меню */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.large-container .header_menu .item a {
  /* Важно: position: relative, чтобы вложенные .icon-container и span могли
     позиционироваться абсолютно относительно ссылки */
  position: relative;

  /* Размер ссылки ровно под кружок */
  width: 3.5rem;
  height: 3.5rem;

  /* Сбрасываем лишние флексы */
  display: block;
  /* Остальные ваши стили */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}



.large-container .header_menu .item a .icon-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 3.5rem;

  /* Остальные ваши стили для .icon-container */
  background-color: #D9D9D9;
  border-radius: 1.1875rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.large-container .header_menu .item a .icon-container svg {
    /* Иконка внутри контейнера */
    width: 2.1875rem;
    height: 2.1875rem;
    stroke-width: 1.5; /* Тонкие линии */
    stroke: #333; /* Цвет иконки */
}

.large-container .header_menu .item a:hover .icon-container {
    /* Эффект при наведении */
    background-color: rgba(100, 100, 100, 0.5);
}

.large-container .header_menu .item a span {
  position: absolute;
  top: calc(100% + 0.25rem); /* чуть ниже иконки */
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.59);
  font-size: 0.625rem;
  font-weight: 400;
  transition: font-weight 0.3s, color 0.3s;
  text-align: center;
  white-space: nowrap;
}

.large-container .header_menu .item.selected a .icon-container {
    /* Стиль для выбранного элемента */
    background-color: #FFFFFF;
}

.large-container .header_menu .item.selected a span {
    font-weight: 700; /* Жирный текст для выбранного элемента */
}


.large-container .white_container {
    width: 76.1875rem; /* 76.1875 * 16px ≈ 1219px */
    height: 34.9375rem; /* 34.9375 * 16px ≈ 559px */
    background-color: #ffffff; /* Цвет фона */
    position: absolute; /* Абсолютное позиционирование */
    top: 15%; /* Отступ сверху */
    left: 0; /* Выровнять по левому краю родителя */
    border-radius: 50px 50px 50px 50px; /* Скругление, если нужно */
}

.large-container .white_container .instructions {
    width: 22.3125rem;
    background-color: rgba(217, 217, 217, 0.25); /* Цвет с прозрачностью */
    flex-shrink: 0; /* Отключаем сжатие элемента */
    position: absolute; /* Позиционируем элемент */
    top: 3.81rem; /* Расположим по центру вертикально */
    right: 3.62rem;
    /*transform: translate(-50%, -50%); !* Центрируем относительно центра *!*/
    border-radius: 20px; /* Скругленные углы */
    padding: 16px; /* Внутренние отступы */
    box-sizing: border-box; /* Учитываем padding в ширине и высоте */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Отступ между блоками */
}

.large-container .white_container .instructions .title {
    width: 10.375rem;
    height: 2.0625rem;
    position: absolute; /* Относительно родительского контейнера */
    top: 1.31rem;
    left: 50%; /* Позиция по горизонтали на 50% от родителя */
    transform: translateX(-50%); /* Сдвиг на половину ширины элемента влево */
    border-radius: 1.25rem;
    background: #D9D9D9;
    color: #000;
    text-align: center;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.large-container .white_container .instructions .instructions-list {
    margin-top: 3.5rem; /* Отступ сверху */
    font-weight: 200;
    padding-left: 20px;
    line-height: 1.125rem;
}

.large-container .white_container .instructions .instructions-list li {
    margin-bottom: 1rem; /* Отступ между элементами списка */
}

.large-container .white_container .instructions .instructions-list li strong {
    font-weight: 700;
}

.large-container .white_container .menu {
    width: 100%; /* Наследуется ширина от white_container */
    /*display: flex;*/
    position: absolute; /* Если используется абсолютное позиционирование для других элементов */
    left: 50%; /* Позиция по горизонтали на 50% от родителя */
    top: 7.19rem;
    transform: translateX(-50%); /* Сдвиг на половину ширины элемента влево */
    align-items: center; /* Центрирует кнопки по вертикали */
    display: flex;
    flex-direction: column;
    gap: 1.06rem; /* Расстояние между элементами списка */
}

.large-container .white_container .menu .menu-list {
    list-style: none; /* Убираем маркеры списка */
    padding: 0.5rem 1rem;
}

.large-container .white_container .menu .menu-item {
    margin-bottom: 1rem; /* Отступ между элементами списка */
}

.large-container .white_container .menu .menu-button {
    display: flex;
    align-items: center; /* Центрируем иконку и текст по вертикали */
    justify-content: start; /* Иконка и текст остаются слева */
    gap: 0.5rem; /* Отступ между иконкой и текстом */
    padding: 0.75rem 1.5rem; /* Внутренний отступ кнопки */
    width: 17rem; /* Фиксированная ширина кнопки */
    height: 3.125rem;
    border: none;
    border-radius: 1.25rem; /* Скругление углов кнопки */
    background-color: #f5f5f5; /* Цвет фона */
    font-size: 1rem;
    cursor: pointer;
    text-align: left; /* Текст выравнивается по левому краю */
    transition: background-color 0.3s;
    position: relative; /* Для корректной работы иконок и текста */
    text-decoration: none; /* Убираем подчеркивание */
    color: black;
}

.large-container .white_container .menu .menu-button:hover {
    background-color: #d9d9d9; /* Цвет при наведении */
}

.large-container .white_container .menu .menu-button svg {
    width: 2.1875rem;
    height: 2.75rem;
    stroke: #333; /* Цвет иконки */
}

/* Текст в кнопке */
.large-container .white_container .menu .menu-button span {
    flex-grow: 1; /* Текст занимает оставшееся пространство */
    text-align: center; /* Центрируем текст внутри кнопки */
    font-weight: 700;
}

/* Специальная кнопка "Назад" */
.large-container .white_container .menu .menu-back-button {
    margin-top: 8rem; /* Отступ от последнего menu-button */
    width: 9.25rem; /* Фиксированная ширина кнопки */
    height: 2.5rem; /* Фиксированная высота кнопки */
    position: absolute; /* Делаем кнопку абсолютно позиционированной */
    top: 50%; /* Центрируем по вертикали относительно родителя */
    left: 50%; /* Центрируем по горизонтали относительно родителя */
    transform: translateX(-50%); /* Сдвиг на половину ширины элемента влево */
    flex-shrink: 0;
    background: #DFF070; /* Цвет фона */
    border: none;
    border-radius: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Убираем подчеркивание */
    color: black;
}

.large-container .white_container .menu .menu-back-button:hover {
    background-color: #c9e050; /* Цвет при наведении */
}


/* Специальная кнопка "Назад" */
.large-container .white_container .menu-back-button-other {
    width: 9.25rem; /* Фиксированная ширина кнопки */
    height: 2.5rem; /* Фиксированная высота кнопки */
    position: absolute; /* Делаем кнопку абсолютно позиционированной */
    top: 3.81rem; /* Центрируем по вертикали относительно родителя */
    left: 3.61rem; /* Центрируем по горизонтали относительно родителя */
    background: #DFF070; /* Цвет фона */
    border: none;
    border-radius: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Убираем подчеркивание */
    color: black;
}

.large-container .white_container .menu-back-button-other:hover {
    background-color: #c9e050; /* Цвет при наведении */
}

.large-container .white_container .menu-other {
    display: flex;
    align-items: center; /* Центрируем иконку и текст по вертикали */
    justify-content: start; /* Иконка и текст остаются слева */
    left: 17.94rem;
    top: 3.63rem;
    position: relative; /* Для корректной работы иконок и текста */
    text-decoration: none; /* Убираем подчеркивание */
}

.large-container .white_container .menu-other .item {
    margin-bottom: 0.81rem;
    list-style: none;
}


/* Верхний блок */
.large-container .white_container .menu-other .item .file-header {
    background-color: #F9F9F9; /* Белый фон */
    width: 27.6875rem;
    height: 3.125rem;
    display: flex;
    justify-content: flex-start; /* Выравнивание контента слева */
    align-items: center;
    border-bottom: 1px solid #D0D0D0; /* Разделительная линия */
    border-radius: 0.6875rem 1.25rem 1.25rem 0; /* Скругление углов кнопки */
    position: relative;
}

/* Обрезка верхнего правого угла */
.large-container .white_container .menu-other .item .file-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4.25rem;
    height: 3.125rem;
    background-color: #DADADA;
    border-radius: 1.375rem 1.25rem 0 0;
    z-index: 0;
}

/* Контент в верхнем блоке */
.large-container .white_container .menu-other .item .file-content {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1; /* Поверх псевдоэлемента */
}


.large-container .white_container .menu-other .item .file-header:hover {
    background-color: #e6e6e6; /* Цвет при наведении */
}

.large-container .white_container .menu-other .item .file-header svg {
    width: 2.1875rem;
    height: 2.75rem;
    stroke: #333; /* Цвет иконки */
    margin-left: 0.94rem;
    margin-right: 0.19rem /* Добавляем отступ справа */;
    stroke-width: 2rem; /* Тонкие линии */

}

/* Текст в кнопке */
.large-container .white_container .menu-other .item .file-header span {
    flex-grow: 1; /* Текст занимает оставшееся пространство */
    text-align: center; /* Центрируем текст внутри кнопки */
    font-weight: 700;
}

/* Нижний блок */
.large-container .white_container .menu-other .item .file-footer {
    background-color: #D9D9D9; /* Серый фон */
    width: 27.6875rem;
    height: 3.125rem;
    font-size: 1rem;
    text-align: center;
    color: #727272; /* Серый текст */
    border-radius: 0 0 1.25rem 1.25rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}

.large-container .white_container .menu-other .item .file-footer .file-placeholder .span {
    flex-grow: 1; /* Текст занимает оставшееся пространство */
    text-align: center; /* Центрируем текст внутри кнопки */
    font-weight: 700;

}

.large-container .white_container .menu-other .item .input-container {
    position: relative;
    width: 27.6875rem;
    height: 3.125rem;
    background-color: #F5F5F5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: border-color 0.3s ease; /* Плавный переход цвета */

}

/* При фокусе на дочернем элементе */

.large-container .white_container .menu-other .item .input-container:focus-within {
    border-color: #D0D0D0; /* Чёрная обводка */
}

/* Строка ввода */
.large-container .white_container .menu-other .item .input-container input {
    width: 100%;
    font-size: 0.75rem !important;
    left: 1rem !important;
    padding: 10px 1rem !important;
    color: #333;
    background: transparent;
    border: none;
    outline: none;
    transition: border-color 0.3s;
}

.large-container .white_container .menu-other .item .input-container .input-label {
    position: absolute;
    top: 50%;;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.75rem;
    pointer-events: none;
}


/* Состояние активного ввода */
.input-container input:focus + .input-label,
.input-container .input-label.active {
    margin-top: 0.08rem; /* Поднимаем лейбл */
    top: 0.4rem !important; /* Поднимаем вверх */
    left: 1rem;
    font-size: 0.5rem !important;
    color: #000;
}

.large-container .white_container .menu-other .item .confirm-button {
    display: flex;
    align-items: center; /* Вертикальное выравнивание */
    justify-content: center; /* Горизонтальное выравнивание */
    gap: 0.5rem; /* Отступ между иконкой и текстом */
    width: 27.6875rem; /* Фиксированная ширина кнопки */
    height: 3.125rem;
    border: none;
    border-radius: 1.25rem; /* Скругление углов кнопки */
    background-color: #92d8e4; /* Цвет фона */
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative; /* Для корректной работы иконок и текста */
    text-decoration: none; /* Убираем подчеркивание */
    text-align: center;
    color: black;
}


.large-container .white_container .menu-other .item .confirm-button:hover {
    background-color: #76b0ba; /* Цвет при наведении */
}

.large-container .white_container .menu-other .item .confirm-button svg {
    width: 2.1875rem;
    height: 2.75rem;
    stroke: #333; /* Цвет иконки */
}

/* Текст в кнопке */
.large-container .white_container .menu-other .item .confirm-button span {
    font-size: 1rem;
    font-weight: 700;
}

/* Общий контейнер футера */
.second-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem 0;
}

/* Футер с элементами */
.second-container .footer {
    display: flex;
    justify-content: center;
    gap: 2.38rem; /* Уменьшаем расстояние между элементами */
    align-items: center;
    width: 36.75rem; /* Фиксированная ширина */
    height: 6rem; /* Высота футера */
    background-color: #585656; /* Цвет фона */
    border-radius: 3.125rem; /* Скругление углов */
}

/* Элемент футера */
.second-container .footer .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: normal;
    cursor: pointer;
    margin-top: 0.87rem; /* Отступ сверху */
    text-decoration: none; /* Убираем подчеркивание */
}


.second-container .footer .footer-item .icon-container {
    width: 3.5rem; /* Фиксированная ширина */
    height: 3.5rem; /* Фиксированная высота */
    background-color: #D9D9D9;
    color: black;
    border-radius: 1.1875rem; /* Скругление для круга */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.second-container .footer .footer-item .icon-container svg {
    width: 2.5rem;
    height: 2.5rem;
}

.second-container .footer .footer-item .icon-container:hover {
    background-color: rgba(100, 100, 100, 0.5); /* Цвет подложки при наведении */
}

/* Стили для текста под иконкой */
.second-container .footer .footer-item span {
    color: rgba(255, 255, 255, 0.59); /* Полупрозрачный белый цвет */
    font-size: 0.875rem; /* Размер шрифта */
    text-align: center; /* Центрирование текста */
    margin-top: 0.1rem; /* Отступ сверху от иконки */
    font-weight: 400; /* Обычный текст по умолчанию */
    transition: font-weight 0.3s, color 0.3s; /* Плавный переход */
}

/* Стиль для выделенного элемента */
.second-container .footer .footer-item.selected span {
    font-weight: 700;
}

.second-container .footer .footer-item.selected .icon-container {
    background-color: #FFFFFF; /* Белый фон контейнера */
}