@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("../fonts/Oswald-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-ExtraBold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Bold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-SemiBold.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-weight: 300;
    color: #222;
    caret-color: transparent;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 24px;
    font-weight: 300;
    text-decoration: none;
    color: #222;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.main-nav a,
.account-nav a,
.logout-link {
    text-decoration: none;
    color: #222;
}

.main-nav a:hover,
.account-nav a:hover,
.logout-link:hover {
    text-decoration: underline;
}

.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    white-space: nowrap;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 10px 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 10;
}

.dropdown-menu a {
    display: block;
    padding: 8px 15px;
    white-space: nowrap;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.account-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    white-space: nowrap;
}

.logout-link {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    color: #222;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
}

main {
    min-height: 70vh;
    padding: 0;
}

/* Главный экран */
.hero {
    min-height: 1025px;

    background-image: url("../img/hero-desktop.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    display: flex;
    align-items: top;
    cursor: default;
}

/* Планшет */
@media (max-width: 1024px) {
    .hero {
        background-image: url("..img/hero-tablet.png");
    }
}

/* Телефон */
@media (max-width: 600px) {
    .hero {
        background-image: url("..img/hero-phone.png");
    }
}

.hero-content {
    width: min(1200px, 90%);
    margin-left: 142px;
    padding-top: 124px;
    padding-bottom: 80px;
}

.hero-content h1 {
    font-size: 109px;
    font-weight: 500;
    color: #07245e;
    margin: 20px 0 25px 0;
    line-height: 1.05;
}

.hero-content h2 {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 38px;
    color: #07245e;
    margin: 0 0 0 5px;

}

.hero-content h3 {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #07245e;
    margin: 0 0 0 5px;
    line-height: 1.2;
}

.hero-content p {
    margin-top: 20px;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 70px;
    margin: 50px 0 60px 5px;
}

.event-info-item {
    display: flex;
    flex-direction: center;
    gap: 12px;
}

.event-info-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.event-info-icon-calendar {
    background-image: url("../img/cal.png");
}

.event-info-icon-location {
    background-image: url("../img/place.png");
}

.event-info-text {
    display: flex;
    align-items: center;
    margin: 2px 0 0 0;
}

.event-info-value {
    font-family: "Manrope", sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #07245e;
}

.register-button {
    position: relative;

    display: flex;
    align-items: flex-start;

    width: 390px;
    height: 95px;

    padding-left: 57px;
    padding-top: 29px;

    background: #07245e;
    color: #ffffff;

    border-radius: 46px;

    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 23px;

    text-decoration: none;

    margin-top: 35px;
}

.register-button::after {
    content: "";

    position: absolute;
    right: 50px;
    top: 51%;
    transform: translateY(-51%);

    width: 18px;
    height: 18px;

    background-image: url("../img/arrow.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.register-button:hover {
    background: #0a3078;
}

.page-content {
    line-height: 1.6;
}

/* =========================
   НОВОСТИ
   ========================= */

.news-section {
    height: 820px;
    padding: 100px 0 80px 142px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;

    background-image: url("../img/news.png");
    background-size: cover;
    cursor: default;

}

.news-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 55px;
    gap: 35px;
    margin-bottom: 55px;
}

.news-header h2 {
    margin: 0;

    font-family: "Oswald", sans-serif;
    font-size: 100px;
    font-weight: 500;
    line-height: 1;

    color: #07245e;
}

.news-all {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 400;

    color: #07245e;
    text-decoration: none;
    position: absolute;
    right: 240px;
}

.news-all:hover {
    text-decoration: underline;
}


/* Область карусели */

.news-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}


/* Карусель */

.news-carousel {
    display: flex;
    gap: 24px;
    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;

    scroll-behavior: smooth;

    padding-left: 60px;
    padding-right: 200px;

    scrollbar-width: none;
}

.news-carousel::-webkit-scrollbar {
    display: none;
}


/* Плитка */

.news-card {
    width: 360px;
    height: 340px;

    flex: 0 0 360px;

    background: #fcfaf6;

    overflow: hidden;
}


/* Изображение */

/*.news-card-image {
    width: 100%;
    height: 205px;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}*/


/* Текст */

.news-card-content {
    padding: 20px 0 20px 23px;
}

.news-card-date {
    display: flex;
    align-items: flex-start;

    color: #07245e;
    margin-bottom: 18px;
}

.news-date-day {
    font-family: "Oswald", sans-serif;
    font-size: 54px;
    font-weight: 600;
    line-height: 0.9;
}

.news-date-right {
    display: flex;
    flex-direction: column;

    margin-left: 10px;
    margin-top: 1px;
}

.news-date-month,
.news-date-year {
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
}

.news-date-year {
    margin-top: 3px;
}


/* Заголовок новости */

.news-card h2 {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.2;

    color: #07245e;
    margin: 0 0 13px 0;
}

.news-card h3 {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;

    color: #07245e;
}


/* Стрелки */

.news-arrow {
    position: absolute;
    z-index: 2;

    width: 70px;
    height: 70px;

    border: none;
    padding: 0;

    background-color: transparent;
    background-size: 70px 70px;
    background-repeat: no-repeat;
    background-position: center;

    cursor: pointer;

    font-size: 0;
}

.news-arrow-prev {
    left: -80px;
    background-image: url("../img/arrow-l.png");
}

.news-arrow-next {
    right: 35px;
    background-image: url("../img/arrow_r.png");
}

/* Если новостей пока нет */

.news-empty {
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #07245e;
}

.site-footer {
    border-top: 1px solid #ddd;
    padding: 20px 0;
}

.page-edit {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
    text-decoration: none;
}

.page-edit:hover {
    color: #222;
    text-decoration: underline;
}

.required {
    color: red !important;
    font-weight: bold;
}

.degree-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.degree-row select {
    flex: 0 1 auto;
}

.degree-row input {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 900px) {
    .header-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav,
    .account-nav {
        display: none;
        width: 100%;
    }

    .main-nav.active,
    .account-nav.active {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 15px;
    }

    .account-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 5px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        border: none;
        padding: 5px 0 0 15px;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

@media (max-width: 600px) {
    .container {
        width: 92%;
    }

    .site-header {
        padding: 15px 0;
    }

    main {
        padding: 25px 0;
    }

    h1 {
        font-size: 28px;
    }

    .page-content {
        font-size: 16px;
        line-height: 1.55;
    }
}
