/* Подключение шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Основные сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Боди */
body {
    font: 12px 'Inter', Verdana, Arial, sans-serif; /* современный шрифт */
    color: #E5E5E5;
    line-height: 1.4;
    background: url(images/cosmos.webp) no-repeat center center fixed;
    background-size: cover;
}

/* HTML */
html {
    height: 100%;
}

/* Ссылки */
a, a:hover {
    text-decoration: none;
    color: #FFFFFF;
    transition: 0.3s;
}

/* Основной контейнер */
#wrap {
    margin: 20px auto;
    width: 1140px;
    padding: 30px 20px;
    background: rgba(35, 35, 35, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-family: 'Inter', sans-serif;
}

/* Заголовки */
h1 {
    font-size: 1.8em;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 10px;
}

#header h2 {
    font-size: 0.95em;
    font-weight: 400;
    color: #D0D0D0;
    margin-top: 5px;
}

/* Лимит */
div#limite {
    font-size: 0.85em;
    float: right;
    padding: 5px 0;
    color: #D0D0D0;
}

/* Меню */
#menu {
    display: flex;
    justify-content: flex-start; /* выравниваем пункты влево */
    align-items: center;
    width: 100%;
    height: 50px;
    border-radius: 12px; /* скругление */
    background: rgba(50,50,50,0.6);
    backdrop-filter: blur(8px);
    padding: 0 20px; /* внутренние отступы */
    margin: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    font-family: 'Inter', sans-serif;
}

#menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#menu ul li {
    margin-right: 20px; /* расстояние между пунктами */
}

#menu ul li a {
    text-decoration: none;
    font-weight: 500;
    color: #E5E5E5;
    transition: 0.3s;
    padding: 10px 12px;
    display: block;
}

#menu ul li a:hover {
    color: #A8C0D0;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}


/* Контент */
#content {
    padding: 15px 0 0px;
    font-family: 'Inter', sans-serif;
}

/* Футер */
#footer {
    height: auto; /* чтобы размер блока подстраивался под текст */
    text-align: center;
    font-size: 1em; /* увеличенный шрифт */
    color: #E5E5E5;
    background: rgba(50, 50, 50, 0.6); /* полупрозрачный фон */
    border-radius: 12px; /* скругление углов */
    padding: 15px 20px; /* увеличенные внутренние отступы */
    backdrop-filter: blur(8px); /* размытие фона */
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); /* мягкая тень */
    font-family: 'Inter', sans-serif;
    width: 1000px;
    margin: 8px auto;
}

/* Ошибки */
.alert-error {
    background: rgba(60,60,60,0.5);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-family: 'Inter', sans-serif;
}

/* Fieldset */
.fieldset, .fieldsets {
    background: rgba(50, 50, 50, 0.5);
    border: none;
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.fieldset:hover, .fieldsets:hover {
    background: rgba(55, 55, 55, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Поля ввода */
input, textarea, .resize_elements, .preview_elements {
    background: rgba(50,50,50,0.5);
    color: #E5E5E5;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 6px 10px;
    margin: 4px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    font-family: 'Inter', sans-serif;
}

input:focus, textarea:focus {
    border-color: #A8C0D0;
    outline: none;
    box-shadow: 0 0 12px rgba(168,192,208,0.4);
}

/* Кнопки */
button, input[type="submit"] {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    padding: 0.4em 1em;
    border-radius: 10px;
    border: none;
    background: rgba(60,60,60,0.5);
    color: #E5E5E5;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

button:hover, input[type="submit"]:hover {
    background: rgba(168,192,208,0.15);
    color: #A8C0D0;
}

/* Чекбоксы */
input[type="checkbox"] {
    vertical-align: middle;
    margin-left: 7px;
}
