*{
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #111111;
    color: #f3f3f3;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

a:hover {
    color: #ffffff;
}

p {
    margin: 6px 0;
}

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .25s ease, background-color .25s ease;
}

.top-menu--scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
    background: rgba(0, 0, 0, 0.98);
}

.top-menu .content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}

.logo {
    margin-bottom: 0;
}

.logo a {
    font-size: 20px;
    display: inline-block;
    padding: 8px;
    border-radius: 999px;
    box-shadow: inset 0 -8px 12px rgba(173, 173, 173, 0.25);
}

.model {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    text-align: right;
}

.model a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    line-height: 1;
    font-size: 14px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 500;
    background: #1f1f1f;
    box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.45);
}

.model a:hover {
    background: #f97316;
    color: #fff;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.45);
}

.content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 8px 40px;
}

.h1-bar {
    background: #181818;
    box-shadow: 0 7px 20px -10px rgba(0, 0, 0, 1);
    min-height: 40px;
    width: 100%;
    margin: 12px 0;
    border-radius: 10px;
}

h1 {
    display: inline-block;
    margin: 8px 10px;
    padding: 4px 8px;
    font-size: 18px;
    font-weight: 700;
    max-width: 100%;
}

.neutral-title {
    background-color: #181818;
    clear: both;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 9px 10px;
    border-bottom: 1px solid #f97316;
    margin: 10px 0;
    border-radius: 10px;
}

.infos {
    padding: 10px 12px;
    margin: 0 0 10px 0;
    background: #181818;
    font-size: 15px;
    border-radius: 10px;
    line-height: 1.5;
}

.infos a {
    text-decoration: underline;
}

.cats{
    padding: 10px 8px;
    margin: 6px 4px 10px;
    background: #181818;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}

.cats_list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cats_item{
    display: inline-flex;
}

.cats_link{
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: #f3f3f3;
    background: #1f1f1f;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    box-shadow:
        inset 0 -7px 11px rgba(0,0,0,0.55),
        0 2px 6px rgba(0,0,0,0.35);
    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease,
        color .2s ease;
    white-space: nowrap;
}

.cats_item:nth-child(3n) .cats_link{
    background: #212121;
}
.cats_item:nth-child(4n) .cats_link{
    background: #222018;
}

.cats_link:hover,
.cats_link:focus-visible{
    background: #f97316;
    border-color: rgba(249,115,22,0.9);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 3px rgba(249,115,22,0.18),
        0 8px 18px rgba(0,0,0,0.6);
    outline: none;
}

.cats_item-active .cats_link{
    background: #323242;
    border-color: rgba(255,255,255,0.15);
    box-shadow: inset 0 -10px 14px rgba(0,0,0,0.65);
    cursor: default;
    transform: none;
}

.center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.neutral {
    display: inline-block;
    margin: 0;
    max-width: 100%;
}

.thumbs {
    background-color: #181818;
    margin: 0;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    width: 260px;
    max-width: 100%;
    cursor: pointer;
    transition: transform .18s ease-out, box-shadow .18s ease-out;
}

.thumbs img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.thumbs:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.65);
}

.h2 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    max-width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.0));
    color: #f9fafb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags {
    padding: 8px 8px;
    margin: 6px 4px;
    background: #181818;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}

.tags_list{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tags_item{
    display: inline-flex;
}

.tags_link{
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    font-size: clamp(12px, 1.8vw, 13.5px);
    line-height: 1;
    color: #fdfdfd;
    background: #1f1f1f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 999px;
    box-shadow:
        inset 0 -6px 10px rgba(0,0,0,0.55),
        0 2px 6px rgba(0,0,0,0.35);
    transition: 
        background-color .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease,
        color .2s ease;
    white-space: nowrap;
}

.tags_item:nth-child(3n) .tags_link{
    background: #212121;
}
.tags_item:nth-child(4n) .tags_link{
    background: #23201e;
}

.tags_link:hover,
.tags_link:focus-visible{
    background: #f97316;
    border-color: rgba(249,115,22,0.9);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 3px rgba(249,115,22,0.18),
        0 8px 18px rgba(0,0,0,0.6);
    outline: none;
}

.tags_item-promo .tags_link{
    background: linear-gradient(180deg, #2a1c16, #1f120e);
    border-color: rgba(249,115,22,0.35);
}

.pagination {
    margin: 16px 4px;
    padding: 8px 6px;
}

.pagination_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pagination_item {
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -6px 10px rgba(0,0,0,0.45);
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pagination_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    height: 100%;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.pagination_item:hover {
    background: #f97316;
    border-color: rgba(249,115,22,0.8);
    box-shadow: 0 0 18px rgba(249,115,22,0.45);
    transform: translateY(-1px);
}

.pagination_item:hover .pagination_link {
    color: #fff;
}

.pagination_item.is-active {
    background: #323242;
    border-color: rgba(255,255,255,0.15);
    box-shadow: inset 0 -10px 14px rgba(0,0,0,0.6);
    cursor: default;
    transform: none;
}

.footer {
    width: 100%;
    background: #000;
    color: #f3f3f3;
    font-weight: 500;
}

.foot {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 12px 18px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    margin-bottom: 14px;
}

.footer-block {
    min-width: 220px;
    flex: 1 1 220px;
}

.footer-title {
    font-size: 14px;
    margin-bottom: 6px;
    color: #fff;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    line-height: 1.5;
}

.footer-link {
    text-decoration: none;
    color: #b9994f;
    white-space: nowrap;
}

.footer-link::after {
    content: "•";
    margin-left: 6px;
    opacity: 0.7;
}

.footer-link:last-child::after {
    content: "";
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-copy {
    color: #aaa;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom a {
    text-decoration: none;
    color: #b9994f;
    font-weight: 500;
}

.footer-bottom a:hover,
.footer-link:hover {
    text-decoration: underline;
}

.footer-sep {
    color: #444;
}

@media (min-width: 1020px) {
    h1 {
        text-align: left;
        font-size: 20px;
    }

    .content {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 17px;
    }
    
    .model {
        justify-content: flex-end;
        gap: 4px;
    }

    .content {
        padding: 60px 6px 32px;
    }

    .thumbs {
        width: 46vw;
        max-width: 200px;
    }
    
    .tags_list {
        display: grid;
        grid-auto-flow: column;  
        grid-auto-columns: max-content; 
        grid-template-rows: repeat(2, max-content);
        gap: 6px 8px;
        
        overflow-x: auto;
        padding: 8px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        align-content: start;
    }

    .tags_item{
        width: max-content;
    }
    .tags_list::-webkit-scrollbar{
        height: 6px;
    }
    .tags_list::-webkit-scrollbar-thumb{
        background: rgba(255,255,255,0.15);
        border-radius: 999px;
    }
    
    .cats_list{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .cats_item{
        width: 100%;
    }

    .cats_link{
        width: 100%;
        justify-content: center;
        height: 36px;
        font-size: 14px;
    }
    
    .foot {
        padding: 14px 10px 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-link {
        white-space: normal;
        word-break: break-word;
    }
    
    .footer-bottom-links {
        order: 1;
    }
    
    .footer-copy {
        order: 2;
    }
}

@media (max-width: 480px) {
    .logo {
        order: 1;
    }

    .model {
        order: 2;
        width: 100%;
        justify-content: flex-end;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .model a {
        white-space: nowrap;
    }

    .thumbs {
        width: 92vw;
        max-width: 100%;
    }

    .h2 {
        font-size: 16px;
    }
}