* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #d89881 0%, #c78973 100%);
    font-size: 16px;
    color: #460000;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

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

a {
    color: #2a0a00;
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #000;
}

a:focus {
    outline: 2px solid #460000;
    outline-offset: 3px;
    border-radius: 2px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 15px 20px;
    color: #2a0a00;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #2a0a00;
}

p {
    margin: 0 0 16px 0;
    line-height: 1.7;
}

/* Header */
.top-menu {
    background: rgba(216, 131, 100, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.top-menu .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.logo a {
    display: block;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories {
    display: flex;
    gap: 5px;
}

.categories a {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    position: relative;
}

.categories a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #2a0a00;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.categories a:hover::after {
    transform: scaleX(1);
}

/* Main content */
.h1-bar {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    margin: 10px 0;
}

/* Info blocks */
.infos {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.infos a {
    text-decoration: underline;
    font-weight: 600;
}

/* Grid container for cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.neutral {
    position: relative;
}

.thumbs {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 5/7;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbs:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.thumbs a {
    display: block;
    height: 100%;
    position: relative;
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

.thumbs img[data-src] {
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    margin: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.thumbs:hover .h2 {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}

/* Recommendations */
.neutral-title {
    font-size: 20px;
    font-weight: 700;
    padding: 15px 20px;
    margin: 30px 0 15px 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border-left: 4px solid #2a0a00;
}

.categoryes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 20px;
}

.categoryes-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.categoryes-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.categoryes-item a {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
}

/* Footer */
.footer {
    margin-top: 50px;
    background: rgba(216, 131, 100, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.foot {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a0f0a 0%, #2a1810 100%);
        color: #f4c7b8;
    }
    
    h1, h2 {
        color: #f4c7b8;
    }
    
    a {
        color: #f4c7b8;
    }
    
    a:hover {
        color: #fff;
    }
    
    .top-menu {
        background: rgba(42, 24, 16, 0.95);
    }
    
    .h1-bar {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .infos {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .thumbs {
        background: rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
    
    .thumbs:hover {
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    }
    
    .neutral-title {
        background: rgba(0, 0, 0, 0.3);
        border-left-color: #f4c7b8;
    }
    
    .categoryes-item {
        background: rgba(0, 0, 0, 0.3);
    }
    
    .categoryes-item:hover {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .footer {
        background: rgba(42, 24, 16, 0.95);
    }
    
    .categories a::after {
        background: #f4c7b8;
    }
}

/* Tablet */
@media screen and (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    h1 {
        font-size: 20px;
        padding: 12px 15px;
    }
    
    .categories a {
        padding: 15px;
        font-size: 14px;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .content {
        padding: 0 10px;
    }
    
    .top-menu .content {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }
    
    .logo a {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .categories {
        justify-content: center;
    }
    
    .categories a {
        flex: 1;
        text-align: center;
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .categories a::after {
        left: 10px;
        right: 10px;
    }

    h1 {
        font-size: 18px;
        padding: 10px 15px;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 0;
    }
    
    .h2 {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .infos {
        padding: 15px;
        margin: 15px 0;
    }
    
    .neutral-title {
        font-size: 17px;
        padding: 12px 15px;
        margin: 20px 0 10px 0;
    }
    
    .categoryes {
        flex-direction: column;
        gap: 8px;
    }
    
    .categoryes-item {
        width: 100%;
    }
    
    .categoryes-item a {
        padding: 12px 15px;
    }
    
    .foot {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        font-size: 13px;
    }
}