@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

@font-face {
	font-family: 'PTMonoWebBold';
	src:
		url('/static/PT-Mono/PT-Mono_Bold.woff2') format('woff2'),
		url('/static/PT-Mono/PT-Mono_Bold.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}

sl-button {
    --sl-color-primary-50: rgb(255 249 239);
    --sl-color-primary-100: rgb(255 233 201);
    --sl-color-primary-200: rgb(255 216 158);
    --sl-color-primary-300: rgb(255 196 108);
    --sl-color-primary-400: rgb(255 167 35);
    --sl-color-primary-500: rgb(230 138 0);
    --sl-color-primary-600: rgb(190 114 0);
    --sl-color-primary-700: rgb(156 94 0);
    --sl-color-primary-800: rgb(129 77 0);
    --sl-color-primary-900: rgb(92 55 0);
    --sl-color-primary-950: rgb(57 34 0);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F6F1E9;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.9em;
}

.wrap-content  {
    flex: 1;
}

h1, h2, h3, h4, h5 {
    font-family: 'PTMonoWebBold', monospace;
}

img {
    max-width: 100%;
}

a {
    color: #1A67F6;
    text-decoration: none;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child {
    margin-top: 0;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.box {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.box._category {
    margin-bottom: -24px;
    position: relative;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 8px;
    margin-top: 10px;
    font-size: 16px;
    line-height: 19px;
    color: #313334;
    background: #FFFFFF;
    border: 1.5px solid rgba(255, 184, 0, 0.1);
    border-radius: 3px;
    user-select: none;
}

.tag:hover {
    text-decoration: none;
}

.tag._active {
    color: #FFB800;
    background: rgba(255, 184, 0, 0.1);
    border: 1.5px solid rgba(255, 184, 0, 0.1);
}

.category {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-bottom: 5px;
    border-bottom: 1px solid #DADADA;
}

.category a {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    font-size: 17px;
    line-height: 20px;
    color: #313334;
}

.category a:hover {
    text-decoration: none;
}

.category a.active:before {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    content: '';
    height: 2px;
    border-radius: 2px;
    background: #FFB800;
}

.header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    height: 75px;
    background: #fff;
}

.header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content-wrap {
    display: grid;
    grid-template-columns: 353px auto;
}

.image {
    margin: 1rem 0;
}


h1:last-child, h2:last-child, h3:last-child, h4:last-child, h5:last-child, p:last-child, .image:last-child {
    margin-bottom: 0;
}

.content-body {
    padding: 0 20px;
}

.nav-bar {
    padding: 17px 0 17px 20px;
}

.nav-bar a {
    display: flex;
    align-items: center;
    padding: 13px;
    border-radius: 8px 0 0 8px;
    font-size: 18px;
    line-height: 21px;
    color: #313334;
    text-decoration: none;
}

.nav-bar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 11px;
    width: 21px;
    height: 21px;
}

.nav-bar a.active {
    background: #F6F1E9;
}

.left-bar-header {
    display: flex;
    margin: 20px 0 15px;
    align-items: center;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #131313;
}

.left-bar-header img {
    margin-right: 8px;
}

/* Calendar */
.calendar {
    margin-bottom: 32px;
}
.calendar table {
    width: 100%;
}

.calendar th {
    color: #878787;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
}

.calendar td {
    color: #d1cbcb;
    padding: 4px 0;
    text-align: center;
}

.calendar td span {
    display: block;
}

.calendar td.select span,
.calendar td.valid:hover span {
    border-radius: 4px;
    color: #FFA800;
    background: rgba(255, 168, 0, 0.18);
}

.calendar td.valid {
    cursor: pointer;
    color: #313334
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px 0;
}

.calendar-header__button {
    display: flex;
    align-items: center;
}

.calendar-header__button img {
    cursor: pointer;
}

.calendar-footer {
    text-align: right;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}

.logo:hover {
    text-decoration: none;
}

.home-card p {
    margin: 5px 0;
}

.home-card__name {
    font-size: 27px;
    line-height: 150%;
    margin: 0 0 5px 0;
}

.logo-label {
    width: 190px;
    font-size: 14px;
    line-height: 17px;
    margin-left: 12px;
}


/* Button */
.button {
    display: inline-block;
    font-size: 12px;
    line-height: 35px;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: none;
    color: #fff;
    border: 1px solid transparent;
    background: #1A67F6;
    transition: .13s ease-out;
    text-decoration: none;
}

.button:hover {
    text-decoration: none;
}

.graduates-table {
    width: calc(100% + 40px);
    margin: 0 -20px;
    color: #131313;
    border-collapse: collapse;
}

.graduates-table  th {
    font-size: 17px;
    line-height: 24px;
    letter-spacing: -0.5px;
    padding: 10px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #F1EFE2;
}

.graduates-table tr th:first-child,
.graduates-table tr td:first-child {
    padding-left: 20px;
}

.graduates-table tr th:last-child,
.graduates-table tr td:last-child {
    padding-right: 20px;
}

.graduates-table__item td {
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
    padding: 10px;
}

.graduates-table__item:nth-child(2n) {
    background: rgba(255, 168, 0, 0.05);
}

.footer {
    display: grid;
    margin-top: 35px;
    grid-template-columns: repeat(4, 25%);
    padding: 35px 0;
    border-top: 1px solid #9F9F9F;
}

.footer h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: #131313;
}

.footer-link {
    display: flex;
    align-items: center;
    color: #313334;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 7px;
}

.footer-link img {
    margin-right: 10px;
}

.footer-link:hover {
    text-decoration: none;
}

.footer-meta {
    font-weight: 400;
    font-size: 10px;
    line-height: 12px;
    color: #313334;
}

.footer-meta p {
    margin: 0 0 10px 0;
}

.sort {
    display: flex;
    align-items: center;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}

.sort:hover {
    text-decoration: none;
}

.sort img {
    display: block;
}

.sort__button {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    color: #FFA800;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 20px;
    margin-left: 10px;
}

.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.box-auth {
    max-width: 300px;
    width: 100%;
    text-align: center;
}

.box-auth sl-input {
    text-align: left;
    margin-bottom: 10px;
}

.box-auth sl-button {
    margin-top: 20px;
}


/* Mobile */

@media screen and (max-width: 600px) {
    .header .wrap {
        padding: 0 20px;
    }
    .content-wrap {
        display: block;
    }

    .content-nav {
        padding: 0 20px;
    }

    .content-nav .box:not(.nav-bar) {
        display: none;
    }

    .box._category {
        margin-bottom: 20px;
    }

    .category {
        flex-direction: column;
        border-bottom: none;
        padding: 0;
    }

    .category a {
        margin: 0 -20px;
        padding: 10px 20px;
    }

    .category a.active {
        background: rgb(255 184 0 / 48%);
    }

    .category a.active:before {
        display: none;
    }

    .footer {
        display: flex;
        flex-direction: column-reverse;
        padding: 35px 20px;
    }

    .footer > div {
        margin-top: 35px;
    }
    .footer > div:last-child {
        margin-top: 0;
    }

    .graduates-table tr,
    .graduates-table {
        display: block;
    }

    .graduates-table th {
        display: none;
    }

    .graduates-table td:last-child,
    .graduates-table td:first-child,
    .graduates-table td {
        display: inline-block;
        font-size: 14px;
        padding: 0 !important;
    }

    .graduates-table td:first-child {
        font-size: 18px;
        display: block;
    }

    .graduates-table tr.graduates-table__item {
        padding: 20px;
    }
}