.catalogs-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.catalogs-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.content-types-section {
    margin-bottom: 60px;
}

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.content-type-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.content-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    text-decoration: none;
    color: white;
}

.content-type-icon {
    font-size: 3.5rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.content-type-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.content-type-count {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.tags-section-wrapper {
    margin-top: 60px;
}

.catalogs-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.catalogs-description {
    font-size: 1.2rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.tag-header {
    text-align: center;
    margin: 40px auto 60px;
    max-width: 800px;
    padding: 0 20px;
}

.tag-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.tag-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tag-count {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.tale-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tale-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tale-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.tale-tag-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.tags-section {
    margin: 60px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tags-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tag-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #667eea;
}

.tag-card-icon {
    font-size: 3rem;
    margin-bottom: 5px;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.tag-card:hover .tag-card-icon {
    filter: grayscale(0);
    transform: scale(1.1);
}

.tag-card-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.tag-card-description {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
    margin-bottom: 5px;
}

.tag-card-count {
    font-size: 0.95rem;
    color: #667eea;
    font-weight: 600;
    background: #f0f3ff;
    padding: 5px 15px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .catalogs-title {
        font-size: 2rem;
    }
    
    .catalogs-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .content-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .content-type-card {
        padding: 25px 15px;
    }
    
    .content-type-icon {
        font-size: 2.8rem;
    }
    
    .content-type-name {
        font-size: 1.2rem;
    }
    
    .content-type-count {
        font-size: 0.9rem;
    }
    
    .tag-title {
        font-size: 2rem;
    }
    
    .tag-description {
        font-size: 1rem;
    }
    
    .tags-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .tag-card {
        padding: 20px;
    }
    
    .tag-card-icon {
        font-size: 2.5rem;
    }
    
    .tag-card-name {
        font-size: 1.1rem;
    }
    
    .tag-card-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tag-title {
        font-size: 1.5rem;
    }
    
    .tale-tags {
        gap: 8px;
    }
    
    .tale-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .tags-grid {
        grid-template-columns: 1fr;
    }
}
