:root {
    --bg-body: #0d0d11;
    --bg-card: #16161c;
    --bg-surface: #1c1c24;
    --bg-hover: #222230;
    --accent: #e8453c;
    --accent-soft: #ff6b5e;
    --accent-glow: rgba(232,69,60,.15);
    --text-primary: #eaeaea;
    --text-secondary: #9a9aa8;
    --text-muted: #5e5e6e;
    --border: #2a2a36;
    --border-hover: #3a3a4a;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    background: var(--bg-body);
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    font-family: var(--font);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: left;
}

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

a {
    color: var(--accent-soft);
    text-decoration: none;
    transition: color .15s;
}
a:hover {
    color: #ff8a7f;
}

p { margin: 0 0 10px; }

img { max-width: 100%; }

.top-menu {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 20px;
}

.logo {
    float: none;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    height: auto;
    background: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -.3px;
    text-decoration: none;
}

.logo a::before {
    content: 'FA';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.top-bar-link {
    text-align: right;
    display: flex;
    gap: 4px;
}

.top-bar-link a {
    display: inline-flex;
    align-items: center;
    height: auto;
    line-height: normal;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    box-shadow: none;
    transition: all .15s;
}

.top-bar-link a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    box-shadow: none;
}

.content {
    overflow: visible;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
}

.h1-bar {
    box-shadow: none;
    min-height: auto;
    text-align: left;
    width: auto;
    margin: 0;
    padding: 20px 20px 8px;
}

h1 {
    display: block;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.4px;
    line-height: 1.25;
    text-overflow: initial;
    color: var(--text-primary);
}

h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.breadcrumbs {
    padding: 14px 20px 0;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs a {
    color: var(--text-secondary);
    font-weight: 500;
}
.breadcrumbs a:hover { color: var(--accent-soft); }

.page-meta {
    padding: 4px 20px 14px;
    display: flex;
    gap: 16px;
}

.page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.infos {
    padding: 0 20px;
    margin: 0 0 16px;
    clear: both;
    text-align: left;
}

.infos p {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

.infos a {
    color: var(--accent-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .15s;
}
.infos a:hover {
    border-bottom-color: var(--accent-soft);
}

.categoryes {
    padding: 8px 16px 16px;
    text-align: left;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.categoryes ul {
    display: contents;
}

.categoryes li {
    margin: 0;
    background: none;
    border: none;
    display: inline-flex;
}

.categoryes li a {
    display: inline-flex;
    padding: 7px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
    white-space: nowrap;
}

.categoryes li a:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.neutral-title {
    clear: both;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 20px 10px;
    border-bottom: none;
    margin: 8px 0 0;
    color: var(--text-primary);
}

.thumbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 12px 12px;
}

.thumbs {
    position: relative;
    width: 100%;
    margin: 0;
    float: none;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    aspect-ratio: 2/3;
    transition: transform .35s ease;
}

.thumbs:hover img {
    transform: scale(1.05);
}

.thumbs a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    position: relative;
}

.thumbs a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,.8));
    pointer-events: none;
    transition: background .3s;
}

.thumbs:hover a::after {
    background: linear-gradient(transparent 40%, rgba(232,69,60,.35) 100%);
}

.thumbs a:hover {
    color: #ffffff;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.card-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    line-height: 1.3;
}

.card-stats {
    display: flex;
    gap: 10px;
}

.card-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,.6);
}

.card-stat::before {
    content: '';
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: .7;
    background-size: contain;
    background-repeat: no-repeat;
}

.card-views::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.card-photos::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

.page-meta-item::before {
    content: '';
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: .6;
    background-size: contain;
    background-repeat: no-repeat;
}

.meta-views::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%239a9aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.meta-photos::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%239a9aa8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
}

.h2 {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: none;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.photo-grid-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 12px 12px;
}

.photo-grid-wrap .thumbs {
    border-radius: var(--radius-md);
}

.photo-grid-wrap .thumbs a::after {
    display: none;
}

.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    width: 100%;
    float: none;
    margin-top: 20px;
}

.foot {
    overflow: visible;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    padding: 24px 20px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.foot-bar {
    padding: 0;
    border-bottom: none;
    margin: 0;
    display: flex;
    gap: 20px;
}

.foot-bar a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}
.foot-bar a:hover {
    color: var(--text-primary);
}

.foot p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.foot p a {
    color: var(--text-secondary);
    font-weight: 500;
}

#to-top {
    cursor: pointer;
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    display: none;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(232,69,60,.4);
    transition: transform .2s, box-shadow .2s;
    z-index: 99;
    background-image: none;
}

#to-top::after {
    content: '\25B2';
    display: block;
}

#to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232,69,60,.5);
    background-color: var(--accent);
}

.fancybox__backdrop {
    background: rgba(0,0,0,.92);
}

@media screen and (min-width: 1400px) {
    .thumbs { width: 100%; }
    .foot { max-width: 1400px; }
}

@media screen and (max-width: 1100px) {
    .thumbs-grid,
    .photo-grid-wrap {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 830px) {
    .thumbs-grid,
    .photo-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
    .thumbs { width: 100%; }
}

@media screen and (max-width: 560px) {

    .top-menu {
        height: 50px;
        padding: 0 10px;
    }

    .top-bar-link {
        text-align: right;
        width: auto;
        gap: 0;
        flex-shrink: 0;
    }

    .top-bar-link a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .logo {
        float: none;
        min-width: 0;
    }

    .logo a {
        font-size: 16px;
    }

    .logo a::before {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .thumbs-grid,
    .photo-grid-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 8px 8px;
    }

    .thumbs {
        width: 100%;
    }

    .thumbs img {
        height: auto;
    }

    .h1-bar {
        padding: 14px 14px 6px;
    }

    h1 {
        font-size: 20px;
    }

    .categoryes {
        padding: 6px 12px 12px;
        gap: 5px;
    }

    .categoryes li {
        display: inline-flex;
    }

    .categoryes li a {
        padding: 6px 11px;
        font-size: 12px;
    }

    .infos {
        padding: 0 12px;
    }

    .infos p {
        padding: 16px 18px;
    }

    .neutral-title {
        padding: 14px 14px 8px;
        font-size: 15px;
    }

    .foot {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 14px;
    }

    .foot-bar {
        gap: 16px;
    }

    .breadcrumbs {
        padding: 10px 14px;
    }

    .page-meta {
        padding: 2px 14px 10px;
        gap: 12px;
    }

    .page-meta-item {
        font-size: 12px;
    }

    .h2 {
        font-size: 12px;
        bottom: 8px;
        left: 10px;
    }

    .card-overlay {
        padding: 20px 10px 8px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-stat {
        font-size: 10px;
    }

    .card-stat::before {
        width: 11px;
        height: 11px;
    }
}