/* STYLES 17.11.2024
Developer: t.me/moretheme
Screen resolution: 460, 860, 1440, 1920 */
@font-face {
    font-family: AvertaCY;
    src: url(../fonts/AvertaCY-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

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

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

/* BASIC */
:root {
    --bg: #f8f9fb;
    --bg2: #fff;
    --engine: #fff;
    --engine2: #f4f5fa;
    --text: #1d1d21;
    --text1: #fff;
    --text2: #848f9d;
    --color1: #1c81ee;
    --color2: #439af8;
    --light: rgb(255 255 255 / 15%);
    --light2: rgb(255 255 255 / 30%);
    --dark: rgb(0 0 0 / 10%);
    --radius: 20px;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: normal;
    font-family: "AvertaCY", sans-serif;
    font-size: 16px;
    font-weight: 400;
}

/* MAIN, ASIDE */
aside {
    position: fixed;
    background: var(--bg);
    color: var(--text2);
    top: 0;
    width: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-gap: 30px;
    padding: 13px 10px 30px;
    font-size: 25px;
    text-align: center;
    z-index: 7;
}

@media (max-width: 860px) {
    aside {
        top: unset;
        bottom: 10px;
        left: 5%;
        right: 50%;
        width: 90%;
        height: 60px;
        flex-direction: row;
        background: #fff;
        border-radius: var(--radius);
        box-shadow: 0 0 20px rgb(0 0 0 / 60%);
    }
}

aside > a {
    cursor: pointer;
}

@media (min-width: 860px) {
    aside > a:first-child {
        margin-top: auto;
    }
}

aside > a:hover {
    color: #5f5f7a;
}

aside > a.active {
    position: relative;
    color: var(--color1);
}

aside > a.active:before {
    content: "";
    position: absolute;
    display: block;
    background: var(--color1);
    border-radius: 50px;
    width: 8px;
    height: 8px;
    left: -15px;
    top: 50%;
}

@media (max-width: 860px) {
    aside .header-logo {
        display: none;
    }

    aside > a.active:before {
        top: unset;
        left: 40%;
        bottom: -33px;
    }
}

main {
    background: var(--bg2);
    box-shadow: 0px 0 0px 1px rgb(152 165 181 / 47%);
    border-radius: 30px 0;
    margin-left: 70px;
    margin-top: 15px;
}

@media (max-width: 860px) {
    main {
        margin-left: 0;
    }
}

main > .container {
    padding: 50px 0;
}

/* HEADER */
header {
    position: relative;
    background: var(--bg);
    color: #000;
    width: 100%;
    top: 0;
    left: 0;
    transition: top 0.3s;
}

header.fixed {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: rgba(250, 251, 255, .7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0px 10px 20px rgb(28 56 67 / 10%);
    z-index: 7;
}

header .container {
    display: flex;
    align-items: center;
    grid-gap: 30px;
    padding: 10px 0;
    margin-left: 70px;
}

@media (max-width: 860px) {
    header .container {
        margin-left: auto;
    }
}

.header-logo {
    color: var(--color1);
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: auto;
}

@media (max-width: 860px) {
    header .header-logo {
        display: block;
    }
}

.header-menu {
    display: flex;
    align-items: center;
    grid-gap: 15px;
    font-size: 14px;
}

.header-menu > a:hover {
    color: var(--color1);
}

header.sticky .header-menu > a:hover {
    color: #d5e9ff;
}

/* HEADER SEARCH */
.header-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--color1);
    color: #fff;
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 10%);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 7;
}

@media (max-width: 860px) {
    .header-search {
        width: 100%;
        margin-left: 0;
    }
}

.header-search.active {
    visibility: visible;
    opacity: 1;
    top: 0;
}

.header-search .fa-magnifying-glass, .header-search .fa-xmark {
    width: 60px;
    height: 60px;
    line-height: 60px;
    color: #c1dfff;
    font-size: 16px;
    text-align: center;
}

.header-search input {
    background: none;
    padding: 0;
    width: 250px;
    height: inherit;
    border-radius: 0;
    margin-left: 15px;
}

.header-search input::placeholder {
    color: #c1dfff;
}

.header-search .fa-xmark {
    margin-left: auto;
}

/* HEADER USER */
.header-user {
    position: relative;
    margin-top: auto;
}

@media (max-width: 860px) {
    .header-user {
        margin-top: 0;
    }
}

.header-user > a {
    display: block;
    color: #000;
    font-size: 28px;
    text-align: center;
    cursor: pointer;
}

.header-user > a > span {
    display: block;
    font-size: 10px;
}

@media (max-width: 860px) {
    .header-user > a > span {
        display: none;
    }
}

.header-user > a:hover {
    color: var(--color1);
}

.header-user > div {
    position: absolute;
    bottom: 0;
    left: 60px;
    width: 200px;
    background: var(--bg2);
    color: #000;
    box-shadow: 0 0 20px rgb(0 0 0 / 10%);
    border-radius: var(--radius);
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 8;
}

.header-user > div:before {
    content: "";
    position: absolute;
    bottom: 20px;
    left: -5px;
    width: 10px;
    height: 10px;
    background: #fff;
    transform: rotate(225deg);
}

@media (max-width: 860px) {
    .header-user > div {
        left: unset;
        right: 0;
        bottom: 60px;
    }

    .header-user > div:before {
        left: unset;
        right: 20px;
        bottom: -5px;
    }
}

.header-user.active > div {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.header-user_info {
    border-bottom: 1px solid var(--bg);
    padding: 10px 20px;
    text-align: center;
}

.header-user_info > img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.header-user_info > span {
    display: block;
    margin: 8px 0;
    font-size: 16px;
    font-weight: bold;
}

.header-user_info > a {
    display: inline-block;
    color: var(--color1);
    font-weight: bold;
    font-size: 13px;
    border-bottom: 1px dotted var(--color1);
    margin: 5px;
}

.header-user_info > a i {
    margin-right: 5px;
}

.header-user_group {
    display: inline-block;
    background: var(--bg3);
    border-radius: var(--radius);
    color: #b9b3d3;
    padding: 4px 10px;
    font-size: 10px;
}

.header-user_group * {
    color: #b9b3d3!important;
}

.header-user_link {
    padding: 3px;
}

.header-user_link a {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius);
    color: #14192a;
    font-size: 14px;
}

.header-user_link a:last-child {
    color: #F44336;
}

.header-user_link a:hover {
    background: var(--bg2);
    color: var(--color1);
}

/* MODAL LOGIN 0.2 */
.modal-login {
    margin-top: auto;
}

@media (max-width: 860px) {
    .modal-login {
        margin-top: 0;
    }
}

.modal-login form {
    display: none;
    position: fixed;
    min-width: 500px;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    background: var(--bg2);
    color: #000;
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 10%);
    padding: 40px 80px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    z-index: 9;
}

@media (max-width: 860px) {
    .modal-login form {
        min-width: 100%;
        padding: 30px;
        border-radius: 0;
    }
}

.modal-login form > i {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
}

.modal-login form > i:hover {
    background: var(--color1);
    color: #fff;
}

.modal-login .e-float > a {
    position: absolute;
    top: 20px;
    right: 15px;
    font-size: 14px;
    border-bottom: 1px dotted #20a8d8;
}

.modal-login_btn a {
    background: #262323;
    margin-left: 20px;
}

.modal-login_btn a:hover {
    background: #000;
    opacity: 0.8;
}

.modal-login_soc span {
    display: block;
    color: #767389;
    margin: 20px 0;
}

.modal-login_soc .e-flex {
    align-items: center;
    justify-content: center;
}

.modal-login_soc .e-flex > a, .modal-login_soc .e-flex a > img {
    width: 40px;
    height: 40px;
    margin: 0 10px;
}

/* TOOLTIP */
[data-tooltip] {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -220%;
    right: 0;
    opacity: 0;
    visibility: hidden;
    width: max-content;
    background: black;
    padding: 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 10px;
    text-align: center;
    line-height: normal;
    transition: all 0.3s;
    z-index: 1;
}

[data-tooltip]:hover::before {
    content: " ";
    position: absolute;
    right: 6px;
    bottom: -6px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

/* LABEL */
.label {
    display: inline-block;
    padding: 5px 15px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.label.red {
    background: #f9e4e3;
    color: #F44336;
}

.label.green {
    background: #e3f9ef;
    color: #00a153;
}

/* WELL ITEMS */
.well-sect > h1 {
    text-align: center;
}

.well-sect_items {
    display: grid;
    grid-gap: 20px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 860px) {
    .well-sect_items {
        grid-template-columns: 1fr;
    }
}

.well-item {
    position: relative;
    border-radius: var(--radius);
    width: 100%;
}

.well-item > div:first-child {
    position: relative;
    border-radius: var(--radius);
    width: 100%;
    overflow: hidden;
}

.well-item > div > img {
    aspect-ratio: 1/1;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    transition: 0.3s;
    overflow: hidden;
}

.well-item:hover div:first-child > img {
    transform: scale(1.06);
}

.well-item_head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    grid-gap: 12px;
    background: linear-gradient(180deg, black, transparent);
    border-radius: var(--radius) var(--radius) 0 0;
    color: #fff;
    padding: 15px 15px;
}

.well-item_head > img {
    min-width: 35px;
    height: 35px;
    border-radius: 8px;
    overflow: hidden;
}

.well-item_head > div > a:first-child {
    font-size: 14px;
    font-weight: bold;
}

.well-item_head > div > a:first-child:before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 390%;
}

.well-item_head > div > a:last-child {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgb(223 237 255 / 74%);
}

.well-item_meta {
    position: absolute;
    left: 50%;
    bottom: -25px;
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 15px;
    background: rgba(250, 251, 255, .7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark);
    padding: 8px 15px;
    border-radius: var(--radius);
    color: #595961;
    font-size: 12px;
    transform: translate(-50%,-50%);
    overflow: hidden;
    z-index: 2;
}

.well-item_meta > span i {
    margin-right: 5px;
}

/* WELL FULL */
.w800 {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 860px) {
    .w800 {
        width: 100%;
    }
}

.well-full_video {
    display: block;
    aspect-ratio: 16/9;
    height: auto;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}

.well-full {
    background: #f8f9fb;
    padding: 30px;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-bottom: 30px;
}

.well-full_cat {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    margin-bottom: 20px;
}

.well-full_cat > span {
    display: inline-block;
    background: var(--color1);
    color: #edf6ff;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
}

.well-full_cat > span:hover {
    background: var(--color2);
}

.well-full_meta {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    color: #646568;
    font-size: 14px;
    font-weight: 400;
    margin-top: -20px;
    margin-bottom: 20px;
}

.well-full_meta span i {
    margin-right: 8px;
}

.well-full_link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    grid-gap: 20px;
    border-top: 1px solid var(--dark);
    margin: 30px -30px -30px;
    padding: 10px 30px;
}

.well-full_link > a, .e-share > span {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    color: #585858;
}

.well-full_link > a.download {
    background: var(--color1);
    color: #fff;
    padding: 12px 25px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-left: auto;
}

.well-full_link > a.download:hover {
    background: var(--color2);
}

.well-full_link .dle-atta {
    margin-left: auto;
}

.well-full_detal {
    display: grid;
    grid-gap: 40px;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr 250px;
}

@media (max-width: 860px) {
    .well-full_detal {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
}

.well-full_user {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    margin-bottom: 30px;
}

.well-full_user > img {
    aspect-ratio: 1/1;
    width: 80px;
    height: auto;
    border-radius: var(--radius);
}

.well-full_user > div h2 {
    margin-bottom: 5px;
}

.well-full_user > div > div {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    color: var(--text2);
    font-size: 14px;
}

.well-full_detal textarea {
    background: #e8ebef;
}

.well-full_detal > div + div ul {
    display: flex;
    flex-direction: column;
    grid-gap: 10px;
    background: #f8f9fb;
    padding: 30px;
    border-radius: var(--radius);
    font-size: 14px;
}

.well-full_detal > div + div ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

.well-full_detal > div + div ul li span {
    color: #646568;
    font-weight: 300;
}

/* FOOTER */
footer {
    position: relative;
    background: #2e3039;
    color: #fff;
}

footer .container {
    display: grid;
    grid-gap: 60px 20px;
    grid-auto-rows: max-content;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    padding: 30px 30px;
    font-size: 14px;
}

@media (max-width: 860px) {
    footer .container {
        grid-template-columns: 1fr;
        justify-items: start;
        grid-gap: 30px;
    }
}

.footer-logo {
    display: block;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-logo + span {
    color: var(--text3);
    font-size: 12px;
}

.footer-menu {
}

.footer-menu > span, .footer-podb > span:first-child {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-menu > a {
    display: block;
    color: #b6c3d2;
    margin: 5px 0;
}

.footer-podb > span + span {
    display: block;
    color: var(--text3);
    margin-bottom: 20px;
}

.footer-copy {
    color: var(--text2);
    font-size: 12px;
    margin-right: auto;
}

.footer-soc {
    display: flex;
    align-items: center;
    grid-gap: 10px;
    margin-left: auto;
    grid-column: 4;
}

@media (max-width: 860px) {
    .footer-soc {
        grid-column: auto;
    }
}

.footer-soc a {
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 10px;
    background: var(--light);
    font-size: 14px;
    color: #fff;
    text-align: center;
}

.footer-soc a:hover {
    background: #23aaea;
}
