@font-face {
    font-family: "OpenSans";
    src: url("./OpenSans.ttf");
}
*, *::after, *::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root {
    /* color */
    --color-primary: #fff;
    --color-secondary: #eeeeee;
    --color-text: #2d2d2e;
    --color-yellow: #ebb30d;
    --color-yellow-opacity: rgba(235, 179, 13, 0.7);
    --border-color: #ccc;
    --color-red: red;

    /* container */
    --container-width: 1200px;
    --container-padding: 0 10px;
    --container-margin: 0 auto;
    
}
.input::-webkit-outer-spin-button,
.input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.input[type="number"] {
    -moz-appearance: textfield;
}
.input:hover {
    cursor: pointer;
}
a {
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
    color: inherit;
}
ul, li, ol {
    list-style: none;
}
input, button, label {
    font-size: inherit;
    font-family: inherit;
    border: none;
    background-color: none;
}
body {
    background-color: var(--color-secondary);
    font-size: 14px;
    font-family: OpenSans, sans-serif;
}
.container {
    max-width: var(--container-width);
    padding: var(--container-padding);
    margin: var(--container-margin);
}
/* Header */
.header {
    /* padding: 30px 0 15px 40px; */
    padding: 30px 10px 40px;
    background-color: var(--color-primary);
    margin-bottom: 20px;
}
.header__inner {
    display: grid;
    grid-template-columns: 170px 1fr 170px;
    align-items: center;
}
.header__logo-image {
    width: 170px;
    height: 118px;
}
.header__search-input {
    border: 0;
    height: 40px;
    border: var(--color-yellow) 3px solid;
    box-sizing: border-box;
    line-height: 34px;
    padding: 0 0px 0 14px;
    width: 100%;
    border-right-width: 43px;
}
.header__search-submit {
    background-color: var(--secondary-color);
    border: 0;
    height: 40px;
    border: var(--color-yellow) 3px solid;
    box-sizing: border-box;
    line-height: 34px;
    padding: 0 0px 0 14px;
    width: 100%;
    border-right-width: 43px;
}
.header__search-submit__image {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
#header__list-1 {
    padding-left: 100px;
}
#header__list-2 {
    display: none;
}
.menubtn {
    cursor: pointer;
    display: none;
    position: relative;
    background: #f4f4f4 no-repeat center;
    width: 45px;
    height: 40px;
    margin-left: 12px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
}
.menubtn::before {
    content: '';
    display: block;
    width: 26px;
    height: 21px;
    border-top: #000 3px solid;
    border-bottom: #000 3px solid;
    top: 10px;
    left: 9px;
    box-sizing: border-box;
    position: absolute;
}
.menubtn::after {
    content: '';
    display: block;
    width: 26px;
    height: 3px;
    background: #000;
    position: absolute;
    top: 19px;
    left: 9px;
}
.header__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0;
}
.header__list-item {

}
.header__list-item__link {
    padding: 5px 10px;
    font-size: 18px;
    transition: all 200ms linear;
}
.header__list-item__link:hover {
    color: var(--color-yellow);
    transition: all 200ms linear;
}
/* Header end */

/* Discipline */
.discipline__inner {
    background-color: var(--color-primary);
    padding: 32px 20px;
    margin-bottom: 50px;
}
.discipline__title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 35px;
}
.discipline__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.discipline__list-item {
    width: calc(25% - 10px);
}
.input {
    width: 100%;
    display: block;
    border: 1px solid var(--border-color);
    font-family: Open Sans, sans serif;
    font-size: 16px;
    padding: 13px 16px 14px;
    background: #fff;
    box-sizing: border-box;
    max-width: 100%;
}
.discipline__label {
    font-weight: bold;
    margin-bottom: 5px;
}
.input.input-success {
    border-color: var(--color-yellow);
    background-color: var(--color-yellow);
    color: var(--color-primary);
    /* border-color: #f5c518; или любой желтый */
}
/* Discipline end */

/* Formofeducation */
.formofeducation__title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}
.formofeducation__list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.formofeducation__list-item, .exam {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
/* Formofeducation end */

.exam {
    margin-bottom: 15px;
}
.results {
    background-color: var(--color-yellow);
    color: var(--color-primary);
    border: none;
    border-radius: 3px;
    width: 200px;
    height: 50px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: auto;
    display: block;
}


.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-primary);
    font-size: 18px;
}

.loader{
    width: 100px;
    height: 100px;
    border-radius: 100%;
    position: relative;
    margin: 0 auto;
}

#loader-1:before, #loader-1:after{
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    border: 10px solid transparent;
    border-top-color: var(--color-yellow);
}

#loader-1:before{
    z-index: 100;
    animation: spin 1s infinite;
}

#loader-1:after{
    border: 10px solid #ccc;
}

@keyframes spin{
    0%{
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100%{
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
.error404__title {
    font-size: 150px;
    line-height: 14px;
}
.error404__text, .loading__text {
    font-size: 18px;
}
.none {
    display: none !important;
}
#loading {
    display: none;    
}

/* ============================================
   ДИСЦИПЛИНЫ
   ============================================ */

.discipline__list-item {
    margin-bottom: 10px;
}

.input {
    /* Базовые стили для input */
}

/* .input.input-error {
    border: 2px solid #e53935;
    background-color: #e53935;
} */

.discipline__error {
    color: var(--color-red);
    font-size: 12px;
    margin-left: 10px;
}

.discipline__empty-message {
    color: #666;
    font-style: italic;
}

/* ============================================
   РЕЗУЛЬТАТЫ ПОИСКА
   ============================================ */

.results-loading {
    /* Стили для индикатора загрузки результатов */
    text-align: center;
    padding: 20px;
    color: #666;
}

.result-count {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* ============================================
   СПЕЦИАЛЬНОСТИ
   ============================================ */

.special__list-item {
    margin-bottom: 10px;
    padding: 15px;
    background-color: var(--color-primary);
}

.special__title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.special__subtitle {
    margin-bottom: 5px;
    color: #555;
}

.special__form {
    font-size: 14px;
    color: #666;
}

.special__error {
    color: red;
    padding: 15px;
    background-color: #ffeeee;
    border-radius: 5px;
}

.special__empty {
    padding: 15px;
    color: #666;
}
#error404 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 100px;
    gap: 10px;
}
.home__link {
    display: block;
    padding: 10px;
    background-color: var(--color-yellow);
    color: var(--color-primary);
}
@media screen and (max-width: 900px) {
    #header__list-1 {
        padding: 0;
    }
    .header__inner {
        display: flex;
        justify-content: space-between;
    }
    .discipline__list-item {
        width: calc(50% - 10px);
    }
}
@media screen and (max-width: 610px) {
    .header__list {
        display: none;
    }
    #header__list-2 {
        display: none;
    }
    .header__list-open {
        position: fixed;
        inset: 0;
        z-index: 120;
        background-color: var(--color-primary);
    }
    .header__list-open#header__list-2 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .header__list-item {
        width: 100%;
        text-align: center;
    }
    .header__list-item__link {
        width: 100%;
        padding: 5px 0;
        display: block;
    }
    .menubtn {
        display: block;
        position: relative;
        z-index: 200;
        transition: all 200ms linear;
    }
    .menubtn:hover {
        background-color: var(--color-yellow);
        transition: all 200ms linear;
    }
    .menubtn
    .discipline__list-item {
        width: 100%;
    }
    .menubtn-open {
        position: fixed;
        top: 5px;
        right: 5px;
        background-color: var(--color-yellow);
        transition: all 200ms linear;
    }
    .menubtn-open::after {
        background-color: var(--color-primary);
    }
    .menubtn-open::before {
        border-top: var(--color-primary) 3px solid;
        border-bottom: var(--color-primary) 3px solid;
    }
    .formofeducation__list {
        flex-direction: column;
    }
    .formofeducation__list-item, .exam {
        width: 100%;
        text-align: left;
        justify-content: left;
    }
}
@media screen and (max-width: 400px) {
    .header__logo-image {
        width: 120px;
        height: 100px;
    }
    .discipline__list-item {
        width: 100%;
    }
}









/* 


    .header__burger-button.header__burger-open {
        position: fixed;
        top: 50px;
        right: 15px;
        z-index: 102;
    }
    .header__burger {
        display: block;
    }
    .discipline__list-item {
        width: 100%;
    }
    .formofeducation__list {
        flex-direction: column;
    }
    .formofeducation__list-item, .exam {
        width: 100%;
        text-align: left;
        justify-content: left;
    }
} */