.breadcrumbs,
.logo {
    white-space: nowrap;
}

body,
h1,
h2 {
    background-color: #0f0b0c;
}

.logo,
a,
a.custom-link,
header p a,
section li:hover a {
    color: #ff5c2c;
}

article a,
aside a,
nav a,
section li a {
    color: #cab9b9;
}

.logo em,
.logo i {
    font-style: normal;
}

.logo,
.logo em,
article .th,
article a,
footer p,
header p,
nav a,
section ul {
    vertical-align: top;
}

aside h3,
h1,
h2 {
    font-weight: 300;
}

*,
section ul {
    padding: 0;
    margin: 0;
}

aside a,
section li {
    margin: 2px 0;
}

article,
aside a,
section li {
    text-align: left;
}

.inline-spots,
.title,
article a,
aside h3,
nav,
ul.desc li {
    text-align: center;
}

header form button,
header form input {
    outline: 0;
    font-size: 14px;
    padding: 0 10px;
}

.half ul li,
aside a,
section ul.desc li,
section ul.descg li,
ul.desc li a {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.half ul li,
section ul.desc li,
section ul.descg li,
ul.desc li {
    text-transform: none;
}

/* Шрифт Pacifico */
@font-face {
    font-family: Pacifico;
    font-style: normal;
    font-weight: 400;
    src: local('Pacifico Regular'),
         local('Pacifico-Regular'),
         url(https://fonts.gstatic.com/s/pacifico/v12/FwZY7-Qmy14u9lezJ-6H6MmBp0u-.woff2) format('woff2');
    font-display: swap;
}

a {
    text-decoration: none;
    font-size: 16px;
}

.logo i,
body {
    color: #a59999;
}

img {
    border: 0;
}

input {
    outline: 0;
}

body {
    font-size: 13px;
    font-family: Veranda, Arial, sans-serif;
}

.wrapper {
    display: block;
    width: 99%;
    max-width: 1240px;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
}

.inline-spots > div,
.logo,
.logo em,
.related-searches li,
footer p,
h1,
h2,
header p,
nav a,
section ul {
    display: inline-block;
}

article,
footer,
header,
nav,
section {
    display: block;
    height: auto;
    overflow: hidden;
    padding: 5px 0;
}

footer,
nav,
section {
    clear: both;
}

h1,
h2 {
    vertical-align: middle;
    padding: 5px 10px;
    font-size: 17px;
}

.logo {
    float: right;
    font-family: Lemon, cursive;
    font-size: 44px;
    padding: 5px;
}

.logo em {
    font-family: 'Roboto Condensed', sans-serif;
    color: #a29b9b;
    padding: 0 5px;
    line-height: 56px;
}

article .th,
article a {
    display: inline-block;
    font-size: 15px;
    line-height: 14px;
}

aside a,
nav a,
section li {
    line-height: 2.2;
    box-sizing: border-box;
    text-transform: capitalize;
}

footer p,
header p {
    float: left;
    width: 100%;
    max-width: 640px;
    padding: 8px 0;
}

aside a,
aside h3,
ul.desc {
    padding: 0 5px;
}

footer p {
    max-width: calc(100% - 500px);
}

.breadcrumbs {
    overflow-x: auto;
    padding: 0 8px;
}

.title,
aside a {
    width: 100%;
    overflow: hidden;
}

.breadcrumbs h1 {
    vertical-align: initial;
}

.title {
    display: block;
    background-image: url(../img/title-bg.png);
    background-position: left center;
    background-repeat: repeat-x;
    height: auto;
}

article {
    box-sizing: border-box;
    display: block;
    width: calc(100% - 120px);
    float: left;
}

/* Галерея превью */
.custom-gallery {
    margin: -3px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.custom-gallery .th,
.custom-gallery a img {
    width: 166px !important;
    height: 225px !important;
}

.custom-gallery .th {
    margin: 3px;
    border: 1px solid transparent;
}

#upButton:hover,
.custom-gallery .th:hover,
article a:hover img {
    border-color: #ff5c2c;
}

/* Галерея SUB_1 */
.custom-pics_gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.sidebar,
aside {
    float: right;
    width: 120px;
}

article .th {
    width: 150px !important;
    margin: 4px 2px;
}

.sidebar,
article .title,
aside,
aside a,
aside h3 {
    display: block;
}

.pagination a,
article a {
    margin: 2px;
}

article a img {
    width: 150px !important;
    height: 200px !important;
    border: 1px solid #857575;
}

article a > div {
    width: 151px !important;
    height: 201px !important;
    border: 0.001em solid #8f8d8d;
}

article a > div:hover {
    border: 0.001em solid #ff5c2c;
}

article a div a {
    width: 152px !important;
    height: 202px !important;
    transform: translate(-2px, -2px) !important;
}

article a:hover {
    color: #b41e20;
}

.sidebar {
    margin: 7px 0 0;
    height: 500px;
}

aside {
    position: relative;
    top: 0;
}

aside h3 {
    background-color: #a59999;
    color: #0f0b0c;
    line-height: 2.5;
    font-size: 14px;
}

aside a,
nav a {
    background-color: #3f3333;
    font-size: 13px;
}

aside a {
    border: 1px solid #000;
}

aside a:hover,
nav a.current,
nav a:hover {
    color: #0f0b0c;
    border-color: #ff5c2c;
    background-color: #ff5c2c;
}

nav {
    padding: 10px 0;
}

nav a {
    padding: 0 10px;
    border: 1px solid #514142;
}

.pagination-title {
    display: block !important;
}

section ul,
section ul.desc {
    width: 30%;
}

section li {
    list-style: none;
    padding: 0 5px 0 15px;
    font-size: 11px;
    color: #9b9b9b;
}

section li a {
    font-size: 12px;
    padding: 0 10px;
    font-weight: 600;
}

.inline-spots > div {
    margin: 2px !important;
}

.related-searches,
section ul.desc li,
section ul.descg li {
    text-align: left;
    overflow: hidden;
}

/* Адаптивные стили */
@media all and (max-width: 1400px) {
    header p {
        max-width: 550px;
    }
}

@media all and (max-width: 1280px) {
    .wrapper {
        max-width: 1098px;
    }
}

@media all and (max-width: 1120px) {
    header,
    section ul {
        text-align: center;
    }

    .wrapper {
        max-width: 938px;
    }

    .logo,
    header p {
        float: none;
    }

    article {
        text-align: left;
    }

    section ul {
        width: 100%;
        max-width: 100%;
    }

    section li {
        display: inline-block;
        width: auto;
    }
}

@media all and (max-width: 959px) {
    .sidebar,
    .sidebar:before {
        width: 40px;
        display: block;
    }

    .sidebar:before,
    article,
    footer {
        text-align: center;
    }

    article {
        width: 100%;
        padding: 0;
    }

    .sidebar {
        top: 5px;
        right: 5px;
        margin: 0;
        background-color: transparent;
        padding: 5px;
        height: 35px;
        overflow: hidden;
        position: absolute !important;
    }

    .sidebar * {
        display: none;
    }

    .sidebar:before {
        content: '== ==';
        height: 40px;
        background-color: #ff5c2c;
        color: #fff;
        font-size: 24px;
        line-height: 14px;
        padding: 7px 0;
        box-sizing: border-box;
        border-radius: 3px;
        cursor: pointer;
    }

    .sidebar.open {
        width: 95%;
        background-color: #222;
        height: auto;
        overflow: hidden;
        padding: 5px 5px 10px;
        box-sizing: border-box;
    }

    .sidebar.open aside {
        background-color: #0f0b0c;
        width: 100%;
    }

    .sidebar.open:before {
        content: 'x';
        line-height: 22px;
        float: right;
    }

    .sidebar.open * {
        display: block;
        position: relative !important;
        margin-top: 7px;
    }

    .sidebar.open a {
        width: 33%;
        margin: 0;
        font-size: 11px;
    }

    .sidebar h3 {
        float: none;
        clear: both;
    }

    footer .logo {
        float: none;
        margin: 0;
    }

    footer p {
        max-width: 100%;
    }

    .cats-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
}

@media all and (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .logo em {
        line-height: 26px;
    }

    header p {
        padding: 20px 0;
    }

    .sidebar.open a {
        width: 49%;
    }

    article a {
        margin: 6px;
    }

    .related-searches {
        max-height: 130px;
    }
}

/* Хедер / поиск */
.header-inner {
    width: 100%;
    position: relative;
    display: block;
}


@media screen and (max-width: 960px) {
    header {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .logo {
        padding: 10px;
        margin: 0;
        font-size: 26px;
    }
}

.logo {
    margin-right: 20px;
}

header {
    display: flex;
    padding: 5px;
    align-items: center;
}

header p {
    float: none;
}

header form {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

header form input {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    line-height: 34px;
    border: 1px solid #5c5c5c;
}

header form button {
    position: absolute;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    margin: 0;
    right: 0;
    top: 1px;
    line-height: 32px;
    background-color: #b41e20;
    color: #fff;
    border: 1px solid #b41e20;
    text-transform: uppercase;
    cursor: pointer;
}

header form button:hover {
    background-color: #f1f1f1;
    color: #5c5c5c;
    border: 1px solid #f1f1f1;
    border-right: 1px solid #5c5c5c;
}

/* Related searches */
.related-searches {
    padding: 0 10px;
    list-style-type: none;
    margin-top: 5px;
}

.related-searches li {
    margin: 2px 7px 2px 2px;
}

.related-searches li a {
    display: block;
    color: #ee777b;
    position: relative;
    padding: 4px 6px 4px 7px;
    font-size: 18px;
}

.half ul,
.half ul li {
    vertical-align: top;
    display: inline-block;
}

.related-searches li a:hover {
    color: #5c5c5c;
    text-decoration: underline;
}

.related-searches li a:before {
    position: absolute;
    content: '';
    width: 4px;
    height: 4px;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    display: block;
    left: 0;
    top: 14px;
    background-color: #b41e20;
}

.half ul {
    max-width: 100%;
    width: 100%;
}

.half ul li {
    width: 49%;
    overflow: hidden;
}

section ul.descg {
    width: 49%;
}

section ul.desc li,
section ul.descg li {
    width: 100%;
}

@media (max-width: 768px) {
    section ul.descg {
        width: 100%;
    }
}

/* Скролл-хинт для related-searches */
@media (max-width: 685px) {
    @-webkit-keyframes scrollHint {
        0%,
        100% {
            -webkit-transform: translateX(0);
            transform: translateX(0);
        }
        50% {
            -webkit-transform: translateX(-15px);
            transform: translateX(-15px);
        }
    }

    @keyframes scrollHint {
        0%,
        100% {
            -webkit-transform: translateX(0);
            transform: translateX(0);
        }
        50% {
            -webkit-transform: translateX(-15px);
            transform: translateX(-15px);
        }
    }

    .related-searches {
        overflow: auto;
        white-space: nowrap;
        position: relative;
        -webkit-animation: 3s ease-in-out scrollHint;
        animation: 3s ease-in-out scrollHint;
        scrollbar-width: thin;
        scrollbar-color: rgba(80, 80, 80, 0.3) transparent;
    }

    .related-searches::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    .related-searches::-webkit-scrollbar-track {
        background: transparent;
    }

    .related-searches::-webkit-scrollbar-thumb {
        background-color: rgba(80, 80, 80, 0.3);
        border-radius: 3px;
    }

    .related-searches::-webkit-scrollbar-thumb:hover {
        background-color: rgba(80, 80, 80, 0.3);
    }
}

@media (max-width: 450px) {
    section ul.descg {
        width: 100%;
    }

    section ul.desc {
        width: 40%;
    }

    .pagination a:first-child,
    .pagination a:last-child {
        display: none;
    }
}

ul.desc li a {
    overflow: hidden;
    width: 100%;
    padding: 2px 0;
}

/* Баннеры */
.item-list1 img {
    max-width: 100%;
    margin: 6px;
}

.item-list1 {
    text-align: center;
    min-height: 70px;
}

/* Старый контейнер ad-spots (сейчас не используется) */
.ad-spots {
    min-height: 250px;
}

/* Кнопка вверх */
#upButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 35px;
    width: 35px;
    font-weight: 700;
    font-size: 20px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
}

#upButton img {
    width: 15px;
    height: 15px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

/* Кнопка Show More */
#showMoreBtn {
    background-color: #ff5c2c;
    color: #fff;
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/* Теги */
@media screen and (min-width: 685px) {
    .tags-list li:nth-child(n + 8):not(:last-child) {
        display: none;
    }

    #showMoreBtn {
        display: block;
    }

    .tags-list {
        list-style: none;
        padding: 0;
        margin: 4px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .hidden {
        display: none !important;
    }

    .show {
        display: block !important;
    }
}
