/* ===== Base Styles ===== */

@charset "utf-8";

/*Bebas neue*/

@font-face {
    font-family: 'Bebas';
    src: url('../fonts/BebasNeueBook.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Bebas';
    src: url('../fonts/BebasNeueRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Bebas';
    src: url('../fonts/BebasNeueBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: fallback;
}

/*RobotoCondensed*/

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/RobotoCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/RobotoCondensed-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'RobotoCondensed';
    src: url('../fonts/RobotoCondensed-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: fallback;
}

/*Cuprum*/

@font-face {
    font-family: 'Cuprum';
    src: url('../fonts/Cuprum-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Cuprum';
    src: url('../fonts/Cuprum-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: fallback;
}

@font-face {
    font-family: 'Cuprum';
    src: url('../fonts/Cuprum-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: fallback;
}

@font-face {
    font-family: 'Cuprum';
    src: url('../fonts/Cuprum-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: fallback;
}

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

:root {
    --fontRoot: 'Cuprum';
    --fontSizeRoot: 1.7rem;
    --colorRoot: hsl(216, 100%, 63%);
    --colorRootHov: hsl(216, 100%, 43%);
    --inputPadding: 10px;
    --transit: 0.2s;
    --rootBdrs: 5px;
}

html {
    font-size: 10px;
    position: relative;
    min-height: 100%;
}

body {
    font-size: var(--fontSizeRoot);
    font-family: var(--fontRoot), sans-serif;
    font-weight: 400;
    margin: 0;
    color: #494949;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    display: block;
    max-width: 100%;
    border: none;
}

a {
    color: var(--colorRoot);
    transition: var(--transit);

    &:hover {
        color: var(--colorRootHov);
        transition: var(--transit);
    }
}

/*Titles*/
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 15px 0 20px;
    line-height: 120%;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 3.2rem;
}

h4 {
    font-size: 2.8rem;
}

h5 {
    font-size: 2.6rem;
}

h6 {
    font-size: 2.4rem;
}

p {
    margin: 15px 0;
    line-height: 120%;
}

blockquote {
    padding: 10px;
}

/* ===== Base Styles End ===== */

/* ===== Form Elements ===== */

form label {
    display: inline-block;
    margin: 0 0 5px 0;
}

.form-full {
    width: 100%;
    max-width: 400px;

    :is(input:is([type=text], [type=tel], [type=email], [type=password], [type=search], [type=number], [type=file]), textarea, select) {
        width: 100%;
    }

    .password-holder,
    .select-holder {
        width: 100%;
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type=submit],
input[type=search],
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input,
button,
select,
textarea {
    font-family: var(--fontRoot);
    font-size: var(--fontSizeRoot);
    display: block;
    padding: var(--inputPadding);
    margin-bottom: 10px;
    border: solid 1px var(--colorRoot);
    border-radius: var(--rootBdrs);
}

input[type="submit"],
button {
    border: none;
    cursor: pointer;
}

select {
    padding-right: 30px;
    background-image: url(../img/arrow-down-2.svg);

    option {
        padding: 22px;
    }
}

.select-holder {
    display: inline-block;
    position: relative;

    .select-arrow {
        position: absolute;
        top: 10px;
        right: 5px;
        bottom: 0;
        padding: 2px;
        width: 20px;
        height: 20px;

        svg,
        svg g {
            fill: var(--colorRoot);
        }
    }
}


.password-holder {
    display: inline-block;
    position: relative;

    input :is([type="password"], [type="text"]) {
        padding-right: 20px;
    }

    .ico {
        position: absolute;
        cursor: pointer;
        width: 20px;
        height: 20px;
        top: 10px;
        right: 5px;
        bottom: 0;
    }

    .eye {
        display: none;

        svg {
            fill: var(--colorRoot);
        }
    }

    .show-pass.close .eye-close {
        display: block;
    }

    .show-pass.open .eye-open {
        display: block;
    }
}

/*Custom radio*/
.radio {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    position: relative;

    .label {
        display: inline-block;
        vertical-align: middle;
    }
}

.radio:checked+.radio-custom::before {
    content: "";
    display: block;
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 3px;
    background: #403C42;
    border-radius: 2px;
}

.radio-custom,
.radio:checked+.radio-custom::before {
    border-radius: 50%;
}

/*Custom checkbox*/
.checkbox {
    display: none;
}

.checkbox-custom {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 2px;

    .label {
        display: inline-block;
        vertical-align: middle;
    }
}

.checkbox:checked+.checkbox-custom::before {
    content: "";
    display: block;
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    background: url(http://5bro.ru/template/storage/checkmark-1.svg);
    -webkit-background-size: contain;
    background-size: contain;
    border-radius: 2px;
}

.agree-holder {}

.contento {
    flex-grow: 1;
    flex-shrink: 0;
}

/* ===== Form Elements End ===== */

/* ===== Page Elements ===== */

.centro {
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1400px;
}

.content {
    padding: 30px 0;
}

.logo {
    display: block;
    width: 100%;
    max-width: 200px;

    img,
    svg {
        display: block;
        width: 100%;
    }
}

.img-holder {

    img,
    svg {
        display: block;
        width: 100%;
        height: 100%;
    }
}

.ico {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 40px;
    max-height: 40px;

    img,
    svg {
        width: 100%;
        height: 100%;
    }
}

/*Lisn*/
.lisn {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0 0 10px 0;
        padding: 0;
        gap: 20px;

        img,
        svg {
            display: block;
            width: 100%;
        }
        
        * {
            margin: 0 5px 0 0;
        }
    }

    &.nf li {
        display: block;
    }

    &.lima-20 {
        li {
            margin-bottom: 20px;
        }
    }

    &.lima-30 {
        li {
            margin-bottom: 30px;
        }
    }

    &.lima-40 {
        li {
            margin-bottom: 40px;
        }
    }
}

.title-holder {
    margin: 0 0 20px;
    .title{
        margin-top: 0;
    }
}

.topic {
    margin-top: 0;
}

.nope {
    p:first-child {
        margin-top: 0;
    }
}

.coverin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.radi {
    border-radius: var(--rootBdrs);
}

.padi {
    padding: 30px 25px;
}

.shad {
    box-shadow: 0px 0px 17.69px -4px rgba(0, 0, 0, 0.25);
}

/*Flex Nav*/
.nav-holder {
    width: 100%;
}
.flexnav {
    position: relative;
    background-position: 100% 0;
    background-size: 200% 200%;
    width: 100%;
    z-index: 99;

    ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            position: relative;
            width: 100%;
        }

        li a {
            position: relative;
            padding: 12px 0;
            text-align: center;
            display: block;
            font-size: 1.6rem;
            white-space: nowrap;
            text-decoration: none;
            color: #494949;
            transition: 0.3s;
        }

        li a:hover {
            color: var(--colorRootHov);
            transition: var(--transit);
        }

        /* li a:hover:after {
            content: '';
            position: absolute;
            bottom: 0;
            display: block;
            height: 2px;
            width: 100%;
            background: #243153;
            transition: 0.2s;
        } */


        li a:first-child:nth-last-child(2):after {
            content: '';
            position: relative;
            display: inline-block;
            background: url(../img/arrow-down-black.svg) no-repeat center;
            background-size: contain;
            margin: 0 0 0 10px;
            padding-top: 5px;
            width: 11px;
            height: 14px;
        }

        /*Twice level menu*/

        li ul {
            display: none !important;
            /* box-shadow: 2px 3px 5px #ebebeb; */
            z-index: 99;
        }

        li:hover ul {
            position: absolute;
            display: flex !important;
            flex-direction: column;
            width: 100%;
            background: #fff;
            transition: 0.3s;
        }

        li ul li a {
            color: #000;
            white-space: normal;
        }

        /*Third level menu*/

        li ul li ul {
            display: none !important;
            z-index: 99;
        }
    }
}

/*Toggle button*/

.toggle {
    width: 100%;
    text-align: center;
    display: none;
    padding: 5px 0;
    cursor: pointer;
    text-transform: uppercase;
    color: #fff;
}

.toggle-btn {
    display: inline-block;

    svg,
    img {
        width: 50px;
        height: 30px;
    }
}

/* Footer */
.footer-holder {
    background: #333;
    color: #fff;
}

.footer {
    padding: 50px;
}

.copyright {
    padding: 25px 0;
    margin: 25px 0 0 0;
    font-size: 1.4rem;
    border-top: solid 1px #a29f9c;
    color: #bfbfbf;
}

/*Great Greed*/
.great-grid {
    display: grid;
    gap: 20px;

    /*line style*/
    &.line {
        grid-template-columns: repeat(1, 100%);
    }

    &.line .unit {
        display: flex;
        align-items: start;
    }

    /*grid style*/
    &.grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /*chess style*/
    &.chess .unit {
        display: flex;
        align-items: start;
    }

    &.chess .unit:nth-child(even) .img-holder {
        order: 2;
        margin: 0 0 15px 15px;
    }

    .row {
        margin-bottom: 15px;
    }

    /*other greed elements style*/
    .topic {
        font-weight: 600;
        font-size: 2.4rem;
        margin: 0 0 10px 0;
    }

    .date {
        color: #888;
        margin: 0 0 10px 0;
    }

    .description {
        color: #888;
        margin: 0 0 10px 0;
        font-size: 1.8rem;
    }

    .img-holder {
        overflow: hidden;
        /* img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        } */
    }
}

@media(max-width: 768px) {

    .great-grid {
        &.line .unit {
            flex-direction: column;
        }

        &.line .img-holder {
            width: 100%;
            max-width: 100%;
            max-height: 200px;
            margin: 0 0 10px 0;
        }

        &.chess .unit {
            flex-direction: column;
        }

        &.chess .unit:nth-child(even) .img-holder {
            order: inherit;
            margin: 0 0 15px 0;
        }
    }
}

/*Flex Grid*/
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    &.nw {
        flex-wrap: nowrap;
    }

    .unit {
        flex: 1 1 30%;
        padding: 20px;
        text-align: center;
        box-shadow: 1px 1px 5px #e3e3e3;
    }
}



/*Table*/
table {
       /* border-collapse: collapse; */
       /* border: 1px solid #333; */
    thead tr,
    thead:hover tr {
        background: var(--colorRoot);
        color: #fff;
    }

    tfoot tr,
    tfoot:hover tr {
        background: #333;
        color: #fff;
    }

    tr {
        transition: 0.2s;

        &:hover {
            background: #c7c7c7;
            transition: 0.2s;
        }

        td {
            border-bottom: 1px solid #999;
            padding: 5px 10px;
        }

        &:last-of-type td {
            border-bottom: none;
        }
    }
}

/* Lic */
.lic {
    display: flex;
    align-items: center;

    &.if {
        display: inline-flex;
    }

    &.w {
        flex-wrap: wrap;
    }

    &.sb {
        justify-content: space-between;
    }

    &.sa {
        justify-content: space-around;
    }

    &.c {
        justify-content: center;
    }

    &.ais {
        align-items: start;
    }

    &.aie {
        align-items: end;
    }

    &.v {
        flex-direction: column;
    }

    &.gap {
        column-gap: 10px;
    }

    &.child>* {
        display: flex;
        align-items: center;
    }

    &.greed>* {
        flex: 1 1 100%;
    }
}

/*Pagination*/
.pagination {
    padding: 20px 0 0 0;
    list-style: none;
    text-align: center;

    li {
        display: inline-block;

        &.active {
            padding: 10px;
        }

        a {
            display: block;
            text-decoration: none;
            padding: 10px;
        }
    }
}



/* Section */
.section {
    padding: 50px 0 100px;
}

/* Tabs */
.tabs__content {
    display: none;

    &.active {
        display: block;
    }
}

.tabs__caption {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: solid 1px #e1e5e7;

    li {
        display: inline-block;
        cursor: pointer;
        padding: 10px 20px;
        background: #989898;

        &.active {
            color: #fff;
            background: #385ba1;
        }
    }
}

/*Spoiler*/
.spoiladoor {
    display: none;

    .info {
        padding: 20px 0 0 0;
        margin: 0;
        max-width: 85%;
    }
}

.spoilakey {
    position: relative;
    background: #fff;
    padding: 30px 40px;
    border-radius: 30px;
    margin: 0 0 20px 0;
    box-shadow: 0px 0px 17.69px -4px rgba(0, 0, 0, 0.25);

    .topic-holder {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        margin: 0;
        cursor: pointer;

        .topic {
            margin: 0;
            flex: 0 1 85%;
        }
    }
}

.cross {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F4F6FB;
    width: 40px;
    height: 40px;
    border-radius: 50px;

    .plus {
        position: absolute;
        height: 1px;
        width: 60%;
        background: #629CF4;
        top: auto;
        bottom: auto;
        display: block;
    }

    .minus {
        position: absolute;
        width: 1px;
        height: 60%;
        background: #629CF4;
        top: auto;
        bottom: auto;
        display: block;
    }
}



/* Breadcrumbs */
.breadcrumbs {
    margin: 0 0 10px 0;
    padding: 3px 5px;
    list-style: none;
    background: #2e2e2e;
    color: #fff;
    font-size: 12px;

    li {
        display: inline-block;
    }

    li:after {
        content: " /";
    }

    li:last-child:after {
        content: "";
    }

    li a {
        color: #fff;
    }
}

/*DL list*/
.dl-list {
    dl {
        display: flex;
    }

    dt {
        flex: 1 1 35%;
    }

    dd {
        flex: 1 1 65%;
    }
}

/*Adapt-T*/
.adapt-t {
    width: 100%;
    position: relative;
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .adapt-t {
        background-image: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0)), linear-gradient(0deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.25));
        background-repeat: no-repeat, no-repeat;
        background-position: right 100%, right 100%;
        background-size: 4px 100%, 4px 100%;
        background-origin: padding-box, border-box;
        border-bottom: 1px solid transparent;
        box-shadow: inset 0px 0px 5px 0px rgba(50, 50, 50, 0.75);

        &::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            background-color: #F5F5F5;
        }

        &::-webkit-scrollbar {
            width: 9px;
            height: 9px;
            background-color: #F5F5F5;
        }
        &::-webkit-scrollbar-thumb {
            border-radius: 10px;
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
            background-color: #555;
        }

        table {
            width: 100% !important;
        }
    }
}

/* ===== Page Elements End ===== */

/* ===== Additional Elements ===== */

.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

.tac {
    text-align: center;
}

.tar {
    text-align: right;
}

.tal {
    text-align: left;
}

/* Display */
.dn {
    display: none;
}

.dg {
    display: grid;
}

.df {
    display: flex;
}

.ws {
    white-space: nowrap;
}

/* Centro Flex */
.cf {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Additional Elements End ===== */

/* ===== Buttons ===== */

.init-btn {
    display: inline-block;
    text-align: center;
    padding: 12px 20px;
    white-space: nowrap;
    margin: 0;
    border-radius: var(--rootBdrs);
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    &:hover {
        transition: 0.2s;
    }
}

.tag-btn {
    display: inline-block;
    padding: 5px 15px;
    margin: 0;
    font-size: 1.4rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    &:hover {
        transition: 0.2s;
    }
}

/*Blue Button*/
.blue-btn {
    color: #fff;
    background: var(--colorRoot);
    &:hover {
        color: #fff;
        background: hsl(216, 100%, 53%);
    }
    &.t {
        color: rgba(116, 143, 200, 1);
    }
}

/*White Button*/
.white-btn {
    color: var(--colorRoot);
    background: #fff;
    &:hover {
        color: var(--colorRoot);
        background: #e6e6e6;
    }
    
    &.t {
        color: #fff;
    }
}



/*Black Button*/
.black-btn {
    color: #fff;
    background: hsl(0, 0%, 20%);
    &:hover {
        color: #fff;
        background: hsl(0, 0%, 10%);
    }
    
    &.t {
        color: hsl(0, 0%, 20%);
    }
}



/*Green Button*/
.green-btn {
    color: #fff;
    background: hsl(113, 78%, 32%);
    &:hover {
        color: #fff;
        background: hsl(113, 78%, 22%);
    }
    
    &.t {
        color: hsl(113, 78%, 32%);
    }
}

/*Red Button*/
.red-btn {
    color: #fff;
    background: hsl(0, 75%, 38%);
    &:hover {
        color: #fff;
        background: hsl(0, 75%, 28%);
    }
    
    &.t {
        color: hsl(0, 75%, 38%);
    }
}

/*Gray Button*/
.gray-btn {
    color: #fff;
    background: hsl(0, 0%, 59%);
    &:hover {
        color: #fff;
        background: hsl(0, 0%, 49%);
    }
    
    &.t {
        color: hsl(0, 0%, 49%);
    }
}

.t,
.t:hover {
    background: none;
}

/* ===== Buttons End ===== */



/* Left Right Holder */

.hlr {
    display: flex;

    .left,
    .right {
        flex: 1 1 50%;
    }
}

/* News Content */
.news-content {
    &:after {
        content: "";
        display: table;
        clear: both;
    }

    .inside-img {
        display: inline-block;
        float: left;
        max-width: 50%;
        margin: 0 25px 0 0;
    }

    p {
        &:first-of-type {
            margin-top: 0;
        }

    }
}

/* Ajax Hint */
.ajax-hint {
    position: fixed;
    z-index: 999;
    background: orange;
    color: #fff;
    left: 0;
    right: 0;
    padding: 15px;
    text-align: center;
}

.hint-cross {
    position: absolute;
    right: 15px;
    cursor: pointer;
    top: 30%;
}