body {
    background-image: url('../../materials/bg3.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.header {
    background: linear-gradient(90deg, rgba(139, 69, 19, 1) 0%, rgba(218, 121, 42, 1) 100%);
}

.links {
    background: rgba(255, 229, 182, 0.9);
}

.cards {
    background: rgba(255, 229, 182, 0.9);
    width: 100%;
    max-width: 800px; 
    margin: 20px auto;
    border-radius: 25px;
    text-align: center;
    padding: 15px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cards-list {
    display: flex;
    justify-content: center;
    gap: 20px; 
}

.card-column {
    display: flex;
    flex-direction: column;
    gap: 15px; 
    width: 100%;
    max-width: 380px; 
}

.card-item {
    background-color: rgba(255, 235, 198, 0.95);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #553019;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-info {
    padding: 16px 18px 18px;
    text-align: left;
}

.card-title {
    font-size: 1.2rem;
    color: #ce6921;
    margin-bottom: 10px;
    font-family: 'Cormorant Unicase', serif;
    font-weight: 700;
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 42px;
}

.card-btn {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Cormorant Unicase', serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    outline: none;
    cursor: pointer;
    background: rgb(161, 69, 3);
    color: rgba(255, 229, 182, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.card-btn:hover {
    transform: translateY(-2px);
    background: rgba(252, 229, 187, 0.9);
    color: rgb(161, 69, 3);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .cards-list {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .card-column {
        max-width: 100%;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .card-info {
        padding: 14px 14px 16px;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .card-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}
