* {
    padding: 0px;
    margin: 0px;
    border: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:focus,
:active {
    /*outline: none;*/
}

a:focus,
a:active {
    /* outline: none;*/
}

/* Links */

a,
a:link,
a:visited {
    /* color: inherit; */
    text-decoration: none;
    /* display: inline-block; */
}

a:hover {
    /* color: inherit; */
    text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: inherit;
    font-weight: inherit;
}

ul,
ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

.link {}

/* Form */

input,
textarea,
button,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

button,
input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

body {
    font-family: Arial, sans-serif;
}

.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.header {
    margin-top: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header__logo {
    background-color: black;
}

.header__img {
    max-width: 150px;
}

.header__input {
    margin-right: 10px;
}

.input {
    width: 360px;
    background: #fff;
    border: 2px solid #a8a8a8;
    border-right: 0;
    border-radius: 0;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
    color: #000;
    font-size: 18px;
    height: 38px;
    margin: 0;
    padding: 4px 10px;
}

.header__button {
    background: #d9d9d9;
    border: 2px solid #a8a8a8;
    border-left: 0;
    border-radius: 0;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    height: 38px;
    margin: 0;
    padding: 0 15px;
    position: relative;
    transition: background .2s;
    position: absolute;

}

.header__button ::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 15px;
    top: 8px;
    left: 8px;
    background: url(../img/search.png);
}

.header__title {
    font-weight: 700;
    font-size: 20px;
}

.header__span {
    color: #de2600;
    font-weight: 600;
}

.header__nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header__link {

    color: #777;
    margin: 4px 0 4px 4px;
    padding: 4px 4px 3px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    text-align: center;
    padding-right: 25px;
    background: url(../img/nas.png) no-repeat right;
}

.header__link--red {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #de2600;
    color: #fff;
    margin: 4px 0 4px 4px;
    padding: 8px 12px 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;

}

.header__bottom {
    padding-top: 10px;

}

.header-mob__title {
    display: none;
}

.header__column {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.header-bottom__link {
    background: #d9d9d9;
    display: inline-block;
    font-size: 14px;
    padding: 0 6px;
    line-height: 26px;
    color: #000;
}

.red-active {
    background: #de2600;
    color: #fff;
    font-weight: 700;
}

.header-mob {
    display: none;
}

/* -----------------------------main--------------------------------------------------- */
.main {
    margin-top: 15px;
}

.main__column {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;

}

.main__item {}

.main__img {
    position: relative;
}

.main__p {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #de2600;
    border-radius: 3px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
    padding: 1px 3px;
}

.main__title {
    display: block;
    color: #000;
    padding-top: 3px;
    text-align: center;
    font-size: 14px;
}

.main__box {
    margin-top: 5px;
    display: flex;
    gap: 5px;
    justify-content: center;
    color: #555;
    font-size: 13px;
}

.main__name {
    color: #000;
    text-decoration: underline !important;
}

.main__views {}

.main__time {
    background: #777;
    border-radius: 3px;
    color: #fff;
    font-size: .83em;
    height: 18px;
    line-height: 18px;
    margin-left: 4px;
    padding: 0 3px;
}

/* ------------------------------------------------------------------------- */
.navigation {
    margin-top: 30px;
}

.navigation__column {
    text-align: center;
}

.navigation__li {
    color: #000;
    cursor: pointer;
    display: inline-block;
    border: 1px solid #ccc;
    font-size: 14px;
    margin-bottom: 2px;
    padding: 4px 8px;
    text-decoration: none;
    transition: all 0.15s;
    margin-right: 10px;
}

.no {
    border: none;
}

.footer {
    margin-top: 40px;
    font-size: 12px;
}

.footer__text {}

.ots {
    padding-top: 10px;
}

@media (max-width:1200px) {
    .input {
        width: 200px;
    }
}

@media (max-width:998px) {
    .input {
        width: 200px;
    }

    .header__title {
        font-weight: 700;
        font-size: 18px;
    }

    .li-19,
    .li-18,
    .li-17,
    .li-16 {
        display: none;
    }

    .header__title {
        display: none;
    }

    .main__column {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:768px) {
    .main__column {
        grid-template-columns: repeat(2, 1fr);
    }

    .li-13,
    .li-14,
    .li-16,
    .li-15 {
        display: none;
    }

    .mx {
        display: none;
    }

    .input {
        display: none;
    }

    .header__button {
        display: none;
    }
}

@media (max-width:600px) {
    .header {
        display: none;
    }

    .header-mob {
        background: #000;
        display: block;
        padding: 5px 10px;
    }

    .header__inner {

        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header__box {
        display: flex;
        gap: 15px;
    }

    .header__nas {
        padding: 5px;
    }

    .header__logo {
        width: 150px;
    }

    .header-bottom__link {
        display: none;
    }

    .li-10,
    .li-11,
    .li-12 {
        display: none;
    }

    .header-mob__title {
        display: block;
        text-transform: uppercase;
        font-size: 12px;
        text-align: center;
        font-weight: 700;
    }

    .header-mob__title span {
        color: #de2600;
    }

    .wrapper {
        padding: 0px;
    }

    .main {
        padding: 0 10px;
    }

    .main__column {
        grid-template-columns: repeat(1, 1fr);
    }

    .main img {
        width: 100%;
    }
}

@media (max-width:470px) {
    .header__link--red {
        display: none;
    }

    .wrapper {
        padding: 0px 5px;
    }

    .header__link {
        color: #fff;
    }

    .li-9,
    .li-8,
    .li-7 {
        display: none;
    }

    .header__link {
        background: url(../img/nas-mob.png) no-repeat right;
    }

    .header__img {
        padding-left: 35px;

    }
}

@media (max-width:370px) {
    .header__logo {
        width: 110px;
    }

    .li-5,
    .li-6 {
        display: none;
    }
}