﻿@import url('https://fonts.googleapis.com/css?family=Unbounded:100,200,300,400,500,600,700,800');
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800');
@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800');

* {
    box-sizing: border-box;
    margin: 0;
    margin-bottom: 0;
    padding: 0;
}
/*danya check*/

/* Mobile / tablet behaviour */
@media (max-width: 991.98px) {
    .nav-wrapper {
        justify-content: space-between;
    }

    .primary-menu.collapse:not(.show) {
        display: none;
    }

    .primary-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--panel-bg);
        padding: 96px 32px 32px;
        flex-direction: column;
        gap: 32px;
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
    }

    .primary-menu.show {
        right: 0;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-link {
        font-size: 18px;
        text-align: center;
    }

    .navbar-nav {
        gap: 10px;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .sing_in,
    .regist {
        width: 100%;
    }

    .dropdown-menu {
        position: absolute !important;
        left: 25%;
    }

    .dropdown-menu.show {
        transform: translateX(-100%);
    }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }

    .primary-menu {
        position: static;
        padding: 0;
        height: auto;
        box-shadow: none;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .navbar-nav {
        flex-wrap: nowrap;
    }

    .header-buttons {
        flex-shrink: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sing_in {
        padding: 8px 25px;
    }
}


a {
    text-decoration: none;
    color: inherit;
}

.self-start {
    align-self: flex-start;
}

.sec_headline {
    margin-left: auto;
    margin-right: auto;
}

.hero_button {
    padding: 0.75rem 1.75rem;
    border-radius: 1rem;
    border: none;
    font-family: Montserrat;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
    color: white;
    transition: all 0.1s;
    background-color: rgb(13, 153, 255);
}

:root {
    --page-bg: #0C111C;
    --panel-bg: #05070F;
    --primary: #0D99FF;
    --accent: #CA2C66;
    --text: #FFFFFF;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    background-color: var(--page-bg);
    color: var(--text);
    font-family: "Montserrat", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

.site-header {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
    padding: 12px 60px;
    border-bottom: 1px solid rgba(13, 153, 255, 0.35);
    background-color: var(--page-bg);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.navbar-nav {
    --bs-nav-link-color: none;
    --bs-nav-link-hover-color: none;
}

.navbar-nav .navbar-nav.nav-link.active,
.navbar-nav .nav-link.show {
    color: white;
}

.dropdown-menu {
    position: static;
    background-color: var(--page-bg);
    color: white;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    margin-left: auto;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1100;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.title {
    font-size: 32px;
    line-height: 1.2;
    font-family: "Unbounded";
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
}

.title:hover,
.title:focus {
    color: var(--text);
}

.primary-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right .35s ease, opacity .35s ease;
    z-index: 1050;
}

.menu,
.navbar-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.nav-link {
    font-family: Unbounded;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;

}

.nav-link a {
    color: var(--text);
    text-decoration: none;
    transition: color .2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.header-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.sing_in,
.regist {
    min-width: 120px;
    height: 42px;
    padding: 8px 28px;
    border-radius: 16px;
    border: none;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sing_in {
    background-color: var(--accent);
    color: var(--text);
}

.sing_in a {
    color: white;
    text-decoration: none;
}

.regist {
    background-color: transparent;

    color: var(--text);
}

.sing_in:hover,
.regist:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.regist a {
    color: white;
    text-decoration: none;
}

/* Footer */

footer {
    display: grid;
    width: 100%;
    gap: 24px;
}

.bottom {
    display: flex;
    color: var(--text);
    width: 100%;
    min-height: 64px;
    align-items: center;
    padding: 12px clamp(20px, 5vw, 60px);
    justify-content: space-between;
    border-top: 1px solid rgba(13, 153, 255, 0.35);
    margin-top: 96px;
}

.rights {
    display: flex;
    color: var(--text);
    min-height: 39px;
    padding: 12px clamp(20px, 5vw, 60px);
    justify-content: space-between;
    font-family: "Unbounded";
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
}

/* site frame (the stuff that wraps everything) */

.wrapper {
    max-width: 1440px;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px;
}

.wrapper.g-4 {
    padding: 0 calc(60px - 0.75rem);
    /* Разработчиков bootstrap нужно в жопу выебать  */
}


/* Events */



.event {
    display: flex;
    height: 100%;
    gap: 20px;
    padding: 18px;

    border: 1px solid transparent;
    border-radius: 20px;
    background-image: linear-gradient(#0C111C, #0C111C),
        linear-gradient(to right bottom, #0D99FF, #CA2C66);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.event:hover {
    background-image: linear-gradient(#CA2C66, #CA2C66),
        linear-gradient(to right bottom, #CA2C66, #CA2C66);
    border: 1px solid rgb(202, 44, 102);
}

.date {
    color: white;
    width: 100%;
    max-width: 4.1rem;
    height: 100%;
    text-align: right;
}

.day {
    width: 100%;
    font-family: "Poppins";
    font-weight: 600;
    font-size: 3.1rem;
    line-height: 100%;
}

.month {
    font-weight: 700;
    font-size: 1.25rem;
}

.event_text {
    display: flex;
    color: white;
    gap: 10px;
    width: 100%;
    height: 100%;
    font-family: "Montserrat";
    flex-direction: column;
}

.event_subtitle {
    height: 100%;
    font-weight: 600;
    font-size: 1.44rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event_subtitle::before {
    max-width: 32vw;
    content: attr(name);
    position: absolute;
    font-size: 0.7rem;
    padding: 0.3rem 0.4rem;
    background-color: rgba(113, 121, 126, 80%);
    color: rgba(255, 255, 255, 75%);
    border-radius: 24px;
    transform: translate(0.5rem, 4.5rem);
    opacity: 0;
}

.event_subtitle:hover::before {
    opacity: 1;
}

.text {
    height: 100%;
    font-weight: 400;
    font-size: 0.6rem;
    margin-bottom: 0;
}

.address {
    height: 100%;
    font-weight: 500;
    font-size: 0.6rem;
    margin-bottom: 0;
}

.event_join {
    background-color: #0D99FF;
    color: white;
    width: 100%;
    max-width: 7.8rem;
    height: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 11px;
    border: none;
    text-align: center;

    font-family: "Montserrat";
    font-weight: 500;
    font-size: 0.6rem;

    transition: all 0.1s;
}

.title_link {
    display: flex;
    gap: 24px;
    align-items: center;
    font-family: Unbounded;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}

/* Section header */

.sec_headline {
    display: flex;
    max-width: 1440px;
    height: 45px;
    margin-bottom: 24px;
    padding: 0 60px;
    color: white;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.headline_title {
    font-family: Unbounded;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;

}

.headline_button {
    font-family: Unbounded;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}

/* News widget */

.news_title_link {
    font-family: Montserrat;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 32px;
    letter-spacing: 0%;
}

.news {
    display: flex;
    list-style: none;
    width: 100%;
    padding: 0 12.2rem;
    justify-items: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.news_tab {
    display: flex;
    width: 100%;
    height: 100%;
    color: white;
    border: 1px solid transparent;
    border-radius: 24px;
    background-image: linear-gradient(#0C111C, #0C111C), linear-gradient(to left top, #0D99FF, #CA2C66);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.1s;
    flex-direction: column;
}

.news_tab:hover {
    color: #0D99FF;
    border: 1px solid rgba(13, 153, 255);
    cursor: pointer;
}

.news_tab:hover .title_link,
.news_tab:hover .news_title {
    color: #0D99FF;
}

.news_top {
    position: relative;
    display: flex;
}

.news_img {
    object-fit: cover;
    border-radius: 20px;
    width: 100%;
    height: 280px;
}

.news_pop {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 16px;
    border: none;
    color: white;

    background-color: #5E0DFF;

    font-family: Unbounded;
    font-weight: 300;
    font-style: Regular;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    text-transform: lowercase;

}

.news_pop:hover {
    color: white;
}

.news_content {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 24px;
    border-radius: 24px;
    padding: 24px;
}

.news_title {
    color: white;
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: "Montserrat";
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.news_title::before {
    content: attr(name);
    position: absolute;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    background-color: rgba(113, 121, 126, 80%);
    color: rgba(255, 255, 255, 75%);
    border-radius: 24px;
    transform: translate(0.5rem, 3rem);
    opacity: 0;
}

.news_title:hover::before {
    opacity: 1;
}


.news_time {
    display: flex;
    margin-top: auto;
    align-items: center;
    width: 100%;
    color: #A9A9A9;
    gap: 16px;
    font-family: Montserrat;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0px;
    vertical-align: middle;
    text-transform: uppercase;

}

.news_date {
    display: flex;
    align-items: center;
    gap: 5px;

}

/* articles */


.articles {
    display: flex;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.article {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: 20px;
    color: white;
    font-family: "Montserrat";
    background-image: linear-gradient(#0C111C, #0C111C),
        linear-gradient(to right bottom, #0D99FF, #CA2C66);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    transition: all 0.1s;
}

.article:hover {
    background-image: linear-gradient(#0D99FF, #0D99FF),
        linear-gradient(to right bottom, #0D99FF, #0D99FF);
    border: 1px solid rgb(13, 153, 255);
}

.arc_title {
    width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
}

.arc_title::before {
    content: attr(name);
    position: absolute;
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    background-color: rgba(113, 121, 126, 80%);
    color: rgba(255, 255, 255, 75%);
    border-radius: 24px;
    transform: translate(0.5rem, 3rem);
    opacity: 0;
}

.arc_title:hover::before {
    opacity: 1;
}

.article_title_link {
    font-family: Montserrat;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}

.article_time {
    margin-bottom: 0;
    font-family: Montserrat;
    font-weight: 200;
    font-style: Light;
    font-size: 16px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;
}

/* facts */

.facts_sec {
    display: flex;
    width: 100%;
    height: 100%;
    margin-top: 60px;
    gap: 15px;
    padding: 0 12.2rem;
    flex-wrap: wrap;
}

.fact {
    display: flex;
    gap: 10px;
    color: #CA2C66;
    padding: 24px;
    width: 100%;
    border-radius: 24px;
    flex-direction: column;

    transition: all 0.3s ease-in-out;
}

.fact:hover {
    color: white;
    background-color: #CA2C66;
    transition: all 0.1s;
}

.num {
    font-family: Unbounded;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 80px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0%;

}

.part {
    color: white;
    font-family: Unbounded;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 1.5rem;
    letter-spacing: 0%;

}